mirror of
https://github.com/acme-dns/acme-dns.git
synced 2026-04-27 12:55:48 +03:00
[GH-ISSUE #98] Problem start acme-dns in installation #40
Labels
No labels
Documentation
Documentation
bug
enhancement
feature request
feature request
help wanted
pull-request
question
security
security
testing
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/acme-dns#40
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 @LinuxCuba on GitHub (Aug 9, 2018).
Original GitHub issue: https://github.com/acme-dns/acme-dns/issues/98
After install and config. exec acme-dns
this error not start the service.
INFO[0000] Using config file file=/etc/acme-dns/config.cfg
ERRO[0000] Could not open database [sql: unknown driver "" (forgotten import?)]
@joohoi commented on GitHub (Aug 9, 2018):
I’m sorry that tou are experiencing issues with acme-dns. We just had a
similar issue, I wonder if this is the case with your configuration as
well:
https://github.com/joohoi/acme-dns/issues/93#issuecomment-402906927
On Thu, 9 Aug 2018 at 19.27, LinuxCuba notifications@github.com wrote:
@LinuxCuba commented on GitHub (Aug 9, 2018):
Yes, but driver is sqlite3 in debian system.
@joohoi commented on GitHub (Aug 9, 2018):
Yeah, in the referenced issue, the actual problem was missing quotes around
the configuration value. I believe this is rather config parser than db
driver issue.
On Thu, 9 Aug 2018 at 19.35, LinuxCuba notifications@github.com wrote:
@LinuxCuba commented on GitHub (Aug 9, 2018):
How to solve and fix this problem please, i need start the server.
@joohoi commented on GitHub (Aug 9, 2018):
Please see
https://github.com/joohoi/acme-dns/issues/93#issuecomment-402092630
And
https://github.com/joohoi/acme-dns/issues/93#issuecomment-402487006
On Thu, 9 Aug 2018 at 19.39, LinuxCuba notifications@github.com wrote:
@joohoi commented on GitHub (Aug 10, 2018):
Are you sure that the file
/etc/acme-dns/config.cfgcan be read by the user that acme-dns is started with? There is an outstanding PR that makes the error messages more elaborate, but the error you are seeing can also indicate the acme-dns wasn't able to read the configuration file.@joohoi commented on GitHub (Aug 10, 2018):
If you are building acme-dns from sources, you could try using brancherr-handling-supplwhich has changes that give some more information about issues in reading the configuration file.@joohoi commented on GitHub (Aug 12, 2018):
The current
masteras well as the new release v0.5 have vastly improved error messages. You could retry with either of those to figure out what's the underlying issue.@LinuxCuba commented on GitHub (Aug 13, 2018):
Yes i sure the file config is read by user acme-dns;
root@certbot:/# ls -l /etc/acme-dns total 6 -rw-r--r-- 1 acme-dns acme-dns 2167 Aug 9 17:37 config.cfgroot@certbot:/# ls -ld /etc/acme-dns drwxr-xr-x 2 acme-dns acme-dns 3 Aug 13 11:47 /etc/acme-dns@joohoi commented on GitHub (Aug 13, 2018):
If you are not able to figure out the underlying issue by trying to run the latest version (the Docker Hub container image is also updated), could you please pastebin the contents of your
config.cfg. GitHub formatting often breaks because of the config syntax.@LinuxCuba commented on GitHub (Aug 13, 2018):
How to update, replaced all fille??
@joohoi commented on GitHub (Aug 13, 2018):
I would delete the files you have installed now, and start the installation from the beginning.
@LinuxCuba commented on GitHub (Aug 13, 2018):
ohh bad.
@LinuxCuba commented on GitHub (Aug 13, 2018):
Update acme-dns this the new error in release v0.5
root@certbot:/# acme-dns INFO[0000] Using config file file=/etc/acme-dns/config.cfg ERRO[0000] Encountered an error while trying to read configuration file: Near line 45 (last key parsed 'api'): expected a top-level item to end with a newline, comment, or EOF, but got 't' instead@joohoi commented on GitHub (Aug 13, 2018):
Yeah, there seems to be a syntax error in your configuration file. Please double verify.
@LinuxCuba commented on GitHub (Aug 13, 2018):
corrected in api the value of the tls change let`s encrypt by cert, but now I get a new unknown error.
INFO[0000] Using config file file=/etc/acme-dns/config.cfg ERRO[0000] Encountered an error while trying to read configuration file: toml: cannot load TOML value of type string into a Go boolean@joohoi commented on GitHub (Aug 13, 2018):
Check the default
config.cfgagainst your edited configuration, and look for quote marks ("). Boolean values should not be quoted.@LinuxCuba commented on GitHub (Aug 13, 2018):
Yes already worked, it had a double quote in a Boolean value.
but this error when trying read the datebase.
ERRO[0000] Could not open database [file is not a database]How to create the database and what is your structure?
@LinuxCuba commented on GitHub (Aug 13, 2018):
Remove the file /var/lib/acme-dns/acme-dns.db, and start again, and work perfect. Thank.
@LinuxCuba commented on GitHub (Aug 13, 2018):
Another problem, it works in the terminal with the acme-dns command executing directly, but it does not start the service with systemd.
@joohoi commented on GitHub (Aug 14, 2018):
I don't have a direct answer to that one, as I don't know what the problem might be. Some things you could check: