Mijn vraag
Dag iedereen
Ik beschik over een Synology NAS 420+ met upgrade naar 6TB RAM, alsook in totaal 4x2 TB HDD in SHR (/volume1).
Ik wil graag een ebook bib beheren via Calibre-Web in Docker.
Daartoe installeerde ik eerst een docker image genaamd Calibre met de volgende compose:
Meteen bij de poging tot opstarten via <interne-ip>:8080 krijg ik een 502 gateway error, wat terug te brengen is tot een probleem van onvoldoende machtigingen tot de config folder binnen calibre, want daarbinnen probeert hij, bij opstart, een Calibre Library folder te maken, terwijl hij geen rechten heeft, cfr error log:
De kernfout is deze:
Ik heb dit kunnen oplossen door mijn calibre docker te stoppen, en via Putty in te loggen op mijn NAS en de eigenaar van de config map van calibre docker te veranderen in mijn credentials, nl PUID=1026 & PGID= 100, nl:
Na herstart lukte het wel om in te loggen op calibre docker; ik wijzigde vervolgens de bibliotheek folder naar /library (wat overeenkomt met /volume1/Books/Library, en evident heb ik de zelfde chown toegepast)
Vervolgens installeer ik calibre-web met de volgende docker compose:
Maar als ik vervolgens wil inloggen via <interne-ip>:8083 ...
Meldt elke browser mij hetzelfde probleem:
Dus 't komt erop neer dat hij de database probeert te benaderen, terwijl deze readonly is; het betreft overigens het bestand metadata.db
...terwijl ik dezelfde truukjes toepas als hierboven:
Als ik vervolgens even ownership check voor docker calibre-web...
...dan zie ik deze readout:
Als ik dat vervolgens herhaal voor calibre docker (nadat ik 'm terug heb geactiveerd), zie ik geen echte verschillen:
Geen idéé waar het fout loopt, maar ik ben ten einde raad
Relevante software en hardware die ik gebruik
Synology 420+
2x4TB HDD in SHR, /volume1
Upgrade naar 6 GB RAM via officiële SODIMM RAM van Synology
Wat ik al gevonden of geprobeerd heb
Zie supra.
Dag iedereen
Ik beschik over een Synology NAS 420+ met upgrade naar 6TB RAM, alsook in totaal 4x2 TB HDD in SHR (/volume1).
Ik wil graag een ebook bib beheren via Calibre-Web in Docker.
Daartoe installeerde ik eerst een docker image genaamd Calibre met de volgende compose:
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
| services: calibre: image: lscr.io/linuxserver/calibre:latest container_name: calibre security_opt: - seccomp:unconfined # optional environment: - PUID=1026 - PGID=100 - TZ=Europe/Brussels - PASSWORD= # optional - CLI_ARGS= # optional volumes: - /volume1/docker/calibre/config:/config - /volume1/Books/Library:/ebooks - /volume1/Books/Import:/import ports: - 8080:8080 - 8081:8081 restart: unless-stopped |
Meteen bij de poging tot opstarten via <interne-ip>:8080 krijg ik een 502 gateway error, wat terug te brengen is tot een probleem van onvoldoende machtigingen tot de config folder binnen calibre, want daarbinnen probeert hij, bij opstart, een Calibre Library folder te maken, terwijl hij geen rechten heeft, cfr error log:
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
| calibre date stream content 2025/04/26 20:47:14 stderr PermissionError: [Errno 13] Permission denied: '/config/Calibre Library' 2025/04/26 20:47:14 stderr File "os.py", line 225, in makedirs 2025/04/26 20:47:14 stderr File "calibre/gui2/wizard/__init__.py", line 698, in makedirs 2025/04/26 20:47:14 stderr File "calibre/gui2/wizard/__init__.py", line 831, in set_initial_library_location 2025/04/26 20:47:14 stderr Traceback (most recent call last): 2025/04/26 20:47:14 stderr Failed to create /config/.cache for shader cache (Permission denied)---disabling. 2025/04/26 20:47:13 stderr Failed to create /config/.cache for shader cache (Permission denied)---disabling. 2025/04/26 20:47:13 stdout Obt-Message: Xinerama extension is not present on the server 2025/04/26 20:47:13 stderr [mi] mieq: warning: overriding existing handler (nil) with 0x55e7c994ba80 for event 3 2025/04/26 20:47:13 stderr [mi] mieq: warning: overriding existing handler (nil) with 0x55e7c994ba80 for event 2 2025/04/26 20:47:13 stderr Errors from xkbcomp are not fatal to the X server 2025/04/26 20:47:13 stderr > Warning: Could not resolve keysym XF86NavInfo 2025/04/26 20:47:13 stderr > Warning: Could not resolve keysym XF86SidevuSonar 2025/04/26 20:47:13 stderr > Warning: Could not resolve keysym XF86ClearvuSonar 2025/04/26 20:47:13 stderr > Warning: Could not resolve keysym XF86TraditionalSonar 2025/04/26 20:47:13 stderr > Warning: Could not resolve keysym XF86RadarOverlay 2025/04/26 20:47:13 stderr > Warning: Could not resolve keysym XF86DualRangeRadar 2025/04/26 20:47:13 stderr > Warning: Could not resolve keysym XF86SingleRangeRadar 2025/04/26 20:47:13 stderr > Warning: Could not resolve keysym XF86FishingChart 2025/04/26 20:47:13 stderr > Warning: Could not resolve keysym XF86NavChart 2025/04/26 20:47:13 stderr > Warning: Could not resolve keysym XF86Sos 2025/04/26 20:47:13 stderr > Warning: Could not resolve keysym XF86MarkWaypoint 2025/04/26 20:47:13 stderr > Warning: Could not resolve keysym XF86AutopilotEngageToggle 2025/04/26 20:47:13 stderr > Warning: Could not resolve keysym XF86PreviousElement 2025/04/26 20:47:13 stderr > Warning: Could not resolve keysym XF86NextElement 2025/04/26 20:47:13 stderr > Warning: Could not resolve keysym XF86CameraAccessToggle 2025/04/26 20:47:13 stderr > Warning: Could not resolve keysym XF86CameraAccessDisable 2025/04/26 20:47:13 stderr > Warning: Could not resolve keysym XF86CameraAccessEnable 2025/04/26 20:47:13 stderr The XKEYBOARD keymap compiler (xkbcomp) reports: 2025/04/26 20:47:13 stdout Openbox-Message: Unable to make directory "/config/.cache/openbox/sessions": Permission denied 2025/04/26 20:47:13 stderr Openbox-Message: 20:47:13.534: Unable to make directory '/config/.cache/openbox': Permission denied 2025/04/26 20:47:13 stderr 2025/04/26 20:47:13 stderr Underlying X server release 12101012 2025/04/26 20:47:13 stderr See http://kasmweb.com for information on KasmVNC. 2025/04/26 20:47:13 stderr Copyright (C) 1999-2018 KasmVNC Team and many others (see README.me) 2025/04/26 20:47:13 stderr Xvnc KasmVNC 1.3.4 - built Apr 19 2025 19:15:04 2025/04/26 20:47:13 stderr 2025/04/26 20:47:13 stderr _XSERVTransmkdir: Owner of /tmp/.X11-unix should be set to root 2025/04/26 20:47:13 stdout [ls.io-init] done. 2025/04/26 20:47:13 stdout [custom-init] No custom files found, skipping... 2025/04/26 20:47:13 stdout 2025/04/26 20:47:13 stdout ─────────────────────────────────────── 2025/04/26 20:47:13 stdout Build-date: 2025-04-23T06:51:00+00:00 2025/04/26 20:47:13 stdout Linuxserver.io version: v8.3.0-ls333 2025/04/26 20:47:13 stdout ─────────────────────────────────────── 2025/04/26 20:47:13 stdout User GID: 100 2025/04/26 20:47:13 stdout User UID: 1026 2025/04/26 20:47:13 stdout 2025/04/26 20:47:13 stdout ─────────────────────────────────────── 2025/04/26 20:47:13 stdout GID/UID 2025/04/26 20:47:13 stdout ─────────────────────────────────────── 2025/04/26 20:47:13 stdout 2025/04/26 20:47:13 stdout https://www.linuxserver.io/donate/ 2025/04/26 20:47:13 stdout To support LSIO projects visit: 2025/04/26 20:47:13 stdout 2025/04/26 20:47:13 stdout ─────────────────────────────────────── 2025/04/26 20:47:13 stdout Brought to you by linuxserver.io 2025/04/26 20:47:13 stdout 2025/04/26 20:47:13 stdout ╚══════╝╚══════╝╚═╝ ╚═════╝ 2025/04/26 20:47:13 stdout ███████╗███████║██║╚██████╔╝ 2025/04/26 20:47:13 stdout ██║ ╚════██║██║██║ ██║ 2025/04/26 20:47:13 stdout ██║ ███████╗██║██║ ██║ 2025/04/26 20:47:13 stdout ██║ ██╔════╝██║██╔═══██╗ 2025/04/26 20:47:13 stdout ██╗ ███████╗██╗ ██████╗ 2025/04/26 20:47:13 stdout 2025/04/26 20:47:13 stdout ─────────────────────────────────────── 2025/04/26 20:47:12 stdout usermod: no changes 2025/04/26 20:47:12 stdout [migrations] no migrations found 2025/04/26 20:47:12 stdout [migrations] started 2025/04/26 20:46:55 stdout No write access to /config/.config/calibre using a temporary dir instead 2025/04/26 20:46:55 stderr The X11 connection broke (error 1). Did the X11 server die? 2025/04/26 20:46:55 stderr X connection to :1 broken (explicit kill or server shutdown). 2025/04/26 20:44:47 stderr PermissionError: [Errno 13] Permission denied: '/config/Calibre Library' 2025/04/26 20:44:47 stderr File "os.py", line 225, in makedirs 2025/04/26 20:44:47 stderr File "calibre/gui2/wizard/__init__.py", line 698, in makedirs 2025/04/26 20:44:47 stderr File "calibre/gui2/wizard/__init__.py", line 831, in set_initial_library_location 2025/04/26 20:44:47 stderr Traceback (most recent call last): 2025/04/26 20:44:46 stderr Failed to create /config/.cache for shader cache (Permission denied)---disabling. 2025/04/26 20:44:46 stderr Failed to create /config/.cache for shader cache (Permission denied)---disabling. 2025/04/26 20:44:43 stderr Openbox-Message: 20:44:43.276: Unable to make directory '/config/.cache/openbox': Permission denied 2025/04/26 20:44:43 stderr [mi] mieq: warning: overriding existing handler (nil) with 0x5634c25b8a80 for event 3 2025/04/26 20:44:43 stderr [mi] mieq: warning: overriding existing handler (nil) with 0x5634c25b8a80 for event 2 2025/04/26 20:44:43 stderr Errors from xkbcomp are not fatal to the X server 2025/04/26 20:44:43 stderr > Warning: Could not resolve keysym XF86NavInfo 2025/04/26 20:44:43 stderr > Warning: Could not resolve keysym XF86SidevuSonar 2025/04/26 20:44:43 stderr > Warning: Could not resolve keysym XF86ClearvuSonar 2025/04/26 20:44:43 stderr > Warning: Could not resolve keysym XF86TraditionalSonar 2025/04/26 20:44:43 stderr > Warning: Could not resolve keysym XF86RadarOverlay 2025/04/26 20:44:43 stderr > Warning: Could not resolve keysym XF86DualRangeRadar 2025/04/26 20:44:43 stderr > Warning: Could not resolve keysym XF86SingleRangeRadar 2025/04/26 20:44:43 stderr > Warning: Could not resolve keysym XF86FishingChart 2025/04/26 20:44:43 stderr > Warning: Could not resolve keysym XF86NavChart 2025/04/26 20:44:43 stderr > Warning: Could not resolve keysym XF86Sos 2025/04/26 20:44:43 stderr > Warning: Could not resolve keysym XF86MarkWaypoint 2025/04/26 20:44:43 stderr > Warning: Could not resolve keysym XF86AutopilotEngageToggle 2025/04/26 20:44:43 stderr > Warning: Could not resolve keysym XF86PreviousElement 2025/04/26 20:44:43 stderr > Warning: Could not resolve keysym XF86NextElement 2025/04/26 20:44:43 stderr > Warning: Could not resolve keysym XF86CameraAccessToggle 2025/04/26 20:44:43 stderr > Warning: Could not resolve keysym XF86CameraAccessDisable 2025/04/26 20:44:43 stdout Obt-Message: Xinerama extension is not present on the server 2025/04/26 20:44:43 stdout Openbox-Message: Unable to make directory "/config/.cache/openbox/sessions": Permission denied 2025/04/26 20:44:43 stderr > Warning: Could not resolve keysym XF86CameraAccessEnable 2025/04/26 20:44:43 stderr The XKEYBOARD keymap compiler (xkbcomp) reports: 2025/04/26 20:44:42 stderr 2025/04/26 20:44:42 stderr Underlying X server release 12101012 2025/04/26 20:44:42 stderr See http://kasmweb.com for information on KasmVNC. 2025/04/26 20:44:42 stderr Copyright (C) 1999-2018 KasmVNC Team and many others (see README.me) 2025/04/26 20:44:42 stderr Xvnc KasmVNC 1.3.4 - built Apr 19 2025 19:15:04 2025/04/26 20:44:42 stderr 2025/04/26 20:44:42 stderr _XSERVTransmkdir: ERROR: euid != 0,directory /tmp/.X11-unix will not be created. 2025/04/26 20:44:42 stdout Openbox-Message: Failed to open the display from the DISPLAY environment variable. 2025/04/26 20:44:42 stdout Openbox-Message: Unable to make directory "/config/.cache/openbox/sessions": Permission denied 2025/04/26 20:44:42 stderr Openbox-Message: 20:44:42.250: Unable to make directory '/config/.cache/openbox': Permission denied 2025/04/26 20:44:40 stdout [ls.io-init] done. 2025/04/26 20:44:40 stdout [custom-init] No custom files found, skipping... 2025/04/26 20:44:40 stderr ----- 2025/04/26 20:44:40 stderr .+.....+.........+...+.......+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*..+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*................+.....+...+.+.....+............+....+......+...............+..+.+..+...............+..........+..+.+............+........+.+.....+...+.+..+...+......+.+..+..........+...........+.........+...+....+...+..................+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2025/04/26 20:44:39 stderr ..............+....+......+...+..+.........+.+...+...+...+..+...+......+...+.......+...........+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*......+................+.....+....+..............+....+..+....+......+...........+...+....+.....+.+......+........+.+...........+.+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*...+...+...+....+........+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2025/04/26 20:44:39 stdout 2025/04/26 20:44:39 stdout ─────────────────────────────────────── 2025/04/26 20:44:39 stdout Build-date: 2025-04-23T06:51:00+00:00 2025/04/26 20:44:39 stdout Linuxserver.io version: v8.3.0-ls333 2025/04/26 20:44:39 stdout ─────────────────────────────────────── 2025/04/26 20:44:39 stdout User GID: 100 2025/04/26 20:44:39 stdout User UID: 1026 2025/04/26 20:44:39 stdout 2025/04/26 20:44:39 stdout ─────────────────────────────────────── 2025/04/26 20:44:39 stdout GID/UID 2025/04/26 20:44:39 stdout ─────────────────────────────────────── 2025/04/26 20:44:39 stdout 2025/04/26 20:44:39 stdout https://www.linuxserver.io/donate/ 2025/04/26 20:44:39 stdout To support LSIO projects visit: 2025/04/26 20:44:39 stdout 2025/04/26 20:44:39 stdout ─────────────────────────────────────── 2025/04/26 20:44:39 stdout Brought to you by linuxserver.io 2025/04/26 20:44:39 stdout 2025/04/26 20:44:39 stdout ╚══════╝╚══════╝╚═╝ ╚═════╝ 2025/04/26 20:44:39 stdout ███████╗███████║██║╚██████╔╝ 2025/04/26 20:44:39 stdout ██║ ╚════██║██║██║ ██║ 2025/04/26 20:44:39 stdout ██║ ███████╗██║██║ ██║ 2025/04/26 20:44:39 stdout ██║ ██╔════╝██║██╔═══██╗ 2025/04/26 20:44:39 stdout ██╗ ███████╗██╗ ██████╗ 2025/04/26 20:44:39 stdout 2025/04/26 20:44:39 stdout ─────────────────────────────────────── 2025/04/26 20:44:37 stdout [migrations] no migrations found 2025/04/26 20:44:37 stdout [migrations] started |
De kernfout is deze:
code:
1
| PermissionError: [Errno 13] Permission denied: '/config/Calibre Library' |
Ik heb dit kunnen oplossen door mijn calibre docker te stoppen, en via Putty in te loggen op mijn NAS en de eigenaar van de config map van calibre docker te veranderen in mijn credentials, nl PUID=1026 & PGID= 100, nl:
code:
1
| chown -R 1026:100 /volume1/docker/calibre/config |
Na herstart lukte het wel om in te loggen op calibre docker; ik wijzigde vervolgens de bibliotheek folder naar /library (wat overeenkomt met /volume1/Books/Library, en evident heb ik de zelfde chown toegepast)
Vervolgens installeer ik calibre-web met de volgende docker compose:
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
| services: calibre-web: image: lscr.io/linuxserver/calibre-web:latest container_name: calibre-web environment: - PUID=1026 - PGID=100 - TZ=Europe/Brussels volumes: - /volume1/docker/calibre-web/config:/config - /volume1/Books/Library:/books ports: - 8083:8083 restart: unless-stopped |
Maar als ik vervolgens wil inloggen via <interne-ip>:8083 ...
Meldt elke browser mij hetzelfde probleem:
code:
1
2
3
4
5
6
7
8
| This site can’t be reached The connection was reset. Try: Checking the connection Checking the proxy and the firewall Running Windows Network Diagnostics ERR_CONNECTION_RESET |
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
| 2025/04/26 21:02:42 stderr (Background on this error at: https://sqlalche.me/e/20/e3q8) 2025/04/26 21:02:42 stderr ] 2025/04/26 21:02:42 stderr 2025/04/26 21:02:42 stderr ) 2025/04/26 21:02:42 stderr UNIQUE (email) 2025/04/26 21:02:42 stderr UNIQUE (name), 2025/04/26 21:02:42 stderr kobo_only_shelves_sync INTEGER, 2025/04/26 21:02:42 stderr view_settings JSON, 2025/04/26 21:02:42 stderr allowed_column_value VARCHAR, 2025/04/26 21:02:42 stderr denied_column_value VARCHAR, 2025/04/26 21:02:42 stderr allowed_tags VARCHAR, 2025/04/26 21:02:42 stderr denied_tags VARCHAR, 2025/04/26 21:02:42 stderr default_language VARCHAR(3), 2025/04/26 21:02:42 stderr sidebar_view INTEGER, 2025/04/26 21:02:42 stderr locale VARCHAR(2), 2025/04/26 21:02:42 stderr kindle_mail VARCHAR(120), 2025/04/26 21:02:42 stderr password VARCHAR, 2025/04/26 21:02:42 stderr role SMALLINT, 2025/04/26 21:02:42 stderr email VARCHAR(120), 2025/04/26 21:02:42 stderr name VARCHAR(64), 2025/04/26 21:02:42 stderr id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT, 2025/04/26 21:02:42 stderr CREATE TABLE user ( 2025/04/26 21:02:42 stderr [SQL: 2025/04/26 21:02:42 stderr sqlalchemy.exc.OperationalError: (sqlite3.OperationalError) attempt to write a readonly database 2025/04/26 21:02:42 stderr cursor.execute(statement, parameters) 2025/04/26 21:02:42 stderr File "/lsiopy/lib/python3.12/site-packages/sqlalchemy/engine/default.py", line 945, in do_execute 2025/04/26 21:02:42 stderr self.dialect.do_execute( 2025/04/26 21:02:42 stderr File "/lsiopy/lib/python3.12/site-packages/sqlalchemy/engine/base.py", line 1964, in _exec_single_context 2025/04/26 21:02:42 stderr raise sqlalchemy_exception.with_traceback(exc_info[2]) from e 2025/04/26 21:02:42 stderr File "/lsiopy/lib/python3.12/site-packages/sqlalchemy/engine/base.py", line 2352, in _handle_dbapi_exception 2025/04/26 21:02:42 stderr self._handle_dbapi_exception( 2025/04/26 21:02:42 stderr File "/lsiopy/lib/python3.12/site-packages/sqlalchemy/engine/base.py", line 1983, in _exec_single_context 2025/04/26 21:02:42 stderr ^^^^^^^^^^^^^^^^^^^^^^^^^^ 2025/04/26 21:02:42 stderr return self._exec_single_context( 2025/04/26 21:02:42 stderr File "/lsiopy/lib/python3.12/site-packages/sqlalchemy/engine/base.py", line 1843, in _execute_context 2025/04/26 21:02:42 stderr ^^^^^^^^^^^^^^^^^^^^^^ 2025/04/26 21:02:42 stderr ret = self._execute_context( 2025/04/26 21:02:42 stderr File "/lsiopy/lib/python3.12/site-packages/sqlalchemy/engine/base.py", line 1527, in _execute_ddl 2025/04/26 21:02:42 stderr ^^^^^^^^^^^^^^^^^^^^^^^^ 2025/04/26 21:02:42 stderr return connection._execute_ddl( 2025/04/26 21:02:42 stderr File "/lsiopy/lib/python3.12/site-packages/sqlalchemy/sql/ddl.py", line 187, in _execute_on_connection 2025/04/26 21:02:42 stderr ^^^^^ 2025/04/26 21:02:42 stderr return meth( 2025/04/26 21:02:42 stderr File "/lsiopy/lib/python3.12/site-packages/sqlalchemy/engine/base.py", line 1416, in execute 2025/04/26 21:02:42 stderr ^^^^^^^^^^^^^^^^^^ 2025/04/26 21:02:42 stderr return bind.execute(self) 2025/04/26 21:02:42 stderr File "/lsiopy/lib/python3.12/site-packages/sqlalchemy/sql/ddl.py", line 321, in _invoke_with 2025/04/26 21:02:42 stderr ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2025/04/26 21:02:42 stderr )._invoke_with(self.connection) 2025/04/26 21:02:42 stderr File "/lsiopy/lib/python3.12/site-packages/sqlalchemy/sql/ddl.py", line 1019, in visit_table 2025/04/26 21:02:42 stderr ^^^^^^^^^^^^^^^ 2025/04/26 21:02:42 stderr return meth(obj, **kw) 2025/04/26 21:02:42 stderr File "/lsiopy/lib/python3.12/site-packages/sqlalchemy/sql/visitors.py", line 664, in traverse_single 2025/04/26 21:02:42 stderr self.traverse_single( 2025/04/26 21:02:42 stderr File "/lsiopy/lib/python3.12/site-packages/sqlalchemy/sql/ddl.py", line 981, in visit_metadata 2025/04/26 21:02:42 stderr ^^^^^^^^^^^^^^^ 2025/04/26 21:02:42 stderr return meth(obj, **kw) 2025/04/26 21:02:42 stderr File "/lsiopy/lib/python3.12/site-packages/sqlalchemy/sql/visitors.py", line 664, in traverse_single 2025/04/26 21:02:42 stderr visitorcallable(self.dialect, self, **kwargs).traverse_single(element) 2025/04/26 21:02:42 stderr File "/lsiopy/lib/python3.12/site-packages/sqlalchemy/engine/base.py", line 2456, in _run_ddl_visitor 2025/04/26 21:02:42 stderr conn._run_ddl_visitor(visitorcallable, element, **kwargs) 2025/04/26 21:02:42 stderr File "/lsiopy/lib/python3.12/site-packages/sqlalchemy/engine/base.py", line 3249, in _run_ddl_visitor 2025/04/26 21:02:42 stderr bind._run_ddl_visitor( 2025/04/26 21:02:42 stderr File "/lsiopy/lib/python3.12/site-packages/sqlalchemy/sql/schema.py", line 5925, in create_all 2025/04/26 21:02:42 stderr Base.metadata.create_all(engine) 2025/04/26 21:02:42 stderr File "/app/calibre-web/cps/ub.py", line 700, in init_db 2025/04/26 21:02:42 stderr ub.init_db(cli_param.settings_path) 2025/04/26 21:02:42 stderr File "/app/calibre-web/cps/__init__.py", line 123, in create_app 2025/04/26 21:02:42 stderr ^^^^^^^^^^^^ 2025/04/26 21:02:42 stderr app = create_app() 2025/04/26 21:02:42 stderr File "/app/calibre-web/cps/main.py", line 31, in main 2025/04/26 21:02:42 stderr main() 2025/04/26 21:02:42 stderr File "/app/calibre-web/cps.py", line 47, in <module> 2025/04/26 21:02:42 stderr Traceback (most recent call last): 2025/04/26 21:02:42 stderr 2025/04/26 21:02:42 stderr The above exception was the direct cause of the following exception: 2025/04/26 21:02:42 stderr 2025/04/26 21:02:42 stderr sqlite3.OperationalError: attempt to write a readonly database 2025/04/26 21:02:42 stderr cursor.execute(statement, parameters) 2025/04/26 21:02:42 stderr File "/lsiopy/lib/python3.12/site-packages/sqlalchemy/engine/default.py", line 945, in do_execute 2025/04/26 21:02:42 stderr self.dialect.do_execute( 2025/04/26 21:02:42 stderr File "/lsiopy/lib/python3.12/site-packages/sqlalchemy/engine/base.py", line 1964, in _exec_single_context 2025/04/26 21:02:42 stderr Traceback (most recent call last): 2025/04/26 21:02:40 stdout [custom-init] No custom files found, skipping... 2025/04/26 21:02:40 stdout Could not set binary paths for '/config/app.db' (see errors above). 2025/04/26 21:02:40 stderr Parse error near line 1: no such table: settings 2025/04/26 21:02:36 stdout First time run, creating app.db... 2025/04/26 21:02:36 stdout ─────────────────────────────────────── 2025/04/26 21:02:36 stdout User GID: 100 2025/04/26 21:02:36 stdout User UID: 1026 2025/04/26 21:02:36 stdout 2025/04/26 21:02:36 stdout ─────────────────────────────────────── 2025/04/26 21:02:36 stdout GID/UID 2025/04/26 21:02:36 stdout ─────────────────────────────────────── 2025/04/26 21:02:36 stdout 2025/04/26 21:02:36 stdout https://www.linuxserver.io/donate/ 2025/04/26 21:02:36 stdout To support LSIO projects visit: 2025/04/26 21:02:36 stdout 2025/04/26 21:02:36 stdout ─────────────────────────────────────── 2025/04/26 21:02:36 stdout Brought to you by linuxserver.io 2025/04/26 21:02:36 stdout 2025/04/26 21:02:36 stdout ╚══════╝╚══════╝╚═╝ ╚═════╝ 2025/04/26 21:02:36 stdout ███████╗███████║██║╚██████╔╝ 2025/04/26 21:02:36 stdout ██║ ╚════██║██║██║ ██║ 2025/04/26 21:02:36 stdout ██║ ███████╗██║██║ ██║ 2025/04/26 21:02:36 stdout ██║ ██╔════╝██║██╔═══██╗ 2025/04/26 21:02:36 stdout ██╗ ███████╗██╗ ██████╗ 2025/04/26 21:02:36 stdout 2025/04/26 21:02:36 stdout ─────────────────────────────────────── 2025/04/26 21:02:33 stdout [migrations] no migrations found 2025/04/26 21:02:33 stdout [migrations] started |
Dus 't komt erop neer dat hij de database probeert te benaderen, terwijl deze readonly is; het betreft overigens het bestand metadata.db
...terwijl ik dezelfde truukjes toepas als hierboven:
code:
1
| chown -R 1026:100 /volume1/docker/calibre-web/config |
code:
1
| chown -R 1026:100 /volume1/Books/Library |
Als ik vervolgens even ownership check voor docker calibre-web...
code:
1
| sudo docker exec -it calibre-web ls -l /books |
...dan zie ik deze readout:
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
| sudo docker exec -it calibre-web ls -l /books total 1076 drwxrwxrwx 1 abc users 154 Apr 24 19:36 'Adler Olsen, Jussi' drwxrwxrwx 1 abc users 180 Apr 24 22:26 'Alexandre Dumas' drwxrwxrwx 1 abc users 38 Apr 24 19:49 'Alex North' drwxrwxrwx 1 abc users 44 Apr 24 22:26 'Allan Folsom' drwxrwxrwx 1 abc users 42 Apr 24 22:21 'Arthur Conan Doyle' drwxrwxrwx 1 abc users 80 Apr 24 19:47 'BA Paris' drwxrwxrwx 1 abc users 42 Apr 24 19:35 'Boyne, John' drwxrwxrwx 1 abc users 70 Apr 24 19:38 'Cecelia Ahern' drwxrwxrwx 1 abc users 82 Apr 24 22:21 'Charles Dickens' drwxrwxrwx 1 abc users 30 Apr 24 22:20 'Charlotte Bronte' drwxrwxrwx 1 abc users 58 Apr 24 19:48 'Clare Mackintosh' drwxrwxrwx 1 abc users 56 Apr 24 22:26 'Cornelis Johannes Kieviet' drwxrwxrwx 1 abc users 44 Apr 24 19:45 'Cornwell, Patricia' drwxrwxrwx 1 abc users 46 Apr 24 22:25 'Cyriel Buysse' drwxrwxrwx 1 abc users 78 Apr 24 19:49 'Delia Owens' drwxrwxrwx 1 abc users 28 Apr 24 22:25 'Emile Zola' drwxrwxrwx 1 abc users 134 Apr 24 19:43 'Emily Barr' drwxrwxrwx 1 abc users 40 Apr 24 22:22 'Frederick Marryat' drwxrwxrwx 1 abc users 48 Apr 24 22:21 'G. A. Henty' drwxrwxrwx 1 abc users 62 Apr 24 19:46 'Gillian Flynn' drwxrwxrwx 1 abc users 78 Apr 24 19:44 'Goddard, Robert' drwxrwxrwx 1 abc users 38 Apr 24 22:24 'Gustave Flaubert' drwxrwxrwx 1 abc users 642 Apr 24 19:43 'Harlan Coben' drwxrwxrwx 1 abc users 40 Apr 24 22:25 'Harm Boom' drwxrwxrwx 1 abc users 84 Apr 24 22:26 'Hendrik Conscience' drwxrwxrwx 1 abc users 88 Apr 24 22:23 'Honore de Balzac' drwxrwxrwx 1 abc users 298 Apr 24 19:44 'James Patterson' drwxrwxrwx 1 abc users 48 Apr 24 22:19 'Jane Austen' drwxrwxrwx 1 abc users 24 Apr 24 22:24 'Jean de La Fontaine' drwxrwxrwx 1 abc users 16 Apr 24 19:47 'Jeroen Olyslaegers' drwxrwxrwx 1 abc users 226 Apr 24 19:42 'John Boyne' drwxrwxrwx 1 abc users 30 Apr 24 19:43 'John Grisham' drwxrwxrwx 1 abc users 42 Apr 23 18:47 'John Schember' drwxrwxrwx 1 abc users 76 Apr 24 19:44 'Jonathan Safran Foer' drwxrwxrwx 1 abc users 44 Apr 24 19:48 'J.P. Delaney' drwxrwxrwx 1 abc users 90 Apr 24 22:25 'Jules Verne' drwxrwxrwx 1 abc users 36 Apr 24 19:49 'Julia Crouch' drwxrwxrwx 1 abc users 100 Apr 24 19:41 'Jussi Adler-Olsen' drwxrwxrwx 1 abc users 32 Apr 24 19:45 'Karin Slaughter' drwxrwxrwx 1 abc users 30 Apr 24 19:45 'Lee Child' drwxrwxrwx 1 abc users 76 Apr 24 22:20 'Lewis Carroll' drwxrwxrwx 1 abc users 24 Apr 24 19:28 'L.S. Hilton' drwxrwxrwx 1 abc users 96 Apr 24 19:49 'Lucinda Riley' drwxrwxrwx 1 abc users 68 Apr 24 22:22 'Mark Twain' -rwxrwxrwx 1 abc users 1085440 Apr 26 16:31 metadata.db -rwxrwxrwx 1 abc users 14069 Apr 26 18:07 metadata_db_prefs_backup.json drwxrwxrwx 1 abc users 188 Apr 24 19:46 'Michael Berg' drwxrwxrwx 1 abc users 72 Apr 24 19:48 'Michael Robotham' drwxrwxrwx 1 abc users 28 Apr 24 19:48 Oorsprong drwxrwxrwx 1 abc users 62 Apr 24 19:45 'Patricia Cornwell' drwxrwxrwx 1 abc users 196 Apr 24 19:44 'Patterson, James' drwxrwxrwx 1 abc users 34 Apr 24 19:47 'Paula Hawkins' drwxrwxrwx 1 abc users 74 Apr 24 22:22 'PocketBook International SA' drwxrwxrwx 1 abc users 56 Apr 24 19:45 'Rachel Simon' drwxrwxrwx 1 abc users 206 Apr 24 19:42 'Rene Appel' drwxrwxrwx 1 abc users 46 Apr 24 19:48 'Riley Sager' drwxrwxrwx 1 abc users 166 Apr 24 19:46 'Robert Goddard' drwxrwxrwx 1 abc users 110 Apr 24 19:48 'Ruth Ware' drwxrwxrwx 1 abc users 44 Apr 24 19:47 'Sarah Pinborough' drwxrwxrwx 1 abc users 44 Apr 24 19:46 'Sebastian Fitzek' drwxrwxrwx 1 abc users 62 Apr 24 19:41 'Sharon Bolton' drwxrwxrwx 1 abc users 28 Apr 24 19:40 'S.J. Bolton' drwxrwxrwx 1 abc users 50 Apr 24 22:24 Stendhal drwxrwxrwx 1 abc users 48 Apr 24 19:48 Vriendschapsverzoek drwxrwxrwx 1 abc users 74 Apr 24 22:22 'W.H.G. Kingston' |
Als ik dat vervolgens herhaal voor calibre docker (nadat ik 'm terug heb geactiveerd), zie ik geen echte verschillen:
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
| sudo docker exec -it calibre ls -l /library total 1076 drwxrwxrwx 1 abc users 154 Apr 24 19:36 'Adler Olsen, Jussi' drwxrwxrwx 1 abc users 180 Apr 24 22:26 'Alexandre Dumas' drwxrwxrwx 1 abc users 38 Apr 24 19:49 'Alex North' drwxrwxrwx 1 abc users 44 Apr 24 22:26 'Allan Folsom' drwxrwxrwx 1 abc users 42 Apr 24 22:21 'Arthur Conan Doyle' drwxrwxrwx 1 abc users 80 Apr 24 19:47 'BA Paris' drwxrwxrwx 1 abc users 42 Apr 24 19:35 'Boyne, John' drwxrwxrwx 1 abc users 70 Apr 24 19:38 'Cecelia Ahern' drwxrwxrwx 1 abc users 82 Apr 24 22:21 'Charles Dickens' drwxrwxrwx 1 abc users 30 Apr 24 22:20 'Charlotte Bronte' drwxrwxrwx 1 abc users 58 Apr 24 19:48 'Clare Mackintosh' drwxrwxrwx 1 abc users 56 Apr 24 22:26 'Cornelis Johannes Kieviet' drwxrwxrwx 1 abc users 44 Apr 24 19:45 'Cornwell, Patricia' drwxrwxrwx 1 abc users 46 Apr 24 22:25 'Cyriel Buysse' drwxrwxrwx 1 abc users 78 Apr 24 19:49 'Delia Owens' drwxrwxrwx 1 abc users 28 Apr 24 22:25 'Emile Zola' drwxrwxrwx 1 abc users 134 Apr 24 19:43 'Emily Barr' drwxrwxrwx 1 abc users 40 Apr 24 22:22 'Frederick Marryat' drwxrwxrwx 1 abc users 48 Apr 24 22:21 'G. A. Henty' drwxrwxrwx 1 abc users 62 Apr 24 19:46 'Gillian Flynn' drwxrwxrwx 1 abc users 78 Apr 24 19:44 'Goddard, Robert' drwxrwxrwx 1 abc users 38 Apr 24 22:24 'Gustave Flaubert' drwxrwxrwx 1 abc users 642 Apr 24 19:43 'Harlan Coben' drwxrwxrwx 1 abc users 40 Apr 24 22:25 'Harm Boom' drwxrwxrwx 1 abc users 84 Apr 24 22:26 'Hendrik Conscience' drwxrwxrwx 1 abc users 88 Apr 24 22:23 'Honore de Balzac' drwxrwxrwx 1 abc users 298 Apr 24 19:44 'James Patterson' drwxrwxrwx 1 abc users 48 Apr 24 22:19 'Jane Austen' drwxrwxrwx 1 abc users 24 Apr 24 22:24 'Jean de La Fontaine' drwxrwxrwx 1 abc users 16 Apr 24 19:47 'Jeroen Olyslaegers' drwxrwxrwx 1 abc users 226 Apr 24 19:42 'John Boyne' drwxrwxrwx 1 abc users 30 Apr 24 19:43 'John Grisham' drwxrwxrwx 1 abc users 42 Apr 23 18:47 'John Schember' drwxrwxrwx 1 abc users 76 Apr 24 19:44 'Jonathan Safran Foer' drwxrwxrwx 1 abc users 44 Apr 24 19:48 'J.P. Delaney' drwxrwxrwx 1 abc users 90 Apr 24 22:25 'Jules Verne' drwxrwxrwx 1 abc users 36 Apr 24 19:49 'Julia Crouch' drwxrwxrwx 1 abc users 100 Apr 24 19:41 'Jussi Adler-Olsen' drwxrwxrwx 1 abc users 32 Apr 24 19:45 'Karin Slaughter' drwxrwxrwx 1 abc users 30 Apr 24 19:45 'Lee Child' drwxrwxrwx 1 abc users 76 Apr 24 22:20 'Lewis Carroll' drwxrwxrwx 1 abc users 24 Apr 24 19:28 'L.S. Hilton' drwxrwxrwx 1 abc users 96 Apr 24 19:49 'Lucinda Riley' drwxrwxrwx 1 abc users 68 Apr 24 22:22 'Mark Twain' -rwxrwxrwx 1 abc users 1085440 Apr 26 16:31 metadata.db -rwxrwxrwx 1 abc users 14069 Apr 26 18:07 metadata_db_prefs_backup.json drwxrwxrwx 1 abc users 188 Apr 24 19:46 'Michael Berg' drwxrwxrwx 1 abc users 72 Apr 24 19:48 'Michael Robotham' drwxrwxrwx 1 abc users 28 Apr 24 19:48 Oorsprong drwxrwxrwx 1 abc users 62 Apr 24 19:45 'Patricia Cornwell' drwxrwxrwx 1 abc users 196 Apr 24 19:44 'Patterson, James' drwxrwxrwx 1 abc users 34 Apr 24 19:47 'Paula Hawkins' drwxrwxrwx 1 abc users 74 Apr 24 22:22 'PocketBook International SA' drwxrwxrwx 1 abc users 56 Apr 24 19:45 'Rachel Simon' drwxrwxrwx 1 abc users 206 Apr 24 19:42 'Rene Appel' drwxrwxrwx 1 abc users 46 Apr 24 19:48 'Riley Sager' drwxrwxrwx 1 abc users 166 Apr 24 19:46 'Robert Goddard' drwxrwxrwx 1 abc users 110 Apr 24 19:48 'Ruth Ware' drwxrwxrwx 1 abc users 44 Apr 24 19:47 'Sarah Pinborough' drwxrwxrwx 1 abc users 44 Apr 24 19:46 'Sebastian Fitzek' drwxrwxrwx 1 abc users 62 Apr 24 19:41 'Sharon Bolton' drwxrwxrwx 1 abc users 28 Apr 24 19:40 'S.J. Bolton' drwxrwxrwx 1 abc users 50 Apr 24 22:24 Stendhal drwxrwxrwx 1 abc users 48 Apr 24 19:48 Vriendschapsverzoek drwxrwxrwx 1 abc users 74 Apr 24 22:22 'W.H.G. Kingston' |
Geen idéé waar het fout loopt, maar ik ben ten einde raad
Relevante software en hardware die ik gebruik
Synology 420+
2x4TB HDD in SHR, /volume1
Upgrade naar 6 GB RAM via officiële SODIMM RAM van Synology
Wat ik al gevonden of geprobeerd heb
Zie supra.
Aan vriendschappelijk verleend advies op dit forum kunnen geen rechten worden ontleend 😉