Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

[Support] Audiobookshelf

Featured Replies

Hi
great Programm
tried with 5 Audiobooks and id worked real good.
I use the Unraid Docker.

 

But i get the following error, scanning my full Audiobook Dir for the first time:

......
[2022-04-27T21:00:55.101Z] INFO: [CoverManager] Downloaded libraryItem cover "/audiobooks/Sebastian Fitzek/Passagier 23. Das ungekuerzte Hoerspiel/cover.jpg" from url "https://m.media-amazon.com/images/I/91GgjDCAq2L._SL2000_.jpg" for "Passagier 23. Das ungekuerzte Hoerspiel"
/server/njodb/index.js:103
throw error;

 

SyntaxError: Unexpected end of JSON input
at JSON.parse (<anonymous>)
at ChildProcess.<anonymous> (/node_modules/node-ffprobe/lib/ffprobe.js:36:40)
at ChildProcess.emit (node:events:526:28)
at maybeClose (node:internal/child_process:1092:16)
at Socket.<anonymous> (node:internal/child_process:451:11)
at Socket.emit (node:events:526:28)
at Pipe.<anonymous> (node:net:687:12)


After this the it ends.
Every new start brings this error and it shuts down imediatly


> [email protected] start
> node index.js

Config /config /metadata /audiobooks
[2022-04-27T21:09:14.515Z] INFO: === Starting Server ===
[2022-04-27T21:09:14.516Z] INFO: [Server] Init v2.0.3
[2022-04-27T21:09:14.535Z] INFO: [DB] 0 Collections Loaded
[2022-04-27T21:09:14.535Z] INFO: [DB] 0 Series Loaded
[2022-04-27T21:09:14.583Z] INFO: [DB] 1 Libraries Loaded
[2022-04-27T21:09:14.586Z] INFO: [DB] 1 Users Loaded
[2022-04-27T21:09:14.587Z] INFO: [DB] 21 Authors Loaded


#
# Fatal error in , line 0
# unreachable code
#
#
#
#FailureMessage Object: 0x14e66c109480
npm ERR! path /
npm ERR! command failed
npm ERR! signal SIGILL
npm ERR! command sh -c node index.js

npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2022-04-27T21_09_13_901Z-debug-0.log


 

 

  • Replies 349
  • Views 138.3k
  • Created
  • Last Reply

Top Posters In This Topic

Most Popular Posts

  • Hey,   I tried doing the same process and it's working fine now. It was definitely a cover issue as the web browser version showed invalid cover. The issue was the android app would crash in

  • Yes, this is because the scanner & folder watcher doesn't know for sure whether you deleted it or it got moved or maybe some random file system issue and it wasn't detected. In that case if it rem

  • I don't think this is the correct way to do this. Not sure what problems you were having with the standard config. This worked for me, just make sure you're on the same network as SWAG   ## Ve

Posted Images

  • Author
4 hours ago, WildOne said:

Hi
great Programm
tried with 5 Audiobooks and id worked real good.
I use the Unraid Docker.

 

But i get the following error, scanning my full Audiobook Dir for the first time:

......
[2022-04-27T21:00:55.101Z] INFO: [CoverManager] Downloaded libraryItem cover "/audiobooks/Sebastian Fitzek/Passagier 23. Das ungekuerzte Hoerspiel/cover.jpg" from url "https://m.media-amazon.com/images/I/91GgjDCAq2L._SL2000_.jpg" for "Passagier 23. Das ungekuerzte Hoerspiel"
/server/njodb/index.js:103
throw error;

 

SyntaxError: Unexpected end of JSON input
at JSON.parse (<anonymous>)
at ChildProcess.<anonymous> (/node_modules/node-ffprobe/lib/ffprobe.js:36:40)
at ChildProcess.emit (node:events:526:28)
at maybeClose (node:internal/child_process:1092:16)
at Socket.<anonymous> (node:internal/child_process:451:11)
at Socket.emit (node:events:526:28)
at Pipe.<anonymous> (node:net:687:12)


After this the it ends.
Every new start brings this error and it shuts down imediatly


> [email protected] start
> node index.js

