Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
I’m getting this error: “Job failed to start” when I run sudo start puma-manager.
Hi I get the error “start: Job failed to start” when i typed sudo start puma-manager
My site loads, but when I click a link, I get the following error:
2015/04/29 21:47:20 [crit] 5512#0: *120 connect() to unix:/var/www/myapp/shared/sockets/puma.sock failed (2: No such file or directory) while connecting to upstream, client: 96.125.117.12, server: localhost, request: “GET /pages/faq.html HTTP/1.1”, upstream: “http://unix:/var/www/myapp/shared/sockets/puma.sock:/pages/faq.html”, host: “myserver.amazonaws.com”, referrer: “http://myserver.amazonaws.com/”
Using this setup, how do you trigger a restart with capistrano after a deploy? I’m not familiar with Puma, I’m mainly a Unicorn guy.
@manicas I’m using puma with preinstalled dokku. Everything is alright but on deploy my uploaded images are deleted from “public/images/products”.
What can I do? Thanks!.
This comment has been deleted
Hi Manicas,
Thanks for the great how-to guide.
I am facing problems in starting the puma server with upstart.
sudo service puma start start: Unknown parameter: app
the logs from sudo tail -f /var/log/upstart/puma-_home_deploy_apps_myapp.log /bin/bash: line 26: exec: bundle: not found /bin/bash: line 26: exec: bundle: not found
Puma starts okay with “rails server” and I can event load the web page.
manicas:
Yes bundler is installed
I am using rvm
rvm -v rvm 1.26.11 (latest) by Wayne E. Seguin wayneeseguin@gmail.com, Michal Papis mpapis@gmail.com [https://rvm.io/] deploy@akticiti:~/apps/akticiti.com$ ruby -v ruby 2.2.1p85 (2015-02-26 revision 49769) [x86_64-linux] deploy@akticiti:~/apps/akticiti.com$ rails -v Rails 4.2.2
http://server-ip/tasks gives me a 403 Forbidden
Here is ls -l of my public folder
-rw-r–r-- 1 root root 1564 Aug 4 02:27 404.html -rw-r–r-- 1 root root 1547 Aug 4 02:27 422.html -rw-r–r-- 1 root root 1477 Aug 4 02:27 500.html drwxr-xr-x 2 root root 4096 Aug 4 03:01 assets -rw-r–r-- 1 root root 0 Aug 4 02:27 favicon.ico -rw-r–r-- 1 root root 202 Aug 4 02:27 robots.txt
I do the following and still there is no puma.sock created.
sudo start puma app=app_path puma (app_path) start/running, process 30059
Returns nothing
Now the app throws, 502 Bad Gateway instead of 403
lsof -i gives the following output
nginx 31087 root 6u IPv4 219652 0t0 TCP *:http (LISTEN) nginx 31089 www-data 6u IPv4 219652 0t0 TCP *:http (LISTEN) nginx 31090 www-data 6u IPv4 219652 0t0 TCP *:http (LISTEN) nginx 31091 www-data 6u IPv4 219652 0t0 TCP *:http (LISTEN) nginx 31092 www-data 6u IPv4 219652 0t0 TCP *:http (LISTEN)