NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Support Linux v
« Previous 1 … 28 29 30 31 32 … 34 Next »
What controls where the user ".NPVR-data" resides?

 
  • 0 Vote(s) - 0 Average
What controls where the user ".NPVR-data" resides?
CDinger
Offline

Member

Posts: 151
Threads: 30
Joined: Aug 2016
#1
2019-12-30, 03:45 PM
First, I am using Arch linux so I am following Subs manual install option. I am asking where the userdata should reside because I experienced a very odd change over the weekend. When shutting down my computer it went into and odd loop on the evening of the 28th and after ~20 minutes I shut it down by holding the power button until it shutdown.

I'm a little foggy on the next steps but I think when it rebooted NextPVR web interface came up but all settings were gone. I believe I then tried to reinstall NPVR.zip but I may have just started the process of scanning for channels, etc. Either way I did end up rescanning and resetting up NextPVR.

On the 29th I was trying to verify NextEnd was functioning properly after upgrading to the dotnet 3.1 version when I noticed shows were being recorded but the nrecord.log showed the wrong date/time. A search for nrecord.log found another instance in /root/.NPVR-data/logs/nrecord.log which had the correct date/time. The change of locations happened Dec 28 between the times below from the journalctl log but again I didn't discover this until the 29th.

Dec 28 17:07:30 Arch sh[475]: NEXTPVR_DATADIR_USERDATA /home/craig/.NPVR-data/

Dec 28 17:42:42 Arch sh[408]: NEXTPVR_DATADIR_USERDATA /root/.NPVR-data/

On the 29th I removed the /root and all subdirectories and reinstalled NPVR.zip as I had done previously using Ark....but now the userdata folder is a root level folder /.NPVR.data as below

Dec 29 08:29:28 Arch sh[573]: NEXTPVR_DATADIR_USERDATA /root/.NPVR-data/

Dec 29 12:21:24 Arch sh[39407]: NEXTPVR_DATADIR_USERDATA /.NPVR-data/

I copied my NPVR.db3 file from /home/craig/.NPVR-data/npvr.db3 to /.NPRV-data/npvr.db3 and NPVR recognized all my prior recordings and settings.

I can work with userdata residing at /.NPVR-data but the change seems really odd.

Attached are logs generated from the /.NPVR-data location.

Craig
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,940
Threads: 956
Joined: May 2006
#2
2019-12-30, 03:58 PM (This post was last modified: 2019-12-30, 04:00 PM by mvallevand.)
Where the user data is stored is all based on the NEXTPVR_DATADIR_USERDATA environment variable and has nothing to do with the .NPVR-data name. If it is not found then it defaults to ~/.NPVR-data folder of the user running NextPVRServer.dll It sounds like you are running as an undefined user.

I know with the deb installer I force a home folder
in /etc/nextpvr-server.conf
NEXTPVR_DATADIR_USERDATA=/var/opt/nextpvr/

This is called from the service

[Service]
EnvironmentFile=/etc/nextpvr-server.conf

Of course this won't help you testing NextEnd with the production database To test via the command line you need to set the variable if it isn't set globally ie.

NEXTPVR_DATADIR_USERDATA=/var/opt/nextpvr/ /opt/dotnet/dotnet NextEnd.dll --monitor --jit

Martin
CDinger
Offline

Member

Posts: 151
Threads: 30
Joined: Aug 2016
#3
2019-12-31, 06:03 AM
It finally dawned on me what happened. I was working with the nextpvr-server.service file and I removed the User=craig line from the [Service] entry.  Therefore, yes nextpvr was running as an undefined user. This all happened when I was changing things to make the nextpvr-server start after the network was up and functional. I fixed one thing and broke another but both are working now.

[Unit]
Description=runs NPVR.sh

[Service]
Type=simple
User=craig
WorkingDirectory=/home/craig/NPVR
ExecStartPre=/bin/sh -c 'until ping -c1 192.168.0.1; do sleep 1; done;'
ExecStart=sh NPVR.sh
Restart=on-failure
RestartSec=10000ms

[Install]
WantedBy=multi-user.target

Thanks for all your help,

Craig
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  Guide data issue using NextPVR in a Proxmox LXC njc 10 1,034 2025-03-23, 01:40 PM
Last Post: njc
  [Failed: No errors, but no data delivered. This is usually because the device failed Bobthegoldfish 3 341 2024-11-29, 12:49 AM
Last Post: mvallevand
  Linux setup - Help a Windows user... prothed 18 2,578 2024-06-03, 11:08 AM
Last Post: Rod Hutchinson
  NPVR stops playing live TV at about 6 mins Tnix 14 1,809 2024-04-01, 10:09 PM
Last Post: sub
  NPVR can only see 100GB of a 3TB hard drive WagMan 13 1,844 2024-01-12, 11:54 PM
Last Post: mvallevand
  apt upgrade broke NPVR WagMan 11 1,587 2024-01-01, 04:59 PM
Last Post: mvallevand
  EPG Data Location in Linux kevin-pvr 3 933 2022-12-18, 08:26 PM
Last Post: mvallevand
  How to change user and location of config data? Deihmos 1 799 2022-10-25, 11:39 PM
Last Post: mvallevand
  IPTV Stream 404 from NextPVR unless user-agent is changed bphillips09 4 1,568 2022-10-12, 05:19 AM
Last Post: bphillips09
  epg data is not saving kikazz 8 1,497 2022-02-09, 05:55 PM
Last Post: kikazz

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode