Commit Graph

9 Commits

Author SHA1 Message Date
crocodilestick 8e18aafb98 Updated documentation for privileged ports 2025-08-25 21:25:15 +02:00
crocodilestick 9fa129d6b6 Made it possible to change the port via the ENV Variable CWA_PORT_OVERRIDE. Default port is still 8083. External port now defaults to override port if given 2025-08-25 21:21:35 +02:00
crocodilestick c286887ad9 [Feature Request] Ability to Disable the Auto Library Service Dir Walk
Fixes #383

Added DISABLE_LIBRARY_AUTO_MOUNT ENV to allow users to turn of the library auto-mount service at start up if it isn't desired
2025-08-20 15:23:49 +02:00
crocodilestick a9b17a7c25 Added documentation for the new alternative polling method 2025-08-19 16:59:42 +02:00
crocodilestick a719e14a6c SQLite stability and concurrency:
- Added connection timeouts everywhere:
SQLAlchemy engines: connect_args={'timeout': 30}
sqlite3 direct connects: timeout=30 across scripts

- Enabled WAL mode on local disks and made it conditional via an environment flag.
-Added small retry/backoff in read-only UI probes to tolerate transient “database is locked.”

Increased Network share support (NFS/SMB):

- Introduced NETWORK_SHARE_MODE to disable WAL and suppress permission-changing operations that can break on network filesystems.
- Suppressed recursive chown when NETWORK_SHARE_MODE is true:
Python:
scripts/auto_library.py: skip chown for /config and /calibre-library during app.db/new library setup
scripts/ingest_processor.py: skip chown of library in set_library_permissions
scripts/convert_library.py: skip chown of convert-library.log; skip library chown
scripts/kindle_epub_fixer.py: skip chown of epub-fixer.log
cps/updater.py: disable os.chown during updates when flag is enabled
Shell:
scripts/setup-cwa.sh: guard chown of /etc/s6-overlay
root/etc/s6-overlay/s6-rc.d/cwa-init/run: guard initial chown of /config and cps/cache; guard requiredDirs loop

Documentation and configuration:

- README: Added “Network shares and SQLite WAL mode” section; documented that NETWORK_SHARE_MODE disables WAL and chown behavior for safety on network shares.
- docker-compose.yml and docker-compose.yml.dev: Exposed NETWORK_SHARE_MODE (default false) in environment.
Fixed a minor YAML indentation issue during compose edits.

Impacts on the Project:

- Fewer “database is locked” errors due to timeouts, gentle retries, and WAL on local disks.
- Safer behavior on NFS/SMB: WAL disabled and chown suppressed when NETWORK_SHARE_MODE=true.
- Clearer guidance for users via README and compose templates.

[bug] chown failed
Fixes #175
Calibre-Web-automated [bug]
Fixes #530
2025-08-18 12:35:12 +02:00
crocodilestick 28ae2867e3 Updated Dev bind example in dev compose 2025-08-10 19:15:58 +02:00
crocodilestick c6b6cc5413 Fixed fetching metadata from amazon occassionally hanging the app, made the mail server more compatible with Gmail, apperance of mobile settings modal in ebook_viewer fixed,. Testing Isotope plugin that is a version of fitRows but centered to the screen to make the UI more attractive, especially on mobile. 2025-07-28 16:37:38 +02:00
crocodilestick 9c78de8a62 Separate compose for devs added by previous contributor not required 2024-10-29 21:24:27 +00:00
jmarmstrong1207 ec59b4b69e automatically build and compose docker container 2024-09-29 00:58:26 -07:00