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 18 19 20 21 22 … 34 Next »
Database locked error

 
  • 0 Vote(s) - 0 Average
Database locked error
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,789
Threads: 769
Joined: Nov 2003
#31
2021-06-10, 08:11 PM
(2021-06-10, 07:32 PM)ceejayemm Wrote: The Channel OID for these 'bad' records is zero (because I don't what it was originally) and the Channel Name of 'Imported', 'Film4' or 'BBC One London'  was probably entered as text in the import .XML file. Over time I have tried several different entries in the XML file hence the various discrepancies. The format of the import XML file is not documented anywhere that I can find so I have made the XML file entries using the recordings-backup.xml file for guidance. I do need to import recording files from time to time and I haven't found a reliable way to do this.  This is why I have corresponded several times about getting the system to generate the XML file created when a recording is made by the app to be at least in the same format as the full recording-backup.xml file. I could then at least see what the minimum xml tags are when creating a manual XML file for imported recordings. If the NextImport utility can do this then so much the better - great. 
These two files were never intended to have the same file format, and I can't really change the format now without breaking other stuff. I can however modify the import process, so that it'll also accept a recording in the metadata file format.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,789
Threads: 769
Joined: Nov 2003
#32
2021-06-10, 08:18 PM
The xml files produced during an export is a full dump of everything. The xml file produced as side-by-side metadata is a subset, and uses a more flat structure for easier access to the data.

Currently the import expects one of those full sets of data. I can modify it to also accepted the cut down set of data from the side-by-side metadata
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,789
Threads: 769
Joined: Nov 2003
#33
2021-06-10, 08:26 PM
I've added support for importing that file format in the next build.
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,135
Threads: 957
Joined: May 2006
#34
2021-06-10, 08:37 PM (This post was last modified: 2021-06-10, 08:37 PM by mvallevand.)
(2021-06-10, 08:09 PM)ceejayem Wrote: Yes there was, I have removed it and restarted the Nextpvr service but still get the same error  message.

Right, running netcore utilities on Windows and Linux are a real nuisance, I forgot what it takes.

You need to copy the appropriate version of

./runtimes/linux-arm64/native/libe_sqlite3.so or

./runtimes/linux-arm/native/libe_sqlite3.so

to the /opt/nextpvr/system folder

Martin
ceejayemm
Offline

Member

UK
Posts: 150
Threads: 27
Joined: Sep 2019
#35
2021-06-11, 07:38 AM
Martin

Thanks for this information. I have copied the relevant file to /opt/nextpvr/system and run the NextImport utility without any errors this time. The program runs and completes almost immediately but produces no obvious output. The NextImport.log file contains only:

[...startup]
2021-06-11 08:33:46.662 [INFO][1]      Using remote RecordingService
2021-06-11 08:33:46.665 [DEBUG][1]      Database: /var/opt/nextpvr/npvr.db3
2021-06-11 08:33:46.883 [INFO][1]      --export /home/pi/nas_recordings/Arrival (2016)
2021-06-11 08:33:46.898 [INFO][1]      Folder: Arrival (2016)


Does the process continue to run as background process and so do I need to wait a while for something to happen ?

Chris
Server          NextPVR Official Docker
Recordings: OpenMediaVault (v7.x) NAS, NFS share, mounted to Docker container
Client:         Docker JellyFin, NextPVR addon, Amazon Firestick, Jellyfin Addon
ceejayemm
Offline

Member

UK
Posts: 150
Threads: 27
Joined: Sep 2019
#36
2021-06-11, 07:40 AM
Sub

Thanks, I will look forward to testing the change out once the next release is available.

Chris
Server          NextPVR Official Docker
Recordings: OpenMediaVault (v7.x) NAS, NFS share, mounted to Docker container
Client:         Docker JellyFin, NextPVR addon, Amazon Firestick, Jellyfin Addon
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,135
Threads: 957
Joined: May 2006
#37
2021-06-11, 11:54 AM (This post was last modified: 2021-06-11, 11:57 AM by mvallevand.)
(2021-06-11, 07:38 AM)ceejayemm Wrote: Does the process continue to run as background process and so do I need to wait a while for something to happen ?
If there were any video files (ts, mkv, mp4) that you didn't have in the database it would display more info and then as mentioned there would be a file called NextImport.xml for further editing or importing.

Marin
ceejayemm
Offline

Member

UK
Posts: 150
Threads: 27
Joined: Sep 2019
#38
2021-06-11, 07:15 PM
Martin

Ok, so 'Arrival (2016)' did exist in the database, thus no output generated. However moving back to 'The Lone Ranger' which doesn't exist in the database (not in the 'scheduled_recordings' table anyway - could it be anywhere else ?) but I get the same result from the utility:

sudo -u nextpvr /opt/dotnet/dotnet  /opt/nextpvr/system/NextImport.dll --export '/home/pi/nas_recordings/Films/The Lone Ranger'
NEXTPVR_INSTALLDIR /opt/nextpvr/system/
NEXTPVR_DATADIR /opt/nextpvr/system/data/
NEXTPVR_DATADIR_USERDATA /var/opt/nextpvr/
Folder: The Lone Ranger


The log file has exactly the same information. An output file (NextImport.xml is created in /var/opt/nextpvr, not the original recording folder ?) which only contains:

<?xml version="1.0" encoding="utf-8"?>
<recordings />

Am I doing something wrong or missing something ?

Chris
Server          NextPVR Official Docker
Recordings: OpenMediaVault (v7.x) NAS, NFS share, mounted to Docker container
Client:         Docker JellyFin, NextPVR addon, Amazon Firestick, Jellyfin Addon
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,135
Threads: 957
Joined: May 2006
#39
2021-06-11, 07:29 PM
What output do you get with

find /home/pi/nas_recordings/Films/The\ Lone\ Ranger

I will use that output for a test if you resend your npvr.db3 file.

Martin
ceejayemm
Offline

Member

UK
Posts: 150
Threads: 27
Joined: Sep 2019
#40
2021-06-11, 07:37 PM
Martin

The output requested is as follows:

sudo -u nextpvr /opt/dotnet/dotnet  /opt/nextpvr/system/NextImport.dll --export '/home/pi/nas_recordings/Films/The\ Lone\ Ranger'
NEXTPVR_INSTALLDIR /opt/nextpvr/system/
NEXTPVR_DATADIR /opt/nextpvr/system/data/
NEXTPVR_DATADIR_USERDATA /var/opt/nextpvr/
Folder not found /home/pi/nas_recordings/Films/The\ Lone\ Ranger


I have renamed the folder to 'The_Lone_Ranger' as well and the following similar result:

sudo -u nextpvr /opt/dotnet/dotnet  /opt/nextpvr/system/NextImport.dll --export '/home/pi/nas_recordings/Films/The_Lone_Ranger'
NEXTPVR_INSTALLDIR /opt/nextpvr/system/
NEXTPVR_DATADIR /opt/nextpvr/system/data/
NEXTPVR_DATADIR_USERDATA /var/opt/nextpvr/
Folder: The_Lone_Ranger


Chris
Server          NextPVR Official Docker
Recordings: OpenMediaVault (v7.x) NAS, NFS share, mounted to Docker container
Client:         Docker JellyFin, NextPVR addon, Amazon Firestick, Jellyfin Addon
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (6): « Previous 1 2 3 4 5 6 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  update of the media database kfmf 9 840 2024-11-17, 12:09 PM
Last Post: mvallevand
  No device listed -- error saving capture source: SQLite Error 1: 'no such column: −1' skrottapple 46 5,140 2024-04-13, 10:27 PM
Last Post: skrottapple
  Different Errors depending on channel (no tuner found/transcoding Error) idefixrc 3 896 2023-11-21, 12:45 PM
Last Post: mvallevand
  Nextpvr unaccessable from Jellyfin with 401 error Simonzzzz 5 1,429 2023-11-20, 10:28 AM
Last Post: Simonzzzz
  Recording length error VCR58 20 2,456 2023-11-12, 11:46 PM
Last Post: mvallevand
  "Unexpected error scanning for other devices" BlackJack 2 832 2023-07-15, 03:03 PM
Last Post: BlackJack
  HTTP ERROR 500 PJosses 17 2,198 2023-02-16, 05:17 PM
Last Post: PJosses
  Error installing NextPVR on Linux Mint 21 ag100pct 9 2,226 2022-08-17, 02:01 AM
Last Post: mvallevand
  Sometimes pi unresponsive, tuner locked, still recording? TheRealRoland 4 1,361 2022-08-02, 07:19 PM
Last Post: TheRealRoland
  multi-tuner error spagio 7 1,523 2022-06-09, 12:07 AM
Last Post: mvallevand

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

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

Linear Mode
Threaded Mode