Difegue / LANraragi

Web application for archival and reading of manga/doujinshi. Lightweight and Docker-ready for NAS/servers.
https://lrr.tvc-16.science
MIT License
2.27k stars 160 forks source link

Unable to change the content folder by overriding the LRR_DATA_DIRECTORY environment variable #843

Closed GauSyu closed 1 year ago

GauSyu commented 1 year ago

LRR Version and OS LANraragi v.0.8.90 Mac OS 13.5.1 on Apple Silicon

Bug Details I have overrided the LRR_DATA_DIRECTORY environment variable in my zsh profile. But when I start LRR by the command 'lanraragi', its content folder is still he default one. I have checked the env list.

Matching Logs env list: ... LRR_DATA_DIRECTOR=/Volumes/Videos/3 ...

what I see after 'lanraragi:

Data Directory      is set to '/Users/gausyu/Library/Application Support/LANraragi/content'
Thumbnail Directory is set to '/Users/gausyu/Library/Application Support/LANraragi/content/thumb'
Database Directory  is set to '/Users/gausyu/Library/Application Support/LANraragi/database'
Log Directory       is set to '/Users/gausyu/Library/Logs/LANraragi'
Temporary Folder    is set to '/Users/gausyu/Library/Application Support/LANraragi/temp'

> lanraragi@0.8.90 start
> perl ./script/launcher.pl -f ./script/lanraragi

Server PID will be at /Users/gausyu/Library/Application Support/LANraragi/temp/server.pid

キタ━━━━━━(゚∀゚)━━━━━━!!!!!
Enabling AOF on Redis... This might take a while.
[LANraragi] [info] LANraragi 0.8.90 started. (Production Mode)
[LANraragi] [info] Plugin Detected: Chaika.moe
[LANraragi] [info] Plugin Detected: Chaika.moe api.json
[LANraragi] [info] Plugin Detected: ComicInfo
[LANraragi] [info] Plugin Detected: Tag Copier
[LANraragi] [info] Plugin Detected: Add Timestamp Tag
[LANraragi] [info] Plugin Detected: E-Hentai
[LANraragi] [info] Plugin Detected: eze
[LANraragi] [info] Plugin Detected: FAKKU
[LANraragi] [info] Plugin Detected: Hdoujin
[LANraragi] [info] Plugin Detected: Hentag
[LANraragi] [info] Plugin Detected: Hentag Online Lookups
[LANraragi] [info] Plugin Detected: Hitomi
[LANraragi] [info] Plugin Detected: koromo
[LANraragi] [info] Plugin Detected: Mayriad's EH Master Script
[LANraragi] [info] Plugin Detected: Filename Parsing
[LANraragi] [info] Plugin Detected: nHentai
[LANraragi] [info] Script Detected: Blacklist Migration
[LANraragi] [info] Script Detected: Subfolders to Categories
[LANraragi] [info] Script Detected: Source Finder
[LANraragi] [info] Script Detected: nHentai Source Converter
[LANraragi] [info] Downloader Detected: Chaika.moe Downloader
[LANraragi] [info] Downloader Detected: E*Hentai Downloader
Killing process 1343 from /Users/gausyu/Library/Application Support/LANraragi/temp/minion.pid
Minion will use the Redis database at 127.0.0.1:6379/1
[LANraragi] [info] Successfully connected to Minion database.
[Minion] [info] Starting new Minion worker in subprocess with 8 parallel jobs.
[Minion] [info] Minion worker 1460 started
Killing process 1344 from /Users/gausyu/Library/Application Support/LANraragi/temp/shinobu.pid
[LANraragi] [info] Routing done! Ready to receive requests.
[Tag Stats] [info] Building stat indexes... (0 archives)
[Tag Stats] [info] Stat indexes built! (0 archives)
[2023-09-09 10:56:57.91658] [1449] [info] Listening at "http://*:3000"
Web application available at http://127.0.0.1:3000
[2023-09-09 10:56:57.91668] [1449] [info] Manager 1449 started
[2023-09-09 10:56:57.91907] [1463] [info] Worker 1463 started
[2023-09-09 10:56:57.91925] [1449] [info] Creating process id file "/Users/gausyu/Library/Application Support/LANraragi/temp/server.pid"
[2023-09-09 10:56:57.91962] [1464] [info] Worker 1464 started
[2023-09-09 10:56:57.92020] [1465] [info] Worker 1465 started
[2023-09-09 10:56:57.92033] [1466] [info] Worker 1466 started
[Shinobu] [info] Shinobu File Watcher started.
[Shinobu] [info] Content folder is /Users/gausyu/Library/Application Support/LANraragi/content.
[Shinobu] [info] Scanning content folder for changes...
[Shinobu] [info] Found 0 new files.
[Shinobu] [info] 0 files were found on the filemap but not on the filesystem.
[Shinobu] [info] Initial scan complete! Adding watcher to content folder to monitor for further file edits.
[Shinobu] [info] All done! Now dutifully watching your files.
Difegue commented 1 year ago

Well, I'm seeing your env list says LRR_DATA_DIRECTOR=/Volumes/Videos/3 -- Is that just an error you made while retyping it for the issue?

GauSyu commented 1 year ago

I changed the LRR_DATA_DIRECTORY environment variable to /Volumes/Videos/3. And the env list verifies that. However, the LANraragi still set Data Directory to its default path.

cazendium commented 1 year ago

I was able to update it by going: export LRR_DATA_DIRECTORY=/Volumes/Content then lanraragi