Technosoft2000 / docker-calibre-web

Docker image for Calibre Web https://github.com/janeczku/calibre-web/, based on docker image of Alpine
273 stars 58 forks source link

disk I/O error #121

Open dalicode opened 2 years ago

dalicode commented 2 years ago

I am using proxmox with lxc container running docker. I am running calibre gui on my windows computer and creating the database in a gdrive.

I mounted my gdrive into lxc container using rclone and bound /books to my gdrive folder containing the calibre db files. I am running into an IO error when trying to run calibre-web.

Appreciate any help

version: "2.1" services: calibre-web: image: technosoft2000/calibre-web container_name: calibre-web environment:

change the ownership of /calibre-web/app/gdrive.db to calibre:calibre [INFO] Checking permissions of the books directory: /books Output is: 777 nobody 65534 nobody 65534 Permissions: 777 Assigned group: nobody Assigned group ID: 65534 Assigned owner: nobody Assigned owner ID: 65534 Using permissions for checks: 0777 Everyone has write access at /books [INFO] The mapped volume for /books contains a Calibre database file 'metadata.db' which will be used [INFO] The kindlegen directory exist already and will be used: /calibre-web/kindlegen [INFO] Kindlegen application exists already in directory: /calibre-web/kindlegen [INFO] kindlegen (Amazon Kindle Generator) will be linked into /calibre-web/app/vendor kindlegen link /calibre-web/app/vendor/kindlegen exists already and won't be recreated [INFO] Launching Calibre-Web ... Traceback (most recent call last): File "/usr/lib/python3.8/site-packages/sqlalchemy/engine/base.py", line 3240, in _wrap_pool_connect return fn() File "/usr/lib/python3.8/site-packages/sqlalchemy/pool/base.py", line 310, in connect return _ConnectionFairy._checkout(self) File "/usr/lib/python3.8/site-packages/sqlalchemy/pool/base.py", line 868, in _checkout fairy = _ConnectionRecord.checkout(pool) File "/usr/lib/python3.8/site-packages/sqlalchemy/pool/base.py", line 476, in checkout rec = pool._do_get() File "/usr/lib/python3.8/site-packages/sqlalchemy/pool/impl.py", line 256, in _do_get return self._create_connection() File "/usr/lib/python3.8/site-packages/sqlalchemy/pool/base.py", line 256, in _create_connection return ConnectionRecord(self) File "/usr/lib/python3.8/site-packages/sqlalchemy/pool/base.py", line 371, in init self.connect() File "/usr/lib/python3.8/site-packages/sqlalchemy/pool/base.py", line 666, in connect pool.logger.debug("Error on connect(): %s", e) File "/usr/lib/python3.8/site-packages/sqlalchemy/util/langhelpers.py", line 70, in exit compat.raise( File "/usr/lib/python3.8/site-packages/sqlalchemy/util/compat.py", line 207, in raise_ raise exception File "/usr/lib/python3.8/site-packages/sqlalchemy/pool/base.py", line 661, in __connect self.dbapi_connection = connection = pool._invoke_creator(self) File "/usr/lib/python3.8/site-packages/sqlalchemy/engine/create.py", line 590, in connect return dialect.connect(*cargs, *cparams) File "/usr/lib/python3.8/site-packages/sqlalchemy/engine/default.py", line 584, in connect return self.dbapi.connect(cargs, **cparams) sqlite3.OperationalError: disk I/O error

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "/calibre-web/app/cps.py", line 34, in from cps import create_app File "/calibre-web/app/cps/init.py", line 94, in ub.init_db(cli.settingspath) File "/calibre-web/app/cps/ub.py", line 807, in init_db Base.metadata.create_all(engine) File "/usr/lib/python3.8/site-packages/sqlalchemy/sql/schema.py", line 4779, in create_all bind._run_ddl_visitor( File "/usr/lib/python3.8/site-packages/sqlalchemy/engine/base.py", line 3106, in _run_ddl_visitor with self.begin() as conn: File "/usr/lib/python3.8/site-packages/sqlalchemy/engine/base.py", line 3022, in begin conn = self.connect(close_with_result=close_with_result) File "/usr/lib/python3.8/site-packages/sqlalchemy/engine/base.py", line 3194, in connect return self._connection_cls(self, close_with_result=close_with_result) File "/usr/lib/python3.8/site-packages/sqlalchemy/engine/base.py", line 96, in init else engine.raw_connection() File "/usr/lib/python3.8/site-packages/sqlalchemy/engine/base.py", line 3273, in raw_connection return self._wrap_pool_connect(self.pool.connect, _connection) File "/usr/lib/python3.8/site-packages/sqlalchemy/engine/base.py", line 3243, in _wrap_pool_connect Connection._handle_dbapi_exception_noconnection( File "/usr/lib/python3.8/site-packages/sqlalchemy/engine/base.py", line 2097, in _handle_dbapi_exceptionnoconnection util.raise( File "/usr/lib/python3.8/site-packages/sqlalchemy/util/compat.py", line 207, in raise_ raise exception File "/usr/lib/python3.8/site-packages/sqlalchemy/engine/base.py", line 3240, in _wrap_pool_connect return fn() File "/usr/lib/python3.8/site-packages/sqlalchemy/pool/base.py", line 310, in connect return _ConnectionFairy._checkout(self) File "/usr/lib/python3.8/site-packages/sqlalchemy/pool/base.py", line 868, in _checkout fairy = _ConnectionRecord.checkout(pool) File "/usr/lib/python3.8/site-packages/sqlalchemy/pool/base.py", line 476, in checkout rec = pool._do_get() File "/usr/lib/python3.8/site-packages/sqlalchemy/pool/impl.py", line 256, in _do_get return self._create_connection() File "/usr/lib/python3.8/site-packages/sqlalchemy/pool/base.py", line 256, in _create_connection return ConnectionRecord(self) File "/usr/lib/python3.8/site-packages/sqlalchemy/pool/base.py", line 371, in init self.connect() File "/usr/lib/python3.8/site-packages/sqlalchemy/pool/base.py", line 666, in connect pool.logger.debug("Error on connect(): %s", e) File "/usr/lib/python3.8/site-packages/sqlalchemy/util/langhelpers.py", line 70, in exit compat.raise( File "/usr/lib/python3.8/site-packages/sqlalchemy/util/compat.py", line 207, in raise_ raise exception File "/usr/lib/python3.8/site-packages/sqlalchemy/pool/base.py", line 661, in __connect self.dbapi_connection = connection = pool._invoke_creator(self) File "/usr/lib/python3.8/site-packages/sqlalchemy/engine/create.py", line 590, in connect return dialect.connect(*cargs, *cparams) File "/usr/lib/python3.8/site-packages/sqlalchemy/engine/default.py", line 584, in connect return self.dbapi.connect(cargs, **cparams) sqlalchemy.exc.OperationalError: (sqlite3.OperationalError) disk I/O error (Background on this error at: https://sqlalche.me/e/14/e3q8)