mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2026-04-25 08:45:58 +03:00
[GH-ISSUE #79] database is locked #4479
Labels
No labels
Q/A
bug
casdoor
dependencies
docker
documentation
duplicate
enhancement
help wanted
invalid
lego
platform:openwrt
platform:windows
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/nginx-ui#4479
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 @MickMo on GitHub (Feb 11, 2023).
Original GitHub issue: https://github.com/0xJacky/nginx-ui/issues/79
The webui show ‘Server error’, and it won't start
Here is the logs
2023/02/11 19:55:17 /home/runner/work/nginx-ui/nginx-ui/server/model/model.go:43 database is locked [5005.834ms] [rows:0] CREATE TABLEconfig_backups(idinteger,created_atdatetime,updated_atdatetime,deleted_atdatetime,nametext,file_pathtext,contenttext,PRIMARY KEY (id`))2023/02/11 19:55:17 database is locked
2023/02/11 19:55:18 [notice] 9#9: using the "epoll" event method
2023/02/11 19:55:18 [notice] 9#9: nginx/1.23.1
2023/02/11 19:55:18 [notice] 9#9: built by gcc 10.2.1 20210110 (Debian 10.2.1-6)
2023/02/11 19:55:18 [notice] 9#9: OS: Linux 5.10.0-13-amd64
2023/02/11 19:55:18 [notice] 9#9: getrlimit(RLIMIT_NOFILE): 1048576:1048576
2023/02/11 19:55:18 [notice] 17#17: start worker processes
2023/02/11 19:55:18 [notice] 17#17: start worker process 18
2023/02/11 19:55:18 [notice] 17#17: start worker process 19
2023/02/11 19:55:18 [notice] 17#17: start worker process 20
2023/02/11 19:55:18 [notice] 17#17: start worker process 21
2023/02/11 19:55:18 Nginx config dir path: /etc/nginx
2023/02/11 19:55:18 /home/runner/go/pkg/mod/gorm.io/driver/sqlite@v1.1.4/migrator.go:32
[1.026ms] [rows:-] SELECT count(*) FROM sqlite_master WHERE type='table' AND name="config_backups"
2023/02/11 19:55:23 /home/runner/work/nginx-ui/nginx-ui/server/model/model.go:43 database is locked
[5005.234ms] [rows:0] CREATE TABLE
config_backups(idinteger,created_atdatetime,updated_atdatetime,deleted_atdatetime,nametext,file_pathtext,contenttext,PRIMARY KEY (id))2023/02/11 19:55:23 database is locked
2023/02/11 19:55:24 [notice] 8#8: using the "epoll" event method
2023/02/11 19:55:24 [notice] 8#8: nginx/1.23.1
2023/02/11 19:55:24 [notice] 8#8: built by gcc 10.2.1 20210110 (Debian 10.2.1-6)
2023/02/11 19:55:24 [notice] 8#8: OS: Linux 5.10.0-13-amd64
2023/02/11 19:55:24 [notice] 8#8: getrlimit(RLIMIT_NOFILE): 1048576:1048576
2023/02/11 19:55:24 [notice] 16#16: start worker processes
2023/02/11 19:55:24 [notice] 16#16: start worker process 17
2023/02/11 19:55:24 [notice] 16#16: start worker process 18
2023/02/11 19:55:24 [notice] 16#16: start worker process 19
2023/02/11 19:55:24 [notice] 16#16: start worker process 20
2023/02/11 19:55:24 Nginx config dir path: /etc/nginx
2023/02/11 19:55:24 /home/runner/go/pkg/mod/gorm.io/driver/sqlite@v1.1.4/migrator.go:32`
@0xJacky commented on GitHub (Feb 11, 2023):
Have you try to delete the database.db and restart the nginx-ui?
@MickMo commented on GitHub (Feb 11, 2023):
woops,It did not support cifs mount, it work just fine when using host directory