Config /config /metadata /audiobooks
[2022-04-27T21:09:14.515Z] INFO: === Starting Server ===
[2022-04-27T21:09:14.516Z] INFO: [Server] Init v2.0.3
[2022-04-27T21:09:14.535Z] INFO: [DB] 0 Collections Loaded
[2022-04-27T21:09:14.535Z] INFO: [DB] 0 Series Loaded
[2022-04-27T21:09:14.583Z] INFO: [DB] 1 Libraries Loaded
[2022-04-27T21:09:14.586Z] INFO: [DB] 1 Users Loaded
[2022-04-27T21:09:14.587Z] INFO: [DB] 21 Authors Loaded


#
# Fatal error in , line 0
# unreachable code
#
#
#
#FailureMessage Object: 0x14e66c109480
npm ERR! path /
npm ERR! command failed
npm ERR! signal SIGILL
npm ERR! command sh -c node index.js

npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2022-04-27T21_09_13_901Z-debug-0.log


 

 

Can you try removing that audiobook and see if you can narrow it down to a specific audiobook?

10 hours ago, advplyr said:

Can you try removing that audiobook and see if you can narrow it down to a specific audiobook?

I tried
Over 1.000 Audiobooks and i cant find a Logfile
Sanned xyz OK
Scanned abc OK
Scann fhg  ERRROR

Tried to split the Audiobooks
Folder A-C
Folder D-F

But i get errors in every folder 😭and it doesnt look like its allways the same Audiobook

 

  • Author
14 minutes ago, WildOne said:

I tried
Over 1.000 Audiobooks and i cant find a Logfile
Sanned xyz OK
Scanned abc OK
Scann fhg  ERRROR

Tried to split the Audiobooks
Folder A-C
Folder D-F

But i get errors in every folder 😭and it doesnt look like its allways the same Audiobook

 

I think you need to completely remove the audiobookshelf appdata folder, remove the docker container, and start fresh. Then share your docker run command if it happens again.

2 hours ago, advplyr said:

I think you need to completely remove the audiobookshelf appdata folder, remove the docker container, and start fresh. Then share your docker run command if it happens again.

I  found the Problem and it was absolut my fault.

Some of my older collections are not as clean as they should be.
E.G.
Agatha Christie (Folder)

      16 Uhr 50 ab Paddington (Folder)
      Alter schuetzt vor Scharfsinn nicht (Folder)
      .... about 60 other Folders with Audiobooks
      Villa Nachtigall.mp3 one f.... Audiobook without folder, that i missed.

Maybe there should be an Errortrap for such chaotic collection ;-)


Thanks for your help anyways

  • Author
1 hour ago, WildOne said:

I  found the Problem and it was absolut my fault.

Some of my older collections are not as clean as they should be.
E.G.
Agatha Christie (Folder)

      16 Uhr 50 ab Paddington (Folder)
      Alter schuetzt vor Scharfsinn nicht (Folder)
      .... about 60 other Folders with Audiobooks
      Villa Nachtigall.mp3 one f.... Audiobook without folder, that i missed.

Maybe there should be an Errortrap for such chaotic collection ;-)


Thanks for your help anyways

In an upcoming release audio files in the root of library folders will be treated as audiobooks

If i update an Author, i can change the description.
But is there a chance to insert a Picture by hand without editing the data.??.json and copy a picture to metadata\authors\ using the ID
Something like Upload image button

  • Author
31 minutes ago, WildOne said:

If i update an Author, i can change the description.
But is there a chance to insert a Picture by hand without editing the data.??.json and copy a picture to metadata\authors\ using the ID
Something like Upload image button

Not possible now, but will be added in an upcoming release. The authors page is new as of v2 so still early days. You can follow the github issue for that here: https://github.com/advplyr/audiobookshelf/issues/498 where I will post updates when that is live.

Hello! Great development so far, I've switched both my backend and frontend to ABS.

Just a note: when downloading an audiobook from my oneplus 8 (android 12), it triggers a fail notification related to the cover objects but it's misleading, if you launch a manual scan of the local folder it finds the covers and correctly apply.

 

I'm sorry if it's a known issue, maybe I've missed the post with resolution.

On 4/27/2022 at 1:11 PM, Salzgablah said:

 

I switched from SWAG to nginx proxy manager to try out other reverse proxy options to see if it fixed my issue.

 

