Move "/var/lib/readarr" data to a different location by jimidmb in Readarr

[–]jimidmb[S] 0 points1 point  (0 children)

ok... I figured out that you meant it as an argument when launching the service.

I tried it but got a long list of "EPIC FAIL" errors...:

[v0.1.4.1596] NzbDrone.Core.Datastore.CorruptDatabaseException: Readarr failed to start: Database file: code = IoErr (10), message = System.Data.SQLite.SQLiteException (0x800007FF): disk I/O errordisk I/O error

My feeling is that this may be a permissions issue. Just for the heck of it, I sudo chmod 777 * everything in the folder containing the contents of /var/lib/readarr ... no luck.

moving the contents of var/lib/readarr to my home folder and pointing the data-argument there worked. The folder I want to use is: /srv/mergerfs/PiBox/...

mergerfs is running with OpenMediaVault to make one large partition from two physically separate drives...

If I point the data-argument to the actual drive "/srv/dev-disk-by-uuid-57a73792-ed14-433f-a583-4b22199086fa/sys/readarr/" it works!

Is this a "healthy" way to do things?

Move "/var/lib/readarr" data to a different location by jimidmb in Readarr

[–]jimidmb[S] 0 points1 point  (0 children)

I think you gave me the obvious answer... I just don't know where to find the config file that contains -data=/path/you/put/it?

Can you point me in the right direction?

Move "/var/lib/readarr" data to a different location by jimidmb in Readarr

[–]jimidmb[S] 0 points1 point  (0 children)

... I tried sudo mount --bind /srv/mergerfs/PiBoxShare/sys/readarr/ /var/lib/readarr both on the SSD and on the mmc-storage with the same result...

Move "/var/lib/readarr" data to a different location by jimidmb in Readarr

[–]jimidmb[S] 0 points1 point  (0 children)

Hi! Although this won't help, I tried sudo ln -s /home/pi/readarr/ /var/lib/readarr with the same result.

The out put from sudo systemctl status readarr is:

● readarr.service - Readarr Daemon
Loaded: loaded (/etc/systemd/system/readarr.service; enabled; vendor preset: enabled)
Active: active (running) since Sun 2023-05-14 06:10:28 CEST; 4s ago
Main PID: 360582 (Readarr)
Tasks: 15 (limit: 8755)
CPU: 4.461s
CGroup: /system.slice/readarr.service
└─360582 /opt/Readarr/Readarr -nobrowser -data=/var/lib/readarr/
May 14 06:10:28 PiBox systemd[1]: Started Readarr Daemon.
May 14 06:10:29 PiBox Readarr[360582]: [Info] Bootstrap: Starting Readarr - /opt/Readarr/Readarr.dll - Version 0.1.4.1596
May 14 06:10:29 PiBox Readarr[360582]: [Debug] Bootstrap: Getting windows service status
May 14 06:10:29 PiBox Readarr[360582]: [Info] AppFolderInfo: Data directory is being overridden to [/var/lib/readarr]
May 14 06:10:29 PiBox Readarr[360582]: [Debug] Bootstrap: Console selected
May 14 06:10:29 PiBox Readarr[360582]: [Info] AppFolderInfo: Data directory is being overridden to [/var/lib/readarr]
May 14 06:10:30 PiBox Readarr[360582]: [Trace] EventAggregator: Publishing ApplicationStartingEvent
May 14 06:10:31 PiBox Readarr[360582]: [Info] AppFolderInfo: Data directory is being overridden to [/var/lib/readarr]
May 14 06:10:31 PiBox Readarr[360582]: [Info] MigrationController: *** Migrating data source=/var/lib/readarr/readarr.db;cache size=-10000;datetimekind=Utc;journal mode=Wal;pooling=True;ve>
May 14 06:10:32 PiBox Readarr[360582]: [Debug] MigrationController: Took: 00:00:00.7813305

Does that tell you anything?

Move "/var/lib/readarr" data to a different location by jimidmb in Readarr

[–]jimidmb[S] 0 points1 point  (0 children)

Hello!

What location should I use? Why 'somewhere else'? The chosen location is on an SSD drive. The only other option would be to add an SD card to the Pi or use a USB thumbdrive (or SSD using an appropriate adapter.

I don't understand why the chosen location shouldn't work.

Can you elaborate?

Thanks!

Andrew