-
Notifications
You must be signed in to change notification settings - Fork 481
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: edge container giving SQLite error on startup #3231
Comments
OK, can I ask you to:
Please paste the result of the ls command here. Also, which Linux is your docker running on? |
I can not open a shell in the container. I get:
running on raspberry pi OS (Debian bookworm) |
it's not there, but that's also true for current? edge: current: |
It's a new binary that's downloaded and installed by Audiobokshelf itself. It's currently only in edge.
Ah, sorry - that figures, since your container crashes. |
The double file extension in the error seems unusual |
My hypothesis is that the file /unicode.so is there (we know it was downloaded successfully because the log says so), but sqlite is unable to load it, and so it tries to add another My suspicion is that the reason it unable to load /unicode.so is becuase it is an armhf OS (32-bit), and the sqlean binaries are only available for arm64. @advplyr do we officially support 32-bit systems? If this is indeed the reason, and if we need to support armhf, I might have to either:
Since 2 might take a while to achieve, probably I'll need to implement 1. But before we do all that, let's first hear from @ic1415 |
We don't officially support 32-bit. That was dropped in v2.8.0 https://github.com/advplyr/audiobookshelf/releases/tag/v2.8.0 |
If this is a broader issue we'll find out soon because I'm pushing the v2.12.0 release |
I see the same error on MacOS X, iMac M4, hence I don't think it's caused by a 32bit issue but it might be arm related... |
@katertier Are you sure it is the same error? I just tested on mac and found a separate crash on startup due to a bug with dylib |
macOS arm64 is supposed to be supported by SQLean (the binaries exist, at least). Can you please add your crash log to the bug? |
It works now with that fix for me. I've now tested on all the platforms so I'm going to go ahead with this release |
I'm pretty sure... :) 2024-08-04 23:50:02 [2024-08-04 21:50:02.630] INFO: === Starting Server === |
@advplyr: Thanks! A bit too late for me (midnight is approaching where I am), but I'll check first thing in the morning. |
My fix isn't going to fix that error. My mac downloads the |
Ah, sorry, and thanks for fixing that! it would be good to add the following lines after
I believe docker containers on macOS run in a lightweight linux virtual machine, similar to Windows. that's why @katertier's BinaryManager will still download the .so version (and hopefully the arm64 version). |
Same error on 64bit raspberry pi
I've reverted to v2.11.0 for now |
Catching up, but it is arm64 so no compatibility issues there Edit: attempted to install 2.12.0 and received the same error. Rolled back to 2.11 for the time being. |
Can you share the new logs that were added below "Node.js version" when starting the server? That gives us the variables that are being used to decide which binaries to use |
[2024-08-04 20:30:01.283] INFO: === Starting Server === |
Ok, thank you all. So to summarize what we know at this point, it looks like on linux-arm64, BinaryManager seems to have downloaded some version of unicode.so, but SQLite is unable to load that library. I'll continue to investigate. In the the meantime, my recommendation would be of course to stay with release 2.11.0 if your system is running on Linux arm64. Sorry for the hassle. |
Same issue for me on arm64. I have a mixed cluster so I have pinned audiobookshelf to one of my x86 nodes and it started fine so it definitely seems isolated to arm64. |
Same here, broken om arm64... |
I don't know anything about this error, but I installed 2.12.0 on my M4 iMac and I couldn't access my server. I'm back on 2.11.0. |
OK, an update: I submitted a fix for review. Hopefully it will be merged (and released) later today. |
Same Here :) uname -a
Linux debian 6.1.0-23-arm64 #1 SMP Debian 6.1.99-1 (2024-07-15) aarch64 GNU/Linux |
See this PR for a proper fix: #3236 |
Fixed in v2.12.1. |
What happened?
When using the following compose file, I am getting an SQLite error at startup:
What did you expect to happen?
Expected that ABS server would start
Steps to reproduce the issue
Audiobookshelf version
edge
How are you running audiobookshelf?
Docker
What OS is your Audiobookshelf server hosted from?
Linux
If the issue is being seen in the UI, what browsers are you seeing the problem on?
None
Logs
Additional Notes
No response
The text was updated successfully, but these errors were encountered: