Error while starting ruby cas server

168 views
Skip to first unread message

Manoj Menon

unread,
Apr 22, 2014, 9:38:08 AM4/22/14
to rubycas...@googlegroups.com
Hi all,
i am trying to install RubyCAS- Server when i start server using bundle exec rubycas-server -c config.yml, i get following error please anybody help me to find solution to this.

Thanks.

=> Using custom config file "config.yml"

>>> Redirecting RubyCAS-Server log to /var/log/casserver.log

/home/nuventure/.rvm/rubies/ruby-1.9.3-p545/lib/ruby/1.9.1/logger.rb:599:in `initialize': Permission denied - /var/log/casserver.log (Errno::EACCES)
from /home/nuventure/.rvm/rubies/ruby-1.9.3-p545/lib/ruby/1.9.1/logger.rb:599:in `open'
from /home/nuventure/.rvm/rubies/ruby-1.9.3-p545/lib/ruby/1.9.1/logger.rb:599:in `create_logfile'
from /home/nuventure/.rvm/rubies/ruby-1.9.3-p545/lib/ruby/1.9.1/logger.rb:594:in `open_logfile'
from /home/nuventure/.rvm/rubies/ruby-1.9.3-p545/lib/ruby/1.9.1/logger.rb:549:in `initialize'
from /home/nuventure/.rvm/rubies/ruby-1.9.3-p545/lib/ruby/1.9.1/logger.rb:314:in `new'
from /home/nuventure/.rvm/rubies/ruby-1.9.3-p545/lib/ruby/1.9.1/logger.rb:314:in `initialize'
from /home/nuventure/.rvm/gems/ruby-1.9.3-p545/gems/activesupport-3.2.17/lib/active_support/core_ext/logger.rb:72:in `initialize'
from /home/nuventure/Documents/rubycas-server/lib/casserver/server.rb:239:in `new'
from /home/nuventure/Documents/rubycas-server/lib/casserver/server.rb:239:in `init_logger!'
from /home/nuventure/Documents/rubycas-server/lib/casserver/server.rb:272:in `block in <class:Server>'
from /home/nuventure/.rvm/gems/ruby-1.9.3-p545/gems/sinatra-1.4.5/lib/sinatra/base.rb:1402:in `configure'
from /home/nuventure/Documents/rubycas-server/lib/casserver/server.rb:270:in `<class:Server>'
from /home/nuventure/Documents/rubycas-server/lib/casserver/server.rb:6:in `<module:CASServer>'
from /home/nuventure/Documents/rubycas-server/lib/casserver/server.rb:5:in `<top (required)>'
from /home/nuventure/Documents/rubycas-server/lib/casserver.rb:18:in `require'
from /home/nuventure/Documents/rubycas-server/lib/casserver.rb:18:in `<top (required)>'
from /home/nuventure/Documents/rubycas-server/bin/rubycas-server:28:in `require'
from /home/nuventure/Documents/rubycas-server/bin/rubycas-server:28:in `<top (required)>'
from /home/nuventure/.rvm/gems/ruby-1.9.3-p545/bin/rubycas-server:23:in `load'
from /home/nuventure/.rvm/gems/ruby-1.9.3-p545/bin/rubycas-server:23:in `<main>'
from /home/nuventure/.rvm/gems/ruby-1.9.3-p545/bin/ruby_executable_hooks:15:in `eval'
from /home/nuventure/.rvm/gems/ruby-1.9.3-p545/bin/ruby_executable_hooks:15:in `<main>'

Nick Roosevelt

unread,
Apr 22, 2014, 1:09:34 PM4/22/14
to rubycas...@googlegroups.com
Make sure the user running rubycas-server has write access to an existing directory /var/log or change the location of the log in the config file.


--
You received this message because you are subscribed to the Google Groups "RubyCAS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubycas-serve...@googlegroups.com.
To post to this group, send email to rubycas...@googlegroups.com.
Visit this group at http://groups.google.com/group/rubycas-server.
For more options, visit https://groups.google.com/d/optout.

Manoj Menon

unread,
Apr 23, 2014, 2:56:00 AM4/23/14
to rubycas...@googlegroups.com


Thanks nick,but another issue i am facing today is when i start server following error happens, i hope it is not connecting to postgres,  i am using postgres.


/home/nuventure/.rvm/gems/ruby-2.1.0/gems/activerecord-3.2.17/lib/active_record/connection_adapters/mysql_adapter.rb:411:in `real_connect': Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) (Mysql::Error)
from /home/nuventure/.rvm/gems/ruby-2.1.0/gems/activerecord-3.2.17/lib/active_record/connection_adapters/mysql_adapter.rb:411:in `connect'
from /home/nuventure/.rvm/gems/ruby-2.1.0/gems/activerecord-3.2.17/lib/active_record/connection_adapters/mysql_adapter.rb:131:in `initialize'
from /home/nuventure/.rvm/gems/ruby-2.1.0/gems/activerecord-3.2.17/lib/active_record/connection_adapters/mysql_adapter.rb:38:in `new'
from /home/nuventure/.rvm/gems/ruby-2.1.0/gems/activerecord-3.2.17/lib/active_record/connection_adapters/mysql_adapter.rb:38:in `mysql_connection'
from /home/nuventure/.rvm/gems/ruby-2.1.0/gems/activerecord-3.2.17/lib/active_record/connection_adapters/abstract/connection_pool.rb:315:in `new_connection'
from /home/nuventure/.rvm/gems/ruby-2.1.0/gems/activerecord-3.2.17/lib/active_record/connection_adapters/abstract/connection_pool.rb:325:in `checkout_new_connection'
from /home/nuventure/.rvm/gems/ruby-2.1.0/gems/activerecord-3.2.17/lib/active_record/connection_adapters/abstract/connection_pool.rb:247:in `block (2 levels) in checkout'
from /home/nuventure/.rvm/gems/ruby-2.1.0/gems/activerecord-3.2.17/lib/active_record/connection_adapters/abstract/connection_pool.rb:242:in `loop'
from /home/nuventure/.rvm/gems/ruby-2.1.0/gems/activerecord-3.2.17/lib/active_record/connection_adapters/abstract/connection_pool.rb:242:in `block in checkout'
from /home/nuventure/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/monitor.rb:211:in `mon_synchronize'
from /home/nuventure/.rvm/gems/ruby-2.1.0/gems/activerecord-3.2.17/lib/active_record/connection_adapters/abstract/connection_pool.rb:239:in `checkout'
from /home/nuventure/.rvm/gems/ruby-2.1.0/gems/activerecord-3.2.17/lib/active_record/connection_adapters/abstract/connection_pool.rb:102:in `block in connection'
from /home/nuventure/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/monitor.rb:211:in `mon_synchronize'
from /home/nuventure/.rvm/gems/ruby-2.1.0/gems/activerecord-3.2.17/lib/active_record/connection_adapters/abstract/connection_pool.rb:101:in `connection'
from /home/nuventure/.rvm/gems/ruby-2.1.0/gems/activerecord-3.2.17/lib/active_record/connection_adapters/abstract/connection_pool.rb:410:in `retrieve_connection'
from /home/nuventure/.rvm/gems/ruby-2.1.0/gems/activerecord-3.2.17/lib/active_record/connection_adapters/abstract/connection_specification.rb:171:in `retrieve_connection'
from /home/nuventure/.rvm/gems/ruby-2.1.0/gems/activerecord-3.2.17/lib/active_record/connection_adapters/abstract/connection_specification.rb:145:in `connection'
from /home/nuventure/.rvm/gems/ruby-2.1.0/gems/activerecord-3.2.17/lib/active_record/migration.rb:662:in `initialize'
from /home/nuventure/.rvm/gems/ruby-2.1.0/gems/activerecord-3.2.17/lib/active_record/migration.rb:570:in `new'
from /home/nuventure/.rvm/gems/ruby-2.1.0/gems/activerecord-3.2.17/lib/active_record/migration.rb:570:in `up'
from /home/nuventure/.rvm/gems/ruby-2.1.0/gems/activerecord-3.2.17/lib/active_record/migration.rb:551:in `migrate'
from /home/nuventure/Documents/rubycas-server/lib/casserver/server.rb:262:in `init_database!'
from /home/nuventure/Documents/rubycas-server/lib/casserver/server.rb:273:in `block in <class:Server>'
from /home/nuventure/.rvm/gems/ruby-2.1.0/gems/sinatra-1.4.5/lib/sinatra/base.rb:1402:in `configure'
from /home/nuventure/Documents/rubycas-server/lib/casserver/server.rb:270:in `<class:Server>'
from /home/nuventure/Documents/rubycas-server/lib/casserver/server.rb:6:in `<module:CASServer>'
from /home/nuventure/Documents/rubycas-server/lib/casserver/server.rb:5:in `<top (required)>'
from /home/nuventure/Documents/rubycas-server/lib/casserver.rb:18:in `require'
from /home/nuventure/Documents/rubycas-server/lib/casserver.rb:18:in `<top (required)>'
from /home/nuventure/Documents/rubycas-server/bin/rubycas-server:28:in `require'
from /home/nuventure/Documents/rubycas-server/bin/rubycas-server:28:in `<top (required)>'
from /home/nuventure/.rvm/gems/ruby-2.1.0/bin/rubycas-server:23:in `load'
from /home/nuventure/.rvm/gems/ruby-2.1.0/bin/rubycas-server:23:in `<main>'
from /home/nuventure/.rvm/gems/ruby-2.1.0/bin/ruby_executable_hooks:15:in `eval'
from /home/nuventure/.rvm/gems/ruby-2.1.0/bin/ruby_executable_hooks:15:in `<main>'

Matt Zukowski

unread,
Apr 23, 2014, 11:25:51 AM4/23/14
to RubyCAS
Check your database configuration in your config.yml file. The instructions in the wiki here might help: https://github.com/rubycas/rubycas-server/wiki/Installation#configuring


Reply all
Reply to author
Forward
0 new messages