Still have a "Socket Failed to Connect" error after logging in through the reverse proxy. Making me think it's an ABS container issue instead of reverse proxy issue, but could be wrong.

@jimmy898 and @Froberg, you both were right. Wasn't container based.

 

It was addons with Firefox causing conflicts. It worked on chrome so started digging into the browser. Now it's working as intended. All good on my end.

I am using SWAG reverse proxy using the example on the github and my books take around 10s to load or some times do not load and once they start playing the will usually stop at random requiring me to reload the page. I have checked the log and cannot see anything amiss. I have also tried Nginx Reverse Proxy and get the same issue. Works fine locally, any ideas?

  • Author
30 minutes ago, PterahNova said:

I am using SWAG reverse proxy using the example on the github and my books take around 10s to load or some times do not load and once they start playing the will usually stop at random requiring me to reload the page. I have checked the log and cannot see anything amiss. I have also tried Nginx Reverse Proxy and get the same issue. Works fine locally, any ideas?

Is this using the mobile app? Android or iOS? Have you tries using the browser on your phone?

1 hour ago, advplyr said:

Is this using the mobile app? Android or iOS? Have you tries using the browser on your phone?

Using browsers on laptop and PC. I can create an account for someone to try?

Edited by PterahNova

9 minutes ago, PterahNova said:

Using browsers on laptop and PC. I can create an account for someone to try?

Does file size effect? I have full books in a single file and ones split into multiple files.

  • Author
7 minutes ago, PterahNova said:

Using browsers on laptop and PC. I can create an account for someone to try?

I've not yet heard this one before. It sounds like a network issue. Look at any firewalls you have, try streaming from other services, try different audiobooks like maybe a small single mp3 file. Not something I can help much with.

6 minutes ago, advplyr said:

I've not yet heard this one before. It sounds like a network issue. Look at any firewalls you have, try streaming from other services, try different audiobooks like maybe a small single mp3 file. Not something I can help much with.

Thanks ill keep tinkering :)

Love what's going on with this project. So I've installed ABS via the deb install on my server, and have had no trouble using the web interface and and the andriod app with it. I tried using the docker container, and was able to use the web interface just fine (using nginx to reverse proxy to the docker port) However, when I try the andriod app with the docker version of ABS,  get a "cannot ping server" error.

 

I'm wondering, is the docker container usable with an andriod/apple app? If not, is it possible for my to alter the Dockerfile in some way to make is usable with the apps?

 

Thanks

1 hour ago, WarblingWhales said:

Love what's going on with this project. So I've installed ABS via the deb install on my server, and have had no trouble using the web interface and and the andriod app with it. I tried using the docker container, and was able to use the web interface just fine (using nginx to reverse proxy to the docker port) However, when I try the andriod app with the docker version of ABS,  get a "cannot ping server" error.

 

I'm wondering, is the docker container usable with an andriod/apple app? If not, is it possible for my to alter the Dockerfile in some way to make is usable with the apps?

 

Thanks

Working perfect here with docker (unraid-managed) and zero customs! 

  • Author
2 hours ago, WarblingWhales said:

Love what's going on with this project. So I've installed ABS via the deb install on my server, and have had no trouble using the web interface and and the andriod app with it. I tried using the docker container, and was able to use the web interface just fine (using nginx to reverse proxy to the docker port) However, when I try the andriod app with the docker version of ABS,  get a "cannot ping server" error.

 

I'm wondering, is the docker container usable with an andriod/apple app? If not, is it possible for my to alter the Dockerfile in some way to make is usable with the apps?

 

Thanks

This is an issue with your specific network setup and is difficult to provide any guidance since there are so many.
This is a relatively common issue people have but I rarely hear back on how they solved the problem.
I would like to get together a page on the site with all the common setups and troubleshooting common issues, so if you do find a solution please share or join the discord and connect.

13 minutes ago, advplyr said:

This is an issue with your specific network setup and is difficult to provide any guidance since there are so many.
This is a relatively common issue people have but I rarely hear back on how they solved the problem.
I would like to get together a page on the site with all the common setups and troubleshooting common issues, so if you do find a solution please share or join the discord and connect.

 

