Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Systemd Failure On Detailed Install #1402

Open
jimthedj65 opened this issue Nov 4, 2024 · 0 comments
Open

Systemd Failure On Detailed Install #1402

jimthedj65 opened this issue Nov 4, 2024 · 0 comments

Comments

@jimthedj65
Copy link

jimthedj65 commented Nov 4, 2024

Followed the steps:
https://simplex.chat/docs/server.html
Started a new install of xmq and came across an issue at step 5. Optional — If you're using distribution with systemd, create /etc/systemd/system/smp-server.service file with the following content:

When running the systemd service it shows an error

root@smp-nl-001:/usr/local/bin# simplex-servers-certs
cp: cannot stat '/var/lib/caddy/.local/share/caddy/certificates/acme-v02.api.letsencrypt.org-directory/smp.MYDOMAIN.link/smp.MYDOMAIN.link.crt': No such file or directory
root@smp-nl-001:/usr/local/bin# systemctl status smp-server
× smp-server.service - SMP server
     Loaded: loaded (/etc/systemd/system/smp-server.service; enabled; vendor preset: enabled)
     Active: failed (Result: exit-code) since Mon 2024-11-04 10:15:49 UTC; 2h 0min ago
   Main PID: 21179 (code=exited, status=1/FAILURE)
        CPU: 21ms

Nov 04 10:15:49 smp-nl-001 smp-server[21179]: Error: no HTTPS credentials: /etc/opt/simplex/web.crt, /etc/opt/simplex/web.key
Nov 04 10:15:49 smp-nl-001 smp-server[21179]: Use Let's Encrypt to generate: certbot certonly --standalone -d yourdomainname --key-type rsa --rsa-key-size 4096
Nov 04 10:15:49 smp-nl-001 smp-server[21179]: [INFO 2024-11-04 10:15:49 +0000 src/Simplex/Messaging/Server/Env/STM.hs:253] restoring queues from file /var/opt/simplex/smp-server-store.log
Nov 04 10:15:49 smp-nl-001 smp-server[21179]: [INFO 2024-11-04 10:15:49 +0000 src/Simplex/Messaging/Server/StoreLog.hs:220] creating store log...
Nov 04 10:15:49 smp-nl-001 smp-server[21179]: [DEBUG 2024-11-04 10:15:49 +0000 src/Simplex/Messaging/Server/Main.hs:286] Releasing web server resources...
Nov 04 10:15:49 smp-nl-001 smp-server[21179]:
Nov 04 10:15:49 smp-nl-001 systemd[1]: smp-server.service: Main process exited, code=exited, status=1/FAILURE
Nov 04 10:15:49 smp-nl-001 simplex-servers-stopscript[21199]: Refusing to backup files with failed service state
Nov 04 10:15:49 smp-nl-001 systemd[1]: smp-server.service: Control process exited, code=exited, status=1/FAILURE
Nov 04 10:15:49 smp-nl-001 systemd[1]: smp-server.service: Failed with result 'exit-code'.

dmesg: Output: shows nothing

I tried moving forward to the caddy section where I encountered a second issue
step 6 of the Caddy install
Make the script executable and execute it:
Error:
:/usr/local/bin# chmod +x /usr/local/bin/simplex-servers-certs && /usr/local/bin/simplex-servers-certs cp: cannot stat '/var/lib/caddy/.local/share/caddy/certificates/acme-v02.api.letsencrypt.org-directory/smp.MYDOMAIN.link/smp.MYDOMAIN.link.crt': No such file or directory

If anyone could give me some direction on where I am going wrong with the detailed install steps, I would be grateful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant