mikiher / audiobookshelf-windows

Installs and manages Audiobookshelf on Windows
72 stars 1 forks source link

server crashing soon after loading after 17.2 #33

Open Haplo99 opened 5 hours ago

Haplo99 commented 5 hours ago

everything was working well, allowed it to atoupdate to 17.2 and server crashed out with "server exited with error code 1" going back a version or 2 stops the error on start but still won't allow even all the way back to 2.16

Server logs below

production Config C:\Users\Mark\AppData\Local\Audiobookshelf\config C:\Users\Mark\AppData\Local\Audiobookshelf\metadata [2024-11-25 15:53:36.069] INFO: === Starting Server === [2024-11-25 15:53:36.070] INFO: [Server] Init v2.17.2 [2024-11-25 15:53:36.070] INFO: [Server] Node.js Version: v20.18.0 [2024-11-25 15:53:36.070] INFO: [Server] Platform: win32 [2024-11-25 15:53:36.070] INFO: [Server] Arch: x64 [2024-11-25 15:53:36.107] INFO: [BinaryManager] Found valid executable ffmpeg at C:\Users\Mark\AppData\Local\Programs\Audiobookshelf\ffmpeg.exe [2024-11-25 15:53:36.107] INFO: [BinaryManager] Updating process.env.FFMPEG_PATH [2024-11-25 15:53:36.134] INFO: [BinaryManager] Found valid executable ffprobe at C:\Users\Mark\AppData\Local\Programs\Audiobookshelf\ffprobe.exe [2024-11-25 15:53:36.134] INFO: [BinaryManager] Updating process.env.FFPROBE_PATH [2024-11-25 15:53:36.135] INFO: [BinaryManager] Found valid library libnusqlite3 at C:\Users\Mark\AppData\Local\Programs\Audiobookshelf\libnusqlite3.dll [2024-11-25 15:53:36.135] INFO: [BinaryManager] Updating process.env.NUSQLITE3_PATH [2024-11-25 15:53:36.135] INFO: [Database] Initializing db at "C:\Users\Mark\AppData\Local\Audiobookshelf\config\absdatabase.sqlite" [2024-11-25 15:53:36.147] INFO: [Database] Loading extension C:\Users\Mark\AppData\Local\Programs\Audiobookshelf\libnusqlite3.dll [2024-11-25 15:53:36.148] INFO: [Database] Successfully loaded extension C:\Users\Mark\AppData\Local\Programs\Audiobookshelf\libnusqlite3.dll [2024-11-25 15:53:36.148] INFO: [Database] Db supports unaccent and unicode foldings [2024-11-25 15:53:36.148] INFO: [Database] Db connection was successful [2024-11-25 15:53:36.150] INFO: [MigrationManager] Database is already up to date. [2024-11-25 15:53:36.217] INFO: [Database] Db initialized with models: user, library, libraryFolder, book, podcast, podcastEpisode, libraryItem, mediaProgress, series, bookSeries, author, bookAuthor, collection, collectionBook, playlist, playlistMediaItem, device, playbackSession, feed, feedEpisode, setting, customMetadataProvider, mediaItemShare [2024-11-25 15:53:36.230] INFO: [LogManager] Removed daily log: 2024-11-18.txt [2024-11-25 15:53:36.230] INFO: [LogManager] Init current daily log filename: 2024-11-25.txt [2024-11-25 15:53:36.235] INFO: [BackupManager] 0 Backups Found [2024-11-25 15:53:36.235] INFO: [BackupManager] Auto Backups are disabled [2024-11-25 15:53:36.242] INFO: [Watcher] Initializing watcher for "Nooobs". [2024-11-25 15:53:36.242] INFO: [Watcher] Initializing watcher for "Checker for stuff to keep". [2024-11-25 15:53:36.247] FATAL: [Server] Uncaught exception origin: uncaughtException, error: Error: listen EACCES: permission denied 0.0.0.0:13378 at Server.setupListenHandle [as _listen2] (node:net:1882:21) at listenInCluster (node:net:1961:12) at Server.listen (node:net:2063:7) at Server.start (C:\snapshot\audiobookshelf\server\Server.js) { code: 'EACCES', errno: -4092, syscall: 'listen', address: '0.0.0.0', port: 13378 } node:events:497 throw er; // Unhandled 'error' event ^ Error: listen EACCES: permission denied 0.0.0.0:13378 at Server.setupListenHandle [as _listen2] (node:net:1882:21) at listenInCluster (node:net:1961:12) at Server.listen (node:net:2063:7) at Server.start (C:\snapshot\audiobookshelf\server\Server.js) Emitted 'error' event on Server instance at: at emitErrorNT (node:net:1940:8) at process.processTicksAndRejections (node:internal/process/task_queues:82:21) { code: 'EACCES', errno: -4092, syscall: 'listen', address: '0.0.0.0', port: 13378 } Node.js v20.18.0

mikiher commented 4 hours ago

First of all, please attach the log file (at %localappdata%\AudiobookshelfTray\logfile.txt)

The message tells me that the server was not shut down properly and it's still running. To fix this:

  1. Open Task Manager (Ctrl+Shift+Esc)
  2. Find a process named Node.js JavaScript Runtime
  3. Right-click on the process, and select End task
  4. If the Audiobookshelf tray app is still running, close it (right-click the Audiobookshelf tray icon and select Exit)
  5. Start the Audiobookshelf tray app again

This should resolve the EACCES issue and let you start the server again.

I'm not sure what caused the server not to shutdown properly during the update process (this is why I asked for the log), but I suspect that this is probably a transient issue, so you can safely try again to to update to the latest version. Let me know how it goes.

Haplo99 commented 4 hours ago

logfile.txt

couldn't find "Node.js JavaScript Runtime". couldn't find it on processes or details. if it helps issue started week ago and computers reset many times since then and always pops up the error on starup. have included the log

mikiher commented 3 hours ago

Hmm. Ok, can you please:

  1. Open a command prompt with administrator priviledges. To do this, click the Start button, type cmd, right-click on Command Prompt, and select Run as Administrator
  2. Run the following command: netstat -aon | findstr :13378

Does this show any output? If so, please copy and paste here

Haplo99 commented 1 hour ago

shows nothing, just straight to another cmd line d9bcd380500a971d6dc3cb907115ca1d

mikiher commented 13 minutes ago

OK, next I'd like to see if you're able to run on on port 13379.

  1. Right click the Audiobookshelf tray icon
  2. Click on Settings
  3. Change the port to 13379
  4. Click Save
  5. You'll get the message: Changing server setting requires a server restart.... Click Yes

Is the server now running?

Haplo99 commented 9 minutes ago

nope, same error code 1 and unable to connect. added the most recent log logfile.txt