Reading between the lines, I should, theoretically,  be able to use the app with the standard docker container from the git repo, correct? If that's the case, knowing it works helps narrows down the possibilities of where the issues are and to how to resolve them.  Let me bang my head against the wall for a bit to see if I can figure out how to get it to work. If I figure it out, I'll reach back out and help set up and FAQ for https://www.audiobookshelf.org/

 

Thanks!

I love this thing, but it keeps crashing for me..

I can set it up as a fresh install, it runs for a while and then all suddenly it just dies and im unable to start it once again without having to purge the docker and reinstall it.. 

 

In the logs it looks like this

 

> [email protected] start
> node index.js

Config /config /metadata /audiobooks
[2022-05-11T21:23:09.829Z] INFO: === Starting Server ===
[2022-05-11T21:23:09.830Z] INFO: [Server] Init v2.0.12
[2022-05-11T21:23:09.890Z] INFO: [DB] 0 Collections Loaded
[2022-05-11T21:23:10.055Z] INFO: [DB] 1 Libraries Loaded
[2022-05-11T21:23:10.058Z] INFO: [DB] 1 Users Loaded
[2022-05-11T21:23:10.060Z] INFO: [DB] 3 Authors Loaded
[2022-05-11T21:23:10.062Z] INFO: [DB] 12 Series Loaded
[2022-05-11T21:23:10.102Z] INFO: [DB] 47 Library Items Loaded
[2022-05-11T21:23:10.103Z] INFO: [Db] Root user exists, pw: true
[2022-05-11T21:23:10.110Z] INFO: [BackupManager] 0 Backups Found
[2022-05-11T21:23:10.111Z] INFO: [BackupManager] Auto Backups are disabled
[2022-05-11T21:23:10.117Z] INFO: [LogManager] Init current daily log filename: 2022-05-11.txt
[2022-05-11T21:23:10.126Z] INFO: [Watcher] Initializing watcher for "Main".
[2022-05-11T21:23:10.161Z] INFO: Listening on http://0.0.0.0:80
[2022-05-11T21:23:10.837Z] INFO: [Watcher] "Main" Ready
/server/njodb/index.js:103
throw error;




TypeError: Cannot read properties of undefined (reading 'id')
at /server/objects/user/User.js:285:47
at Array.find (<anonymous>)
at User.createUpdateMediaProgress (/server/objects/user/User.js:283:43)
at PlaybackSessionManager.syncLocalSessionRequest (/server/managers/PlaybackSessionManager.js:63:27)

 

Please help me to get this working so i can use this awesome thing!

Best regards

  • Author
15 minutes ago, AndreasLindroth said:

I love this thing, but it keeps crashing for me..

I can set it up as a fresh install, it runs for a while and then all suddenly it just dies and im unable to start it once again without having to purge the docker and reinstall it.. 

 

In the logs it looks like this

 

> [email protected] start
> node index.js

Config /config /metadata /audiobooks
[2022-05-11T21:23:09.829Z] INFO: === Starting Server ===
[2022-05-11T21:23:09.830Z] INFO: [Server] Init v2.0.12
[2022-05-11T21:23:09.890Z] INFO: [DB] 0 Collections Loaded
[2022-05-11T21:23:10.055Z] INFO: [DB] 1 Libraries Loaded
[2022-05-11T21:23:10.058Z] INFO: [DB] 1 Users Loaded
[2022-05-11T21:23:10.060Z] INFO: [DB] 3 Authors Loaded
[2022-05-11T21:23:10.062Z] INFO: [DB] 12 Series Loaded
[2022-05-11T21:23:10.102Z] INFO: [DB] 47 Library Items Loaded
[2022-05-11T21:23:10.103Z] INFO: [Db] Root user exists, pw: true
[2022-05-11T21:23:10.110Z] INFO: [BackupManager] 0 Backups Found
[2022-05-11T21:23:10.111Z] INFO: [BackupManager] Auto Backups are disabled
[2022-05-11T21:23:10.117Z] INFO: [LogManager] Init current daily log filename: 2022-05-11.txt
[2022-05-11T21:23:10.126Z] INFO: [Watcher] Initializing watcher for "Main".
[2022-05-11T21:23:10.161Z] INFO: Listening on http://0.0.0.0:80
[2022-05-11T21:23:10.837Z] INFO: [Watcher] "Main" Ready
/server/njodb/index.js:103
throw error;




