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 … 21 22 23 24 25 … 34 Next »
Migrating from Windows v4.x to Linux v5.x

 
  • 0 Vote(s) - 0 Average
Migrating from Windows v4.x to Linux v5.x
LeGrandZombie
Offline

Longtime User

Oklahoma, USA
Posts: 86
Threads: 20
Joined: Jul 2016
#11
2020-11-22, 04:19 AM
(2020-11-22, 04:18 AM)mvallevand Wrote: Just the database is fine.  I haven't tested it for a while so I'll give you more info tomorrow.

Martin

Great! Thanks Martin.
------------------------

2015 Home built quad i5 3.3Ghz, 16gb RAM, onboard GPU
Linux Mint 21
HDHomeRun Connect Quatro
Brave browser
Sony STR-DN1040 Receiver
2013 LG 50 inch dumb HD TV

-------------------------

What we hear is the quality of our listening. - Robert Fripp
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 53,109
Threads: 957
Joined: May 2006
#12
2020-11-24, 01:07 AM
Ok a day late sorry.  Our first winter storm and planning for a lockdown got in the way.

To install this unzip the files in the NextPVR Install Directory.

To run this on on linux  assuming you are running with the deb installer

1.

sudo service nextvpvr-server stop

backup you npvr.db3 to safe location

sudo service nextvpvr-server start

2. run

Code:
sudo -u nextpvr /opt/dotnet/dotnet  /opt/nextpvr/system/NextImport.dll --merge  /pathto/anothernpvr.db3  /recordings

You can run this again for multiple folders.  You can omit the location (in this example /recordings) and it will prompt you to scan the whole drive.  You can run it multiple times on the same folder it won't re-add files.  

Since you are running as the nextpvr user this will only find files the servers can access.

3. If there are problem zip the logs and restor the backup database from step 1.

Martin


Attached Files
.zip   NextImport.zip (Size: 99.1 KB / Downloads: 11)
LeGrandZombie
Offline

Longtime User

Oklahoma, USA
Posts: 86
Threads: 20
Joined: Jul 2016
#13
2020-11-25, 05:29 AM (This post was last modified: 2020-11-25, 05:30 AM by LeGrandZombie.)
Thanks Martin. No problem with the delay.

I extracted the files to /opt/nextpvr/system and got the attached error when I ran the import.


Attached Files
.zip   logs-20201124-2318.zip (Size: 781.87 KB / Downloads: 1)
------------------------

2015 Home built quad i5 3.3Ghz, 16gb RAM, onboard GPU
Linux Mint 21
HDHomeRun Connect Quatro
Brave browser
Sony STR-DN1040 Receiver
2013 LG 50 inch dumb HD TV

-------------------------

What we hear is the quality of our listening. - Robert Fripp
LeGrandZombie
Offline

Longtime User

Oklahoma, USA
Posts: 86
Threads: 20
Joined: Jul 2016
#14
2020-11-25, 05:31 AM (This post was last modified: 2020-11-25, 05:32 AM by LeGrandZombie.)
For some reason the text file with the error won't upload

sudo -u nextpvr /opt/dotnet/dotnet /opt/nextpvr/system/NextImport.dll --merge /home/mw/Desktop/v4npvr.db3 /recordings
NEXTPVR_INSTALLDIR /opt/nextpvr/system/
NEXTPVR_DATADIR /opt/nextpvr/system/data/
NEXTPVR_DATADIR_USERDATA /var/opt/nextpvr/
/var/opt/nextpvr/
Unhandled exception. System.TypeInitializationException: The type initializer for 'Microsoft.Data.Sqlite.SqliteConnection' threw an exception.
---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
---> System.DllNotFoundException: Unable to load shared library 'e_sqlite3' or one of its dependencies. In order to help diagnose loading problems, consider setting the LD_DEBUG environment variable: libe_sqlite3: cannot open shared object file: No such file or directory
at System.Runtime.InteropServices.NativeLibrary.LoadByName(String libraryName, QCallAssembly callingAssembly, Boolean hasDllImportSearchPathFlag, UInt32 dllImportSearchPathFlag, Boolean throwOnError)
at System.Runtime.InteropServices.NativeLibrary.LoadLibraryByName(String libraryName, Assembly assembly, Nullable`1 searchPath, Boolean throwOnError)
at System.Runtime.InteropServices.NativeLibrary.Load(String libraryName, Assembly assembly, Nullable`1 searchPath)
at SQLitePCL.NativeLibrary.Load(String libraryName, Assembly assy, Int32 flags)
at SQLitePCL.Batteries_V2.MakeDynamic(String name, Int32 flags)
at SQLitePCL.Batteries_V2.DoDynamic_cdecl(String name, Int32 flags)
at SQLitePCL.Batteries_V2.Init()
--- End of inner exception stack trace ---
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor, Boolean wrapExceptions)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters)
at Microsoft.Data.Sqlite.Utilities.BundleInitializer.Initialize()
at Microsoft.Data.Sqlite.SqliteConnection..cctor()
--- End of inner exception stack trace ---
at Microsoft.Data.Sqlite.SqliteConnection..ctor(String connectionString)
at NUtility.DatabaseHelper.GetConnection()
at NextImport.Program.Main(String[] args)
Aborted
------------------------

