[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Installation problems



Hi Guys,
after few weeks of attempts to setup the platform, finally today i have some small success following this guide:

http://digidayoff.com/2013/10/13/installing-openshift-origin/

But, when i try to access the broker api with:

curl -k https://openshift.example.com/broker/rest/api

in error_log writes the following:
pid=700 thr=13352580 file=utils.rb:176 time=2013-10-28 15:25:54.142 ]: *** Exception Errno::EACCES in PhusionPassenger::Rack::ApplicationSpawner (Permission denied - /var/log/openshift/broker/usage.log) (process 700, thread #<Thread:0x00000001977d08>):
from /usr/share/ruby/open-uri.rb:36:in `initialize'
from /usr/share/ruby/open-uri.rb:36:in `open'
from /usr/share/ruby/open-uri.rb:36:in `open'
from /usr/share/ruby/logger.rb:596:in `open_logfile'
from /usr/share/ruby/logger.rb:553:in `initialize'
from /usr/share/ruby/logger.rb:319:in `new'
from /usr/share/ruby/logger.rb:319:in `initialize'
from /usr/local/share/gems/gems/activesupport-3.2.15/lib/active_support/core_ext/logger.rb:72:in `initialize'
from /usr/share/gems/gems/openshift-origin-controller-1.13.0.2/config/initializers/usage_audit_log.rb:3:in `new'
from /usr/share/gems/gems/openshift-origin-controller-1.13.0.2/config/initializers/usage_audit_log.rb:3:in `<top (required)>'
from /usr/local/share/gems/gems/activesupport-3.2.15/lib/active_support/dependencies.rb:245:in `load'
from /usr/local/share/gems/gems/activesupport-3.2.15/lib/active_support/dependencies.rb:245:in `block in load'
from /usr/local/share/gems/gems/activesupport-3.2.15/lib/active_support/dependencies.rb:236:in `load_dependency'
from /usr/local/share/gems/gems/activesupport-3.2.15/lib/active_support/dependencies.rb:245:in `load'
from /usr/local/share/gems/gems/railties-3.2.15/lib/rails/engine.rb:593:in `block (2 levels) in <class:Engine>'
from /usr/local/share/gems/gems/railties-3.2.15/lib/rails/engine.rb:592:in `each'
from /usr/local/share/gems/gems/railties-3.2.15/lib/rails/engine.rb:592:in `block in <class:Engine>'
from /usr/local/share/gems/gems/railties-3.2.15/lib/rails/initializable.rb:30:in `instance_exec'
from /usr/local/share/gems/gems/railties-3.2.15/lib/rails/initializable.rb:30:in `run'
from /usr/local/share/gems/gems/railties-3.2.15/lib/rails/initializable.rb:55:in `block in run_initializers'
from /usr/local/share/gems/gems/railties-3.2.15/lib/rails/initializable.rb:54:in `each'
from /usr/local/share/gems/gems/railties-3.2.15/lib/rails/initializable.rb:54:in `run_initializers'
from /usr/local/share/gems/gems/railties-3.2.15/lib/rails/application.rb:136:in `initialize!'
from /usr/local/share/gems/gems/railties-3.2.15/lib/rails/railtie/configurable.rb:30:in `method_missing'
from /var/www/openshift/broker/config/environment.rb:5:in `<top (required)>'
from config.ru:3:in `require'
from config.ru:3:in `block in <main>'
from /usr/share/gems/gems/rack-1.4.5/lib/rack/builder.rb:51:in `instance_eval'
from /usr/share/gems/gems/rack-1.4.5/lib/rack/builder.rb:51:in `initialize'
from config.ru:1:in `new'
from config.ru:1:in `<main>'
from /usr/share/gems/gems/passenger-3.0.21/lib/phusion_passenger/rack/application_spawner.rb:225:in `eval'
from /usr/share/gems/gems/passenger-3.0.21/lib/phusion_passenger/rack/application_spawner.rb:225:in `load_rack_app'
from /usr/share/gems/gems/passenger-3.0.21/lib/phusion_passenger/rack/application_spawner.rb:157:in `block in initialize_server'
from /usr/share/gems/gems/passenger-3.0.21/lib/phusion_passenger/utils.rb:563:in `report_app_init_status'
from /usr/share/gems/gems/passenger-3.0.21/lib/phusion_passenger/rack/application_spawner.rb:154:in `initialize_server'
from /usr/share/gems/gems/passenger-3.0.21/lib/phusion_passenger/abstract_server.rb:204:in `start_synchronously'
from /usr/share/gems/gems/passenger-3.0.21/lib/phusion_passenger/abstract_server.rb:180:in `start'
from /usr/share/gems/gems/passenger-3.0.21/lib/phusion_passenger/rack/application_spawner.rb:129:in `start'
from /usr/share/gems/gems/passenger-3.0.21/lib/phusion_passenger/spawn_manager.rb:253:in `block (2 levels) in spawn_rack_application'
from /usr/share/gems/gems/passenger-3.0.21/lib/phusion_passenger/abstract_server_collection.rb:132:in `lookup_or_add'
from /usr/share/gems/gems/passenger-3.0.21/lib/phusion_passenger/spawn_manager.rb:246:in `block in spawn_rack_application'
from /usr/share/gems/gems/passenger-3.0.21/lib/phusion_passenger/abstract_server_collection.rb:82:in `block in synchronize'
from /usr/share/gems/gems/passenger-3.0.21/lib/phusion_passenger/abstract_server_collection.rb:79:in `synchronize'
from /usr/share/gems/gems/passenger-3.0.21/lib/phusion_passenger/abstract_server_collection.rb:79:in `synchronize'
from /usr/share/gems/gems/passenger-3.0.21/lib/phusion_passenger/spawn_manager.rb:244:in `spawn_rack_application'
from /usr/share/gems/gems/passenger-3.0.21/lib/phusion_passenger/spawn_manager.rb:137:in `spawn_application'
from /usr/share/gems/gems/passenger-3.0.21/lib/phusion_passenger/spawn_manager.rb:275:in `handle_spawn_application'
from /usr/share/gems/gems/passenger-3.0.21/lib/phusion_passenger/abstract_server.rb:357:in `server_main_loop'
from /usr/share/gems/gems/passenger-3.0.21/lib/phusion_passenger/abstract_server.rb:206:in `start_synchronously'
from /usr/share/gems/gems/passenger-3.0.21/helper-scripts/passenger-spawn-server:102:in `<main>'

also when i try to create an user with this command:
oo-register-user -l admin -p admin --username pfarmer --userpass myPassW0rd

has the follwing error:

usr/local/share/gems/gems/activeresource-3.2.15/lib/active_resource/connection.rb:148:in `handle_response': Failed. Response code = 500. Response message = Internal Server Error. (ActiveResource::ServerError)
from /usr/local/share/gems/gems/activeresource-3.2.15/lib/active_resource/connection.rb:115:in `request'
from /usr/local/share/gems/gems/activeresource-3.2.15/lib/active_resource/connection.rb:98:in `block in post'
from /usr/local/share/gems/gems/activeresource-3.2.15/lib/active_resource/connection.rb:218:in `with_auth'
from /usr/local/share/gems/gems/activeresource-3.2.15/lib/active_resource/connection.rb:98:in `post'
from /usr/local/share/gems/gems/activeresource-3.2.15/lib/active_resource/base.rb:1360:in `create'
from /usr/local/share/gems/gems/activeresource-3.2.15/lib/active_resource/observing.rb:19:in `create_with_notifications'
from /usr/local/share/gems/gems/activeresource-3.2.15/lib/active_resource/base.rb:1155:in `save'
from /usr/local/share/gems/gems/activeresource-3.2.15/lib/active_resource/validations.rb:79:in `save_with_validation'
from /usr/local/share/gems/gems/activeresource-3.2.15/lib/active_resource/observing.rb:19:in `save_with_notifications'
from /bin/oo-register-user:101:in `<main>'
[root openshift broker]#

Any ideas?

Thanks in advance

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]