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.16k stars 151 forks source link

Crash on startup after upgrade to 0.7.7 #433

Closed jmhickman closed 3 years ago

jmhickman commented 3 years ago

LRR Version and OS Linux native, 0.7.7 updated from 0.7.6, debian buster

Bug Details Application crashes on start.

Matching Logs Starting the application leaves the following in journalctl

Mar 27 05:49:50 lanraragi npm[99]: > lanraragi@0.7.7 start /root/LANraragi
Mar 27 05:49:50 lanraragi npm[99]: > perl ./script/launcher.pl -f ./script/lanraragi
Mar 27 05:49:50 lanraragi npm[99]: キタ━━━━━━(゚∀゚)━━━━━━!!!!!
Mar 27 05:49:50 lanraragi npm[99]: [LANraragi] [info] LANraragi 0.7.7 started. (Production Mode)
Mar 27 05:49:50 lanraragi npm[99]: [LANraragi] [info] Plugin Detected: Chaika.moe
Mar 27 05:49:50 lanraragi npm[99]: [LANraragi] [info] Plugin Detected: Tag Copier
Mar 27 05:49:50 lanraragi npm[99]: [LANraragi] [info] Plugin Detected: Date Added
Mar 27 05:49:50 lanraragi npm[99]: [LANraragi] [info] Plugin Detected: E-Hentai
Mar 27 05:49:50 lanraragi npm[99]: [LANraragi] [info] Plugin Detected: eze
Mar 27 05:49:50 lanraragi npm[99]: [LANraragi] [info] Plugin Detected: Hdoujin
Mar 27 05:49:50 lanraragi npm[99]: [LANraragi] [info] Plugin Detected: koromo
Mar 27 05:49:50 lanraragi npm[99]: [LANraragi] [info] Plugin Detected: Chaika.moe
Mar 27 05:49:50 lanraragi npm[99]: [LANraragi] [info] Plugin Detected: Tag Copier
Mar 27 05:49:50 lanraragi npm[99]: [LANraragi] [info] Plugin Detected: Date Added
Mar 27 05:49:50 lanraragi npm[99]: [LANraragi] [info] Plugin Detected: E-Hentai
Mar 27 05:49:50 lanraragi npm[99]: [LANraragi] [info] Plugin Detected: eze
Mar 27 05:49:50 lanraragi npm[99]: [LANraragi] [info] Plugin Detected: Hdoujin
Mar 27 05:49:50 lanraragi npm[99]: [LANraragi] [info] Plugin Detected: koromo
Mar 27 05:49:50 lanraragi npm[99]: [LANraragi] [info] Plugin Detected: Mayriad's EH Master Script
Mar 27 05:49:50 lanraragi npm[99]: [LANraragi] [info] Plugin Detected: Filename Parsing
Mar 27 05:49:50 lanraragi npm[99]: [LANraragi] [info] Plugin Detected: nHentai
Mar 27 05:49:50 lanraragi npm[99]: [LANraragi] [info] Script Detected: [PREVIEW] E*Hentai Downloader
Mar 27 05:49:50 lanraragi npm[99]: [LANraragi] [info] Script Detected: Migrate Favorite Tags
Mar 27 05:49:50 lanraragi npm[99]: [LANraragi] [info] Script Detected: Subfolders to Categories
Mar 27 05:49:50 lanraragi npm[99]: [LANraragi] [info] Script Detected: The Normalizer
Mar 27 05:49:50 lanraragi npm[99]: [LANraragi] [info] Script Detected: Source Finder
Mar 27 05:49:50 lanraragi npm[99]: [LANraragi] [info] Downloader Detected: Chaika.moe Downloader
Mar 27 05:49:50 lanraragi npm[99]: [LANraragi] [info] Downloader Detected: E*Hentai Downloader
Mar 27 05:49:50 lanraragi npm[99]: Killing process 11179 from ./script/minion.pid
Mar 27 05:49:50 lanraragi npm[99]: [LANraragi] [info] Successfully connected to Minion database.
Mar 27 05:49:50 lanraragi npm[99]: [Minion] [info] Starting new Minion worker in subprocess with 12 parallel jobs.
Mar 27 05:49:50 lanraragi npm[99]: Killing process 11180 from ./script/shinobu.pid
Mar 27 05:49:50 lanraragi npm[99]: [Minion] [info] Minion worker 113 started
Mar 27 05:49:50 lanraragi npm[99]: [Minion] [info] Warming up search cache...
Mar 27 05:49:50 lanraragi npm[99]: Can't load application from file "/root/LANraragi/script/lanraragi": Bareword "LANraragi::Model::Config::enable_autotag" not allowed while "strict subs" in use at 
 root/LANraragi/script/../lib/LANraragi/Controller/Api.pm line 255.
Mar 27 05:49:50 lanraragi npm[99]: Compilation failed in require at (eval 121) line 1.
Mar 27 05:49:50 lanraragi npm[99]: Compilation failed in require at (eval 87) line 1.
Mar 27 05:49:50 lanraragi npm[99]: [LANraragi] [info] Routing done! Ready to receive requests.
Mar 27 05:49:50 lanraragi npm[99]: npm ERR! code ELIFECYCLE
Mar 27 05:49:50 lanraragi npm[99]: npm ERR! errno 255
Mar 27 05:49:50 lanraragi npm[99]: npm ERR! lanraragi@0.7.7 start: `perl ./script/launcher.pl -f ./script/lanraragi`
Mar 27 05:49:50 lanraragi npm[99]: npm ERR! Exit status 255
Mar 27 05:49:50 lanraragi npm[99]: npm ERR!
Mar 27 05:49:50 lanraragi npm[99]: npm ERR! Failed at the lanraragi@0.7.7 start script.
Mar 27 05:49:50 lanraragi npm[99]: npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
Mar 27 05:49:50 lanraragi npm[99]: npm ERR! A complete log of this run can be found in:
Mar 27 05:49:50 lanraragi npm[99]: npm ERR!     /root/.npm/_logs/2021-03-27T05_49_50_907Z-debug.log
Mar 27 05:49:50 lanraragi systemd[1]: lanraragi.service: Main process exited, code=exited, status=255/EXCEPTION

Additional Notes: I just did an upgrade the same way I've always done it. Copied over my old files from extracted tarball, ran the install-full npm command, that went fine. Then it got anger-y.

Difegue commented 3 years ago

Looks like you have some old files left over from previous installs -- LANraragi/Controller/Api.pm hasn't been part of the codebase for quite a while now.

jmhickman commented 3 years ago

Alrighty, looks like deleting that file got the installation back up and running. Guess I'll burrow around in the repo and look for anything else that's hanging around.