I got a fresh copy of Zammad 3.2 from the GitHub repository.
And I just setup Zammad on an AWS Ubuntu 18.04 production server.
I have installed Ruby on Rails, Elasticsearch, PostgreSQL and other dependencies on the server.
I am using Rails default application server (PUMA) as the application server and I have installed Nginx as the reverse proxy server, but the application throws a 500 error page when I try to access it via the public IP Address of the AWS Server where it is deployed.
I think the issue is from my Nginx Configuration and/or the Puma Configuration.
Here is my Nginx Configuration (nginx/zammad.conf)
And this is the Puma Configuration (zammad/config/puma.rb)
# Change to match your CPU core count
workers 2
# Min and Max threads per worker
threads 1, 6
app_dir = File.expand_path("../..", __FILE__)
shared_dir = "#{app_dir}/shared"
# Default to production
rails_env = ENV['RAILS_ENV'] || "production"
environment rails_env
# Set up socket location
bind "unix://#{shared_dir}/sockets/puma.sock"
# Logging
stdout_redirect "#{shared_dir}/log/puma.stdout.log", "#{shared_dir}/log/puma.st$
# Set master PID and state locations
pidfile "#{shared_dir}/pids/puma.pid"
state_path "#{shared_dir}/pids/puma.state"
activate_control_app
on_worker_boot do
require "active_record"
ActiveRecord::Base.connection.disconnect! rescue ActiveRecord::ConnectionNotE$
ActiveRecord::Base.establish_connection(YAML.load_file("#{app_dir}/config/dat$
end
Infos:
Used Zammad version: Zammad v3.2.0
Used Zammad installation source: git repository source
Operating system: Ubuntu 18.04
Browser + version: Google Chrome v77
Expected behavior:
I expect to see the homepage/index page of Zammad when I enter the Public IP Address of the AWS Server where the copy of Zammad is hosted.
2019/11/06 11:23:43 [info] 6361#6361: Using 32768KiB of shared memory for nchan in /etc/nginx/nginx.conf:63
2019/11/06 11:24:07 [crit] 6391#6391: *3 connect() to unix:/home/ubuntu/zammad/shared/sockets/puma.sock failed (2: No such file or directory) while connectin$
2019/11/06 11:24:13 [crit] 6391#6391: *8 connect() to unix:/home/ubuntu/zammad/shared/sockets/puma.sock failed (2: No such file or directory) while connectin$
2019/11/06 11:26:23 [info] 6468#6468: Using 32768KiB of shared memory for nchan in /etc/nginx/nginx.conf:63
2019/11/06 11:27:23 [crit] 6497#6497: *1 connect() to unix:/home/ubuntu/zammad/shared/sockets/puma.sock failed (2: No such file or directory) while connectin$
2019/11/06 11:27:30 [crit] 6497#6497: *8 connect() to unix:/home/ubuntu/zammad/shared/sockets/puma.sock failed (2: No such file or directory) while connectin$
2019/11/06 11:37:44 [crit] 6497#6497: *11 connect() to unix:/home/ubuntu/zammad/shared/sockets/puma.sock failed (2: No such file or directory) while connecti$
2019/11/06 11:37:48 [crit] 6497#6497: *11 connect() to unix:/home/ubuntu/zammad/shared/sockets/puma.sock failed (2: No such file or directory) while connecti$
2019/11/06 11:39:17 [crit] 6497#6497: *15 connect() to unix:/home/ubuntu/zammad/shared/sockets/puma.sock failed (2: No such file or directory) while connecti$
I was following a tutorial, and that was why my configuration looked that way.
The little issue that I had with the configuration provided by Zammad is that I didn’t find the configuration for the Rails application server (PUMA), so I kept on scouting the internet for tutorials that had both the Nginx and PUMA configurations, since I am using the both servers.
If you can explain or have any Zammad documentation that explicitly outlines the recommended configuration for Nginx (web server) and Puma (application server), please point me to them, I will be very appreciative.