NextPVR Forums
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR v5 Support Linux v
« Previous 1 2 3 4 5 … 13 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: 69
Threads: 15
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 19
HDHomeRun Connect Quatro
Pale Moon 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: 36,272
Threads: 722
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: 4)
LeGrandZombie
Offline

Longtime User

Oklahoma, USA
Posts: 69
Threads: 15
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 19
HDHomeRun Connect Quatro
Pale Moon 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: 69
Threads: 15
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 19
HDHomeRun Connect Quatro
Pale Moon 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: 96,654
Threads: 674
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: 36,272
Threads: 722
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: 69
Threads: 15
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 19
HDHomeRun Connect Quatro
Pale Moon 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: 69
Threads: 15
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 19
HDHomeRun Connect Quatro
Pale Moon 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: 36,272
Threads: 722
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: 69
Threads: 15
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 19
HDHomeRun Connect Quatro
Pale Moon 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
  With what Linux distros are users having NextPVR success? baj1 7 222 2020-12-23, 12:50 AM
Last Post: mvallevand
  MIgrate recordings windows to linux ottoguy 11 524 2020-10-30, 04:40 AM
Last Post: baj1
  Default Linux paths VCR58 2 252 2020-09-25, 08:33 PM
Last Post: VCR58
  Linux dvb/atsc devices not shutting down cleanly Gazavant 10 484 2020-08-21, 07:58 PM
Last Post: mvallevand
  Channel order incorrect Linux mcbloggs 42 2,763 2020-08-18, 10:06 PM
Last Post: sub
  New Linux install - can't watch live TV AMD 5 579 2020-07-13, 07:12 AM
Last Post: mvallevand
  Migrating from recording directory in user's home directory to NAS share rkulagow 3 327 2020-05-29, 08:54 PM
Last Post: sub
  Manual channel add in Linux bluesight 11 720 2020-05-13, 07:29 PM
Last Post: bluesight
  Install v5 for Linux on LibreElec scotrich99 2 693 2020-05-02, 03:51 PM
Last Post: Sim0n
  Headless Linux install and update for dummies snagglewest 3 860 2020-04-30, 06:50 PM
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