RocketChat / RocketChat/Rocket.Chat

Auto SSL - Caddy fails to start

Open
#10,400 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
46.1k
Forks
13.9k
Avg merge
3d 3h
Merged PRs (30d)
130

Description

Description:

Trying to set up SSL trough caddy and it the service just stops after a second of running. It works fine with tls self_signed

Server Setup Information:
  • Version of Rocket.Chat Server: 0.63.1
  • Operating System: Ubuntu
  • Deployment Method(snap/docker/tar/etc): Snap
  • Number of Running Instances: 1
Steps to Reproduce:
  1. Edit caddy file according to documentation
  2. Restart the service
  3. Caddy stops
Expected behavior:

Caddy to keep running

Relevant logs:

Apr 10 07:19:33 ns544081 systemd[1]: Started Service for snap application rocketchat-server.rocketchat-caddy.
Apr 10 07:19:33 ns544081 rocketchat-server.rocketchat-caddy[17692]: 2018/04/10 07:19:33 /var/snap/rocketchat-server/1248/Caddyfile:2 - Error during parsing: Unknown directive 'http://www.inv****

Apr 10 07:19:33 ns544081 systemd[1]: snap.rocketchat-server.rocketchat-caddy.service: Main process exited, code=exited, status=1/FAILURE
Apr 10 07:19:33 ns544081 systemd[1]: snap.rocketchat-server.rocketchat-caddy.service: Unit entered failed state.

server1

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the Snap Caddy configuration at /var/snap/rocketchat-server/1248/Caddyfile and compare it with the documented setup. Reproduce the restart and inspect the reported parsing error; done means the Caddyfile parses and the snap service remains running.

Written by the indexing model from the issue text.

Assessment

Tech stack
ubuntu
Domain
devops, infrastructure
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.