yunohost-apps / audiobookshelf_ynh Goto Github PK
View Code? Open in Web Editor NEWAudiobookshelf package for YunoHost
Home Page: https://audiobookshelf.org/
License: GNU General Public License v3.0
Audiobookshelf package for YunoHost
Home Page: https://audiobookshelf.org/
License: GNU General Public License v3.0
When I try to update audiobookshelf, it tries to create a backup which includes the hundreds of GB of podcast audio files that I have downloaded, so the backup fails due to lack of disk space.
yunohost app update audiobookshelf
Replicate the upgrade / backup functions of nextcloud, IE: Dont try to backup all the media that are downloaded / managed by the app, just backup the configs.
I dont see logs related to the attempted upgrade /backup in /yunohost/admin/#/tools/logs
. I attempted this yesterday and in the interim the logs must have gotten purged or something. (signing up for github on tor browser is a huge pain in the butt, but today it worked).
The error in questions was along the lines of:
attempting to create a backup of audiobookshelf failed, 500gb of space needed, not enough space on disk
Unable to install on a Raspberry Pi 4 (4GB) with 1GB of SWAP
Info: WARNING - ./install: line 164: 12190 Killed /opt/node_n/n/versions/node/16/bin/npm ci
I am assuming this is a memory issue as I am able to install this on a Pi 4 (8GB) with 100M of SWAP. Needs more investigation, but I am leaving this issue open for now
Need to test Android and iOS apps with the server and make sure everything is working
Hardware: Thinkpad Laptop – Intel i5 – 4GB RAM
YunoHost version: Latest ISO – fresh install
I have access to my server : SSH & Web Admin
Are you in a special context or did you perform some particular tweaking on your YunoHost instance? : No
If yes, please explain:
Description of my issue:
Hi all, I can't upload any of my audiobooks. I get the following error:
Any idea how I can fix it?
Audiobookshelf currently crashes on FATAL: [Server] Unhandled rejection: ReferenceError: structuredClone is not defined
as 'structuredClone' function was introduced in Node 17.
advplyr/audiobookshelf#2854
Yunohost version of ABS uses node 16.2. Updating version in files in /opt/node_n/ynh_app_version or /etc/yunohost/apps/audiobookshelf doesn't make any changes.
App service crashes immediatly after I try to start it. I cant restore from backup because of #95
yunohost app update audiobookshelf --no-safety-backup
yunohost service restart audiobookshelf
Start the software.
I have to read through logs line by line to redact potentially de-anonimizing info so lmk if need more details
[20xx-xx-xx xx:xx:x6] INFO: === Starting Server ===
[20xx-xx-xx xx:xx:x6] INFO: [Server] Init v2.5.0
[20xx-xx-xx xx:xx:x6] INFO: [Database] Initializing db at "/home/yunohost.app/audiobookshelf/config/absdatabase.sqlite"
[20xx-xx-xx xx:xx:x6] INFO: [Database] Db connection was successful
[20xx-xx-xx xx:xx:x6] 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
[20xx-xx-xx xx:xx:x6] WARN: [ServerSettings] Invalid metadataFileFormat abs (as of v2.4.5 only json is supported) (ServerSettings.js:114)
[20xx-xx-xx xx:xx:x6] INFO: [dbMigration] Migration patch 2.3.0+ - extraData columns already on model
[20xx-xx-xx xx:xx:x6] INFO: [dbMigration] Applying migration patch from 2.3.0+
[20xx-xx-xx xx:xx:x7] INFO: [oldDbFiles] Loading db data at "/home/yunohost.app/audiobookshelf/config/libraryItems/data"
[20xx-xx-xx xx:xx:x7] INFO: [oldDbFiles] Loading db data file "/home/yunohost.app/audiobookshelf/config/libraryItems/data/data.0.json"
[oldDbFiles] Db file "/home/yunohost.app/audiobookshelf/config/libraryItems/data/data.0.json" processed
[20xx-xx-xx xx:xx:x7] INFO: [oldDbFiles] Processed db data file with 13 entities
[20xx-xx-xx xx:xx:x7] INFO: [oldDbFiles] Loading db data file "/home/yunohost.app/audiobookshelf/config/libraryItems/data/data.1.json"
[oldDbFiles] Db file "/home/yunohost.app/audiobookshelf/config/libraryItems/data/data.1.json" processed
[20xx-xx-xx xx:xx:x7] INFO: [oldDbFiles] Processed db data file with 11 entities
[20xx-xx-xx xx:xx:x7] INFO: [oldDbFiles] Loading db data file "/home/yunohost.app/audiobookshelf/config/libraryItems/data/data.2.json"
[oldDbFiles] Db file "/home/yunohost.app/audiobookshelf/config/libraryItems/data/data.2.json" processed
[20xx-xx-xx xx:xx:x7] INFO: [oldDbFiles] Processed db data file with 16 entities
[20xx-xx-xx xx:xx:x7] INFO: [oldDbFiles] Loading db data file "/home/yunohost.app/audiobookshelf/config/libraryItems/data/data.3.json"
[oldDbFiles] Db file "/home/yunohost.app/audiobookshelf/config/libraryItems/data/data.3.json" processed
[20xx-xx-xx xx:xx:x7] INFO: [oldDbFiles] Processed db data file with 10 entities
[20xx-xx-xx xx:xx:x7] INFO: [oldDbFiles] Loading db data file "/home/yunohost.app/audiobookshelf/config/libraryItems/data/data.4.json"
[oldDbFiles] Db file "/home/yunohost.app/audiobookshelf/config/libraryItems/data/data.4.json" processed
[20xx-xx-xx xx:xx:x7] INFO: [oldDbFiles] Processed db data file with 12 entities
[20xx-xx-xx xx:xx:x7] INFO: [oldDbFiles] Finished loading db data with 62 entities
[20xx-xx-xx xx:xx:x7] INFO: [oldDbFiles] 62 libraryItems loaded
node:internal/process/promises:279
triggerUncaughtException(err, true /* fromPromise */);
^
Error
at Database.<anonymous> (/var/www/audiobookshelf/node_modules/sequelize/lib/dialects/sqlite/query.js:185:27)
at /var/www/audiobookshelf/node_modules/sequelize/lib/dialects/sqlite/query.js:183:50
at new Promise (<anonymous>)
at Query.run (/var/www/audiobookshelf/node_modules/sequelize/lib/dialects/sqlite/query.js:183:12)
at /var/www/audiobookshelf/node_modules/sequelize/lib/sequelize.js:315:28
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async SQLiteQueryInterface.select (/var/www/audiobookshelf/node_modules/sequelize/lib/dialects/abstract/query-interface.js:407:12)
at async Function.findAll (/var/www/audiobookshelf/node_modules/sequelize/lib/model.js:1140:21)
at async Function.getAllOldLibraryItems (/var/www/audiobookshelf/server/models/LibraryItem.js:116:24) {
name: 'SequelizeDatabaseError',
parent: [Error: SQLITE_ERROR: no such column: libraryItem.size] {
errno: 1,
code: 'SQLITE_ERROR',
sql: 'SELECT `libraryItem`.`id`,
I can't upload anything. No matter the file i use, it results by a "error 413: Request entity too large".
Steps to reproduce the issue
1.Create a library
2.Try to upload a file
Content uploaded.
Didn't leave any trace in the logs.
Currently the command used to run the server is npm run dev
Make necessary changes to shift to production command
Link to forum entry https://forum.yunohost.org/t/audiobookshelf-upload-of-files-is-not-possible/28648/1
I installed the app from the official application "store". I have created a new user and try to upload a simple audiofile into the audiobookshel app.
Unforunately I get an error message called.
<html>
<head><title>413 Request Entity Too Large</title></head>
<body>
<center><h1>413 Request Entity Too Large</h1></center>
<hr><center>nginx</center>
</body>
</html>
The file uploads and is available in the UI.
I checked the nginx configuration file and it shows at text /etc/nginx/conf.d/audiobookshelf.<mydomain.tld>.d/audiobookshelf.conf
It says that the upload limit is set to 10G
#sub_path_only rewrite ^/$ / permanent;
location / {
proxy_pass http://127.0.0.1:8096;
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-Port $server_port;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Host $server_name;
proxy_pass_request_headers on;
#WebSocket Support
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $http_connection;
client_max_body_size 10G;
# Include SSOWAT user panel.
include conf.d/yunohost_panel.conf.inc;
}
Where can I find logs for the application?
When an operation fails, YunoHost provides a simple way to share the logs.
yunohost log display [log name] --share
. If you missed it, you can find the log ID of a previous operation using yunohost log list
.After sharing the log, please copypaste directly the link provided by YunoHost (to help readability, no need to copypaste the entire content of the log here, just the link is enough...)
If applicable and useful, add screenshots to help explain your problem.
After installing the app and logging in as default root user without password I cannot create a new user, I cannot create a library either. I get error messages instead. "Library must have a name" (when creating a library with a name) or "Not found" (when creating a user)
Looking at the logs I find the following:
ERROR: Verify Token User Not Found bG9yZW56Oitib2hlTTE1eQ==
or
ERROR: JWT Verify Token Failed JsonWebTokenError: jwt malformed
Full log: https://paste.yunohost.org/zokajewiyi
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.