Zammad Webservice does not start automatically

Infos:

  • Used Zammad version: 6.3.1
  • Used Zammad installation type: Source
  • Operating system: Raspberry Pi OS 12
  • Browser + version: any

Expected behavior:

  • I want the web service to start automatically when the system starts.

Actual behavior:

Hello Zammad community,

I really hope that someone can help me. My installation of Zmmad was done via the source installation: Source Installation — Zammad System Documentation documentation

After restarting my Raspberry, Zammad is not accessible, although the services are running.

##########################

● zammad.service - Zammad

Loaded: loaded (/etc/systemd/system/zammad.service; enabled; preset: enabled)

Active: active (running) since Fri 2024-10-18 21:42:55 CEST; 21min ago Main PID: 878 (sleep) Tasks: 1 (limit: 9139) CPU: 3ms CGroup: /system.slice/zammad.service └─878 /bin/sleep infinity

● zammad-web.service - Zammad Web Server Loaded: loaded (/etc/systemd/system/zammad-web.service; enabled; preset: enabled) Active: (running) since Fri 2024-10-18 22:05:27 CEST; 1s ago
Main PID: 213729 (ruby)
Tasks: 1 (limit: 9139)
CPU: 1.891s
CGroup: /system.slice/zammad-web.service
└─213729 “script/rails server -b 127.0.0.1 -p 3000”

##########################

I have to manually log in as user “zammad” in the terminal and then run the command “rails s -b 127.0.0.1 -p 3000 -d” so that I can actually access Zammad. If I don’t run this command manually, I only get a 503 error when I call the Zammad domain.

Does anyone have any idea how I can fix the error so that Zammad is actually available immediately when my system is restarted?

Thank you very much for any suggestions.

Hi,

I tried a few things again and looked at all the logs. The service had a problem with my redis. I adjusted my zammad.env and stored my redis URL there. Now the service starts correctly. Even after restarting the system.

/etc/zammad/zammad.env:

BUNDLE_BINARY=bundle
RAILS_ENV=production
ZAMMAD_BIND_IP=127.0.0.1
ZAMMAD_RAILS_PORT=3000
ZAMMAD_WEBSOCKET_PORT=6042
REDIS_URL=redis://:REDIS-PASSWORD@localhost:6379

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.