Your comments

Thanks for sharing. it was helpful.
In the same subject, I ran into a new error regarding to user\file permissions...
puma still not working. I tried clicking on "FIX FILE PERMISSIONS" btn.

I tried switching to the nginx user : 'www-data' and running the puma command in my app directory like this:

bundle exec puma -e production -t 4 -b unix:///var/run/ajenti-v-puma-store1ajentilocal-ruby-puma-0.sock

Then it crashed printing this error:


[www-data@ajenti www]$ bundle exec puma -e production -t 4 -b unix:///var/run/ajenti-v-puma-store1ajentilocal-ruby-puma-0.sock
Puma starting in single mode...
* Version 2.9.1 (ruby 2.1.2-p95), codename: Team High Five
* Min threads: 0, max threads: 4
* Environment: production
[WARNING] You are not setting Devise.secret_key within your application!
You must set this in config/initializers/devise.rb. Here's an example:

Devise.secret_key = "656e3159c231b92ae6008fa57dfd80e53eca27e0271e032e8e7bfa47cb7afd7f1b46a9e9dbac24a5ebc899fb86a24e123692"
Instance method "open" is already defined in Object, use generic helper instead or set StateMachine::Machine.ignore_method_conflicts = true.
* Listening on unix:///var/run/ajenti-v-puma-store1ajentilocal-ruby-puma-0.sock
/usr/local/rvm/gems/ruby-2.1.2/gems/puma-2.9.1/lib/puma/binder.rb:268:in `unlink': Permission denied @ unlink_internal - /var/run/ajenti-v-puma-store1ajentilocal-ruby-puma-0.sock (Errno::EACCES)

from /usr/local/rvm/gems/ruby-2.1.2/gems/puma-2.9.1/lib/puma/binder.rb:268:in `rescue in add_unix_listener'
from /usr/local/rvm/gems/ruby-2.1.2/gems/puma-2.9.1/lib/puma/binder.rb:265:in `add_unix_listener'
from /usr/local/rvm/gems/ruby-2.1.2/gems/puma-2.9.1/lib/puma/binder.rb:119:in `block in parse'
from /usr/local/rvm/gems/ruby-2.1.2/gems/puma-2.9.1/lib/puma/binder.rb:82:in `each'
from /usr/local/rvm/gems/ruby-2.1.2/gems/puma-2.9.1/lib/puma/binder.rb:82:in `parse'
from /usr/local/rvm/gems/ruby-2.1.2/gems/puma-2.9.1/lib/puma/runner.rb:119:in `load_and_bind'
from /usr/local/rvm/gems/ruby-2.1.2/gems/puma-2.9.1/lib/puma/single.rb:73:in `run'
from /usr/local/rvm/gems/ruby-2.1.2/gems/puma-2.9.1/lib/puma/cli.rb:499:in `run'
from /usr/local/rvm/gems/ruby-2.1.2/gems/puma-2.9.1/bin/puma:10:in `<top (required)>'
from /usr/local/rvm/gems/ruby-2.1.2/bin/puma:23:in `load'
from /usr/local/rvm/gems/ruby-2.1.2/bin/puma:23:in `<main>'
from /usr/local/rvm/gems/ruby-2.1.2/bin/ruby_executable_hooks:15:in `eval'
from /usr/local/rvm/gems/ruby-2.1.2/bin/ruby_executable_hooks:15:in `<main>'


It seems like user file permissions... I am running spreecommerce by the way on centos 6.5 using nginx, mariadb and
puma.

I appreciate any kind of help.
Thanks ahead.


I prefer working with MariaDB. It just that I can't make Ajenti to recognize it...

Is there any way to make it work with MariaDB?
can you send me the links for the right RPM?
Hi Eugene,

I didn't find any proper RPM.
I tried to use mysql-community server and ajenti seems to communicate with it...

now i have another error when I run puma:

/srv/store1/www/vendor/bundle/ruby/2.1.0/gems/mysql2-0.3.16/lib/mysql2.rb:8:in `require': Incorrect MySQL client library version! This gem was compiled for 5.5.37-MariaDB but the client library is 5.6.20. (RuntimeError)

How do I fix it?


keep getting this error:


[root@ajenti ~]# yum install ajenti-v-mysql.noarch
Failed to set locale, defaulting to C
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* base: mirror.isoc.org.il
* epel: mirror.nonstop.co.il
* extras: mirror.isoc.org.il
* updates: mirror.isoc.org.il
Resolving Dependencies
--> Running transaction check
---> Package ajenti-v-mysql.noarch 0:0.3.1-1 will be installed
--> Processing Dependency: mysql-server for package: ajenti-v-mysql-0.3.1-1.noarch
--> Finished Dependency Resolution
Error: Package: ajenti-v-mysql-0.3.1-1.noarch (ajenti)
Requires: mysql-server
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest


Do you mean just install the mariadb-server and it should work? 
Hi, I managed to fix it thanks!

I checked my logs like you told me:


HTTP/1.1", host: "test.ajenti.local", referrer: "http://test.ajenti.local/"
2014/09/13 22:30:52 [error] 6692#0: *7 open() "/srv/test.ajenti.local/www/css/main.css" failed (2: No such file or directory), client: 10.0.0.3, server: test.ajenti.local, request: "GET /css/main.css HTTP/1.1", host: "test.ajenti.local", referrer: "http://test.ajenti.local/"
2014/09/13 22:30:52 [error] 6692#0: *10 open() "/srv/test.ajenti.local/www/js/main.js" failed (2: No such file or directory), client: 10.0.0.3, server: test.ajenti.local, request: "GET /js/main.js HTTP/1.1", host: "test.ajenti.local", referrer: "http://test.ajenti.local/"
2014/09/13 22:31:01 [error] 6692#0: *10 open() "/srv/test.ajenti.local/www/js/main.js" failed (2: No such file or directory), client: 10.0.0.3, server: test.ajenti.local, request: "GET /js/main.js HTTP/1.1", host: "test.ajenti.local", referrer: "http://test.ajenti.local/"
2014/09/13 22:31:01 [error] 6692#0: *9 open() "/srv/test.ajenti.local/www/css/normalize.css" failed (2: No such file or directory), client: 10.0.0.3, server: test.ajenti.local, request: "GET /css/normalize.css HTTP/1.1", host: "test.ajenti.local", referrer: "http://test.ajenti.local/"
2014/09/13 22:31:01 [error] 6692#0: *8 open() "/srv/test.ajenti.local/www/js/plugins.js" failed (2: No such file or directory), client: 10.0.0.3, server: test.ajenti.local, request: "GET /js/plugins.js HTTP/1.1", host: "test.ajenti.local", referrer: "http://test.ajenti.local/"
2014/09/13 22:31:01 [error] 6692#0: *7 open() "/srv/test.ajenti.local/www/js/vendor/modernizr-2.6.2.min.js" failed (2: No such file or directory), client: 10.0.0.3, server: test.ajenti.local, request: "GET /js/vendor/modernizr-2.6.2.min.js HTTP/1.1", host: "test.ajenti.local", referrer: "http://test.ajenti.local/"
2014/09/13 22:31:01 [error] 6692#0: *6 open() "/srv/test.ajenti.local/www/css/main.css" failed (2: No such file or directory), client: 10.0.0.3, server: test.ajenti.local, request: "GET /css/main.css HTTP/1.1", host: "test.ajenti.local", referrer: "http://test.ajenti.local/"


the permissions was fine, it was the SElinux security causing the errors...

for now I disabled it with: setenforce 0
Until I set it up properly.


Done this already. I am getting error "403" form nginx...
Didn't find it... my log folder is empty.