TypeError: Cannot read properties of undefined (reading 'id')
at /server/objects/user/User.js:285:47
at Array.find (<anonymous>)
at User.createUpdateMediaProgress (/server/objects/user/User.js:283:43)
at PlaybackSessionManager.syncLocalSessionRequest (/server/managers/PlaybackSessionManager.js:63:27)

 

Please help me to get this working so i can use this awesome thing!

Best regards

Oddly I just came across this issue, checked my notifications and here you are. This will be fixed in the next server or mobile update. What is happening is the local audiobook on your phone is not linked to an item on the server but is still sending a request to the server to update the media progress. One workaround is to re-download the audiobook from your server so it is linked, or just wait for the next server release which will be set to ignore these requests and will probably be put out tonight.

  • Author
3 hours ago, AndreasLindroth said:

I love this thing, but it keeps crashing for me..

I can set it up as a fresh install, it runs for a while and then all suddenly it just dies and im unable to start it once again without having to purge the docker and reinstall it.. 

 

In the logs it looks like this

 

> [email protected] start
> node index.js

Config /config /metadata /audiobooks
[2022-05-11T21:23:09.829Z] INFO: === Starting Server ===
[2022-05-11T21:23:09.830Z] INFO: [Server] Init v2.0.12
[2022-05-11T21:23:09.890Z] INFO: [DB] 0 Collections Loaded
[2022-05-11T21:23:10.055Z] INFO: [DB] 1 Libraries Loaded
[2022-05-11T21:23:10.058Z] INFO: [DB] 1 Users Loaded
[2022-05-11T21:23:10.060Z] INFO: [DB] 3 Authors Loaded
[2022-05-11T21:23:10.062Z] INFO: [DB] 12 Series Loaded
[2022-05-11T21:23:10.102Z] INFO: [DB] 47 Library Items Loaded
[2022-05-11T21:23:10.103Z] INFO: [Db] Root user exists, pw: true
[2022-05-11T21:23:10.110Z] INFO: [BackupManager] 0 Backups Found
[2022-05-11T21:23:10.111Z] INFO: [BackupManager] Auto Backups are disabled
[2022-05-11T21:23:10.117Z] INFO: [LogManager] Init current daily log filename: 2022-05-11.txt
[2022-05-11T21:23:10.126Z] INFO: [Watcher] Initializing watcher for "Main".
[2022-05-11T21:23:10.161Z] INFO: Listening on http://0.0.0.0:80
[2022-05-11T21:23:10.837Z] INFO: [Watcher] "Main" Ready
/server/njodb/index.js:103
throw error;




TypeError: Cannot read properties of undefined (reading 'id')
at /server/objects/user/User.js:285:47
at Array.find (<anonymous>)
at User.createUpdateMediaProgress (/server/objects/user/User.js:283:43)
at PlaybackSessionManager.syncLocalSessionRequest (/server/managers/PlaybackSessionManager.js:63:27)

 

Please help me to get this working so i can use this awesome thing!

Best regards

If you update the server to 2.0.13 this is fixed.

7 hours ago, advplyr said:

Oddly I just came across this issue, checked my notifications and here you are. This will be fixed in the next server or mobile update. What is happening is the local audiobook on your phone is not linked to an item on the server but is still sending a request to the server to update the media progress. One workaround is to re-download the audiobook from your server so it is linked, or just wait for the next server release which will be set to ignore these requests and will probably be put out tonight.

 

Oh yes, That was exactly the issue. I had a local audiobook on my phone and then i rearranged my folders to put the books into series and i cleared my library and rescanned.

Got to love this when you post a semi edge-case issue before going to bed and when you wake up there is not only an answer explaning why, but also a update that fixes the issue!

 

Thanks alot, my work day is saved and i can keep listning to my audiobooks!

 

Hello, Quick question: 

Is there a way to reset the root password when you do not know it via CLI or so?

My password manager overwrote my generated password when i created a new account so now i don't know the root password anymore..

 

Im still able to log in to it via auto sign-in from one of my computers so i've made an other Admin account, but would still like to recover the root password.

 

Best regards

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.