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 … 5 6 7 8 9 … 34 Next »
IPTV device - reloading M3U

 
  • 0 Vote(s) - 0 Average
IPTV device - reloading M3U
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,626
Threads: 767
Joined: Nov 2003
#21
2023-07-27, 05:25 AM
The way it said "Config.xml does not exists. Creating it from master." indicates not using the real config. Martin can probably tell you why that is the case on a Linux install. Possibly something to do with needing an NEXTPVR_DATADIR_USERDATA environment variable so it can find the location where config.xml is etc.
mrnobody
Offline

Junior Member

България
Posts: 10
Threads: 0
Joined: Jul 2023
#22
2023-07-27, 05:52 AM (This post was last modified: 2023-07-27, 05:53 AM by mrnobody.)
Thank you for your answer.
I also check in /home/{user}/ and I found  config.xml in .NPVR-data.
I tried to set  NEXTPVR_DATADIR_USERDATA environment variable with:
Code:
export NEXTPVR_DATADIR_USERDATA=/home/miroslav/.NPVR-data

I checked it and the variable is registered, but no success. The output is:

Code:
miroslav@openhab:/opt/nextpvr/system$ sudo /opt/dotnet/dotnet ./NScriptHelper.dll  -service:method=setting.m3u.update
<?xml version="1.0" encoding="utf-8" ?>
<rsp stat="fail">
  <err code="13" msg="Not Allowed" />
</rsp>
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,626
Threads: 767
Joined: Nov 2003
#23
2023-07-27, 06:39 AM
Post the log NextPVR logs and I'll see what it's saying on that server side.
mrnobody
Offline

Junior Member

България
Posts: 10
Threads: 0
Joined: Jul 2023
#24
2023-07-27, 07:21 AM
This is the last logs. Thanks


Attached Files
.zip   logs-20230727-1016.zip (Size: 692.19 KB / Downloads: 2)
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,626
Threads: 767
Joined: Nov 2003
#25
2023-07-27, 07:30 AM
Ah right..I remember now.

nscripthelper can be used to call lots of different functions, relating to recordings and channels etc....but it doesn't allow you to call the "settings" apis with out explicitly granting this access.

If you set <PinLoginAllowSettings>true</PinLoginAllowSettings> in config.xml, and try again, it should let you.
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,767
Threads: 954
Joined: May 2006
#26
2023-07-27, 11:51 AM (This post was last modified: 2023-07-27, 11:52 AM by mvallevand.)
(2023-07-27, 05:52 AM)mrnobody Wrote: Thank you for your answer.
I also check in /home/{user}/ and I found  config.xml in .NPVR-data.
I tried to set  NEXTPVR_DATADIR_USERDATA environment variable with:
Code:
export NEXTPVR_DATADIR_USERDATA=/home/miroslav/.NPVR-data

I checked it and the variable is registered, but no success. The output is:

Technically that this the wrong export since with the deb installer it is /var/opt/nextpvr  but I think that is only used for logging and the port and PIN.  As you saw it it does create them for you.  The http and netcore API calls will still be made to the server.

If the script is run with the server context it is fine.

My standalone utilities do default this on Linux if the folder /var/opt/nextpvr is found but that implies you need to run the utilities as sudo -u nextpvr to write logs.

Martin
mrnobody
Offline

Junior Member

България
Posts: 10
Threads: 0
Joined: Jul 2023
#27
2023-07-27, 02:44 PM
(2023-07-27, 07:30 AM)sub Wrote: Ah right..I remember now.
nscripthelper can be used to call lots of different functions, relating to recordings and channels etc....but it doesn't allow you to call the "settings" apis with out explicitly granting this access.
If you set <PinLoginAllowSettings>true</PinLoginAllowSettings> in config.xml, and try again, it should let you.

I changed this to true, I restarted the service and it is the same:
Code:
<?xml version="1.0" encoding="utf-8" ?>
<rsp stat="fail">
  <err code="13" msg="Not Allowed" />
</rsp>
I done the same with Config-master-dont-edit.xml for any case, but not success.


Attached Files
.zip   logs-20230727-1720.zip (Size: 665.36 KB / Downloads: 1)
.zip   logs-20230727-1726.zip (Size: 447.83 KB / Downloads: 0)
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,767
Threads: 954
Joined: May 2006
#28
2023-07-27, 02:47 PM
Are you changing the correct config.xml in /var/opt/nextpvr/config.xml

Martin
mrnobody
Offline

Junior Member

България
Posts: 10
Threads: 0
Joined: Jul 2023
#29
2023-08-15, 09:51 AM
Hi!
Everything working!
Thank you very much for your support!
« Next Oldest | Next Newest »

Users browsing this thread: 2 Guest(s)

Pages (3): « Previous 1 2 3


Possibly Related Threads…
Thread Author Replies Views Last Post
  IPTV stops often SysAdminZ 17 526 2025-04-08, 01:04 AM
Last Post: mvallevand
  [Failed: No errors, but no data delivered. This is usually because the device failed Bobthegoldfish 3 272 2024-11-29, 12:49 AM
Last Post: mvallevand
  No device listed -- error saving capture source: SQLite Error 1: 'no such column: −1' skrottapple 46 3,906 2024-04-13, 10:27 PM
Last Post: skrottapple
  Adaptec avc-3610 device not listed, but detected by OS tryingtomakeitwork 1 452 2024-04-10, 12:29 PM
Last Post: mvallevand
  Australian IPTV Channel 10 refusing "VLC/2.2.6 LibVLC/2.2.6" header Leigh 1 727 2023-10-23, 11:46 AM
Last Post: mvallevand
  usb device doesn't appear in GUI j_yves 4 829 2023-05-29, 02:56 PM
Last Post: j_yves
  IPTV channels not working after network changes spagio 11 2,264 2022-10-19, 05:41 PM
Last Post: sub
  IPTV Stream 404 from NextPVR unless user-agent is changed bphillips09 4 1,489 2022-10-12, 05:19 AM
Last Post: bphillips09
  Device Scan isn't finding HDHR3-US Smithers 11 2,107 2022-09-27, 09:36 PM
Last Post: sub
  Several IPTV Channels Fail To Play yuljk 13 2,793 2022-07-02, 08:29 PM
Last Post: yuljk

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

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

Linear Mode
Threaded Mode