2015 Home built quad i5 3.3Ghz, 16gb RAM, onboard GPU
Linux Mint 21
HDHomeRun Connect Quatro
Brave browser
Sony STR-DN1040 Receiver
2013 LG 50 inch dumb HD TV

-------------------------

What we hear is the quality of our listening. - Robert Fripp
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,789
Threads: 769
Joined: Nov 2003
#15
2020-11-25, 05:52 AM
(2020-11-25, 05:31 AM)LeGrandZombie Wrote: For some reason the text file with the error won't upload
You need to zip any attachments for them to be accepted.
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 53,109
Threads: 957
Joined: May 2006
#16
2020-11-25, 10:22 AM
Sorry my mistake because I piggyback on sub's install I don't send a full package. On linux you also have to

cd /opt/nextpvr/system
sudo ln -s ./runtimes/linux-x64/native/libe_sqlite3.so

Martin
LeGrandZombie
Offline

Longtime User

Oklahoma, USA
Posts: 86
Threads: 20
Joined: Jul 2016
#17
2020-11-25, 02:43 PM
(2020-11-25, 10:22 AM)mvallevand Wrote: Sorry my mistake because I piggyback on sub's install I don't send a full package.  On linux you also have to

cd /opt/nextpvr/system
sudo ln -s ./runtimes/linux-x64/native/libe_sqlite3.so

Martin

Fantastic Martin! Thanks for the effort doing this. So glad I can see everything together in one place now.
------------------------

2015 Home built quad i5 3.3Ghz, 16gb RAM, onboard GPU
Linux Mint 21
HDHomeRun Connect Quatro
Brave browser
Sony STR-DN1040 Receiver
2013 LG 50 inch dumb HD TV

-------------------------

What we hear is the quality of our listening. - Robert Fripp
LeGrandZombie
Offline

Longtime User

Oklahoma, USA
Posts: 86
Threads: 20
Joined: Jul 2016
#18
2020-11-25, 05:26 PM
(2020-11-25, 05:52 AM)sub Wrote:
(2020-11-25, 05:31 AM)LeGrandZombie Wrote: For some reason the text file with the error won't upload
You need to zip any attachments for them to be accepted.

Sorry. I must have missed the warning. I think I used to know this.
------------------------

2015 Home built quad i5 3.3Ghz, 16gb RAM, onboard GPU
Linux Mint 21
HDHomeRun Connect Quatro
Brave browser
Sony STR-DN1040 Receiver
2013 LG 50 inch dumb HD TV

-------------------------

What we hear is the quality of our listening. - Robert Fripp
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 53,109
Threads: 957
Joined: May 2006
#19
2020-11-25, 05:38 PM
Did the program work or are you trying to upload logs? If you just update the zipped NextPVR logs, NextImport.log is included.

Martin
LeGrandZombie
Offline

Longtime User

Oklahoma, USA
Posts: 86
Threads: 20
Joined: Jul 2016
#20
2020-11-26, 01:17 AM (This post was last modified: 2020-11-26, 01:19 AM by LeGrandZombie.)
(2020-11-25, 05:38 PM)mvallevand Wrote: Did the program work or are you trying to upload logs?  If you just update the zipped NextPVR logs, NextImport.log is included.

Martin

That was from my first attempt to run the program. All clear on uploading now. The program ran perfectly after making the symbolic link to SQLlite. Thanks again. I never would have figured that out on my own.
------------------------

2015 Home built quad i5 3.3Ghz, 16gb RAM, onboard GPU
Linux Mint 21
HDHomeRun Connect Quatro
Brave browser
Sony STR-DN1040 Receiver
2013 LG 50 inch dumb HD TV

-------------------------

What we hear is the quality of our listening. - Robert Fripp
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (3): « Previous 1 2 3 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  Extras Tuners Not Loading on NextPVR 3.1 Linux Install Siftingice 1 36 Yesterday, 12:12 AM
Last Post: mvallevand
  Extras Tuners Not Loading on NextPVR 3.1 Linux Install Siftingice 0 23 Yesterday, 12:02 AM
Last Post: Siftingice
  How to get Hauppage firmware running on Linux Mint Higgo 8 389 2025-06-13, 08:31 AM
Last Post: mvallevand
  Linux Command Line To Initiate SchedulesDirect EPG Update LinuxDVR 1 352 2025-04-13, 06:35 PM
Last Post: mvallevand
  Linux install failed -- permission denied? FrogFan 4 686 2025-03-26, 12:39 AM
Last Post: FrogFan
  Is there a 'recommended' version/release of Linux? Bobthegoldfish 1 476 2024-12-24, 12:28 AM
Last Post: mvallevand
  Downgrade on Linux eriberg 3 581 2024-09-04, 08:46 PM
Last Post: mvallevand
  linux mint 22 bccicone 2 643 2024-08-01, 10:10 PM
Last Post: bccicone
  Client Recommendations on Linux devarionarias 6 1,896 2024-06-18, 04:31 PM
Last Post: devarionarias
  Linux setup - Help a Windows user... prothed 18 2,838 2024-06-03, 11:08 AM
Last Post: Rod Hutchinson

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

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

Linear Mode
Threaded Mode