mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2026-04-26 01:45:54 +03:00
[GH-ISSUE #1118] SQLITE_CANTOPEN: unable to open database file / RPI 4 #921
Labels
No labels
awaiting feedback
bug
cannot reproduce
dns provider request
duplicate
enhancement
enhancement
enhancement
good first issue
help wanted
invalid
need more info
no certbot plugin available
product-support
pull-request
question
stale
troll
upstream issue
v2
v2
v2
v3
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/nginx-proxy-manager-NginxProxyManager#921
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Karatekid2407 on GitHub (May 23, 2021).
Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/1118
Checklist
jc21/nginx-proxy-manager:latestdocker image?Describe the bug
With option DB_SQLITE_FILE enabled the system gets a failure and the Login got Bad Gateway.
[5/23/2021] [7:48:28 PM] [Global ] › ✖ error SQLITE_CANTOPEN: unable to open database file
Nginx Proxy Manager Version
2.9.3
To Reproduce
Docker-Compose
Expected behavior
System should work.
Operating System
Raspberry PI 4 8GB
Additional context
I was reading for hours now but don't find a solution which is working for me.
Coming from jlesage/nginx-proxy-manager but is not working on RPI.
I don't want a additional DB externally.
@dberrocal-git commented on GitHub (May 23, 2021):
I have a similar problem, I updated a few days ago to the latest version of nginx and alpine-mariadb, result :
✖ error connect ECONNREFUSED IP:port ( thy IP:port is the alpine-mariadb)
@chaptergy commented on GitHub (May 25, 2021):
@dabm-git Your problem is entirely different from the original issue, since you are using a mariaDB and this issue is about an SQLite database.
@Karatekid2407 Can you check if the file
/data/npm.sqliteexists? And what the permissions of this file are? You can connect inside the container and execute the commandls -lainside the/datadirectory, and paste the line containingnpm.sqlitehere.@Karatekid2407 commented on GitHub (May 25, 2021):
When I create the container there will be no sqlite file created.
I tried it to add it from my previous container on Unraid with "jlesage/nginx-proxy-manager" BUT this does also not work.
chmod and chown was added with 777 and root:root
Will be add a screenshot afterwards.
@chaptergy commented on GitHub (May 25, 2021):
Could you check if
/app/config/production.jsonfile is created successfully? Is there anything else in the log which could have to do with this issue?@Karatekid2407 commented on GitHub (May 25, 2021):
Yes its generated. The log which I get in Docker.
Log from Docker
@chaptergy commented on GitHub (May 25, 2021):
Maybe it has to do something with https://github.com/jc21/nginx-proxy-manager/issues/700. You can try to create your own
production.jsonwith the content as in the aforementioned issue including theuseNullAsDefaultline. Have a look at the documentation for information on how to mount it into the container@Karatekid2407 commented on GitHub (May 25, 2021):
You are right. This fixed the Issue! Can you insert the fix in the repo?
@chaptergy commented on GitHub (May 25, 2021):
Sure, but I will close this in favor of https://github.com/jc21/nginx-proxy-manager/issues/700.
@Karatekid2407 commented on GitHub (May 13, 2023):
Problem started again and fix from above now did not work anymore.
Tried multiple versions and did not find any solution.
Config is working and websites are visible but admin panels says bad gateway
@Karatekid2407 commented on GitHub (May 13, 2023):
Fixed by delete