[i-Diario] - Erro ao iniciar o servidor e acessar

#1

Realizei todos os procedimento de instalação conforme o manual no site Github, porém ao executar o comando bundle exec rails server reporta o seguinte erro. Não tenho ideia de como resolver.

=> Booting Puma
=> Rails 4.2.11.1 application starting in development on http://localhost:3000
=> Run rails server -h for more startup options
=> Ctrl-C to shutdown server
Exiting
/home/seman/.rvm/gems/ruby-2.2.6/gems/activerecord-4.2.11.1/lib/active_record/connection_adapters/postgresql_adapter.rb:651:in initialize': could not connect to server: No such file or directory (PG::ConnectionBad) Is the server running locally and accepting connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"? from /home/seman/.rvm/gems/ruby-2.2.6/gems/activerecord-4.2.11.1/lib/active_record/connection_adapters/postgresql_adapter.rb:651:innew’
from /home/seman/.rvm/gems/ruby-2.2.6/gems/activerecord-4.2.11.1/lib/active_record/connection_adapters/postgresql_adapter.rb:651:in connect' from /home/seman/.rvm/gems/ruby-2.2.6/gems/activerecord-4.2.11.1/lib/active_record/connection_adapters/postgresql_adapter.rb:242:ininitialize’
from /home/seman/.rvm/gems/ruby-2.2.6/gems/activerecord-4.2.11.1/lib/active_record/connection_adapters/postgresql_adapter.rb:44:in new' from /home/seman/.rvm/gems/ruby-2.2.6/gems/activerecord-4.2.11.1/lib/active_record/connection_adapters/postgresql_adapter.rb:44:inpostgresql_connection’
from /home/seman/.rvm/gems/ruby-2.2.6/gems/activerecord-4.2.11.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:438:in new_connection' from /home/seman/.rvm/gems/ruby-2.2.6/gems/activerecord-4.2.11.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:448:incheckout_new_connection’
from /home/seman/.rvm/gems/ruby-2.2.6/gems/activerecord-4.2.11.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:422:in acquire_connection' from /home/seman/.rvm/gems/ruby-2.2.6/gems/activerecord-4.2.11.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:349:inblock in checkout’
from /usr/share/rvm/rubies/ruby-2.2.6/lib/ruby/2.2.0/monitor.rb:211:in mon_synchronize' from /home/seman/.rvm/gems/ruby-2.2.6/gems/activerecord-4.2.11.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:348:incheckout’
from /home/seman/.rvm/gems/ruby-2.2.6/gems/activerecord-4.2.11.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:263:in block in connection' from /usr/share/rvm/rubies/ruby-2.2.6/lib/ruby/2.2.0/monitor.rb:211:inmon_synchronize’
from /home/seman/.rvm/gems/ruby-2.2.6/gems/activerecord-4.2.11.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:262:in connection' from /home/seman/.rvm/gems/ruby-2.2.6/gems/activerecord-4.2.11.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:571:inretrieve_connection’
from /home/seman/.rvm/gems/ruby-2.2.6/bundler/gems/activerecord-connections-b2a704ff10c4/lib/active_record/connections.rb:63:in retrieve_connection' from /home/seman/.rvm/gems/ruby-2.2.6/gems/activerecord-4.2.11.1/lib/active_record/connection_handling.rb:87:inconnection’
from /home/seman/.rvm/gems/ruby-2.2.6/gems/activerecord-4.2.11.1/lib/active_record/model_schema.rb:230:in table_exists?' from /home/seman/.rvm/gems/ruby-2.2.6/bundler/gems/audited-bfa27dbd1a40/lib/audited/auditor.rb:48:inaudited’
from /var/www/html/idiario/app/models/user.rb:4:in <class:User>' from /var/www/html/idiario/app/models/user.rb:1:in<top (required)>’
from /home/seman/.rvm/gems/ruby-2.2.6/gems/activesupport-4.2.11.1/lib/active_support/dependencies.rb:457:in load' from /home/seman/.rvm/gems/ruby-2.2.6/gems/activesupport-4.2.11.1/lib/active_support/dependencies.rb:457:inblock in load_file’
from /home/seman/.rvm/gems/ruby-2.2.6/gems/activesupport-4.2.11.1/lib/active_support/dependencies.rb:647:in new_constants_in' from /home/seman/.rvm/gems/ruby-2.2.6/gems/activesupport-4.2.11.1/lib/active_support/dependencies.rb:456:inload_file’
from /home/seman/.rvm/gems/ruby-2.2.6/gems/activesupport-4.2.11.1/lib/active_support/dependencies.rb:354:in require_or_load' from /home/seman/.rvm/gems/ruby-2.2.6/gems/activesupport-4.2.11.1/lib/active_support/dependencies.rb:494:inload_missing_constant’
from /home/seman/.rvm/gems/ruby-2.2.6/gems/activesupport-4.2.11.1/lib/active_support/dependencies.rb:184:in const_missing' from /home/seman/.rvm/gems/ruby-2.2.6/gems/activesupport-4.2.11.1/lib/active_support/inflector/methods.rb:261:inconst_get’
from /home/seman/.rvm/gems/ruby-2.2.6/gems/activesupport-4.2.11.1/lib/active_support/inflector/methods.rb:261:in block in constantize' from /home/seman/.rvm/gems/ruby-2.2.6/gems/activesupport-4.2.11.1/lib/active_support/inflector/methods.rb:259:ineach’
from /home/seman/.rvm/gems/ruby-2.2.6/gems/activesupport-4.2.11.1/lib/active_support/inflector/methods.rb:259:in inject' from /home/seman/.rvm/gems/ruby-2.2.6/gems/activesupport-4.2.11.1/lib/active_support/inflector/methods.rb:259:inconstantize’
from /home/seman/.rvm/gems/ruby-2.2.6/gems/activesupport-4.2.11.1/lib/active_support/dependencies.rb:566:in get' from /home/seman/.rvm/gems/ruby-2.2.6/gems/activesupport-4.2.11.1/lib/active_support/dependencies.rb:597:inconstantize’
from /home/seman/.rvm/gems/ruby-2.2.6/gems/devise-3.5.1/lib/devise.rb:290:in get' from /home/seman/.rvm/gems/ruby-2.2.6/gems/devise-3.5.1/lib/devise/mapping.rb:81:into’
from /home/seman/.rvm/gems/ruby-2.2.6/gems/devise-3.5.1/lib/devise/mapping.rb:76:in modules' from /home/seman/.rvm/gems/ruby-2.2.6/gems/devise-3.5.1/lib/devise/mapping.rb:93:inroutes’
from /home/seman/.rvm/gems/ruby-2.2.6/gems/devise-3.5.1/lib/devise/mapping.rb:160:in default_used_route' from /home/seman/.rvm/gems/ruby-2.2.6/gems/devise-3.5.1/lib/devise/mapping.rb:70:ininitialize’
from /home/seman/.rvm/gems/ruby-2.2.6/gems/devise-3.5.1/lib/devise.rb:324:in new' from /home/seman/.rvm/gems/ruby-2.2.6/gems/devise-3.5.1/lib/devise.rb:324:inadd_mapping’
from /home/seman/.rvm/gems/ruby-2.2.6/gems/devise-3.5.1/lib/devise/rails/routes.rb:224:in block in devise_for' from /home/seman/.rvm/gems/ruby-2.2.6/gems/devise-3.5.1/lib/devise/rails/routes.rb:223:ineach’
from /home/seman/.rvm/gems/ruby-2.2.6/gems/devise-3.5.1/lib/devise/rails/routes.rb:223:in devise_for' from /var/www/html/idiario/config/routes.rb:9:inblock (2 levels) in <top (required)>’
from /home/seman/.rvm/gems/ruby-2.2.6/bundler/gems/route_translator-d9f8ce929bca/lib/route_translator/extensions/mapper.rb:8:in localized' from /var/www/html/idiario/config/routes.rb:8:inblock in <top (required)>’
from /home/seman/.rvm/gems/ruby-2.2.6/gems/actionpack-4.2.11.1/lib/action_dispatch/routing/route_set.rb:432:in instance_exec' from /home/seman/.rvm/gems/ruby-2.2.6/gems/actionpack-4.2.11.1/lib/action_dispatch/routing/route_set.rb:432:ineval_block’
from /home/seman/.rvm/gems/ruby-2.2.6/gems/actionpack-4.2.11.1/lib/action_dispatch/routing/route_set.rb:410:in draw' from /var/www/html/idiario/config/routes.rb:3:in<top (required)>’
from /home/seman/.rvm/gems/ruby-2.2.6/gems/activesupport-4.2.11.1/lib/active_support/dependencies.rb:268:in load' from /home/seman/.rvm/gems/ruby-2.2.6/gems/activesupport-4.2.11.1/lib/active_support/dependencies.rb:268:inblock in load’
from /home/seman/.rvm/gems/ruby-2.2.6/gems/activesupport-4.2.11.1/lib/active_support/dependencies.rb:240:in load_dependency' from /home/seman/.rvm/gems/ruby-2.2.6/gems/activesupport-4.2.11.1/lib/active_support/dependencies.rb:268:inload’
from /home/seman/.rvm/gems/ruby-2.2.6/gems/railties-4.2.11.1/lib/rails/application/routes_reloader.rb:40:in block in load_paths' from /home/seman/.rvm/gems/ruby-2.2.6/gems/railties-4.2.11.1/lib/rails/application/routes_reloader.rb:40:ineach’
from /home/seman/.rvm/gems/ruby-2.2.6/gems/railties-4.2.11.1/lib/rails/application/routes_reloader.rb:40:in load_paths' from /home/seman/.rvm/gems/ruby-2.2.6/gems/railties-4.2.11.1/lib/rails/application/routes_reloader.rb:16:inreload!’
from /home/seman/.rvm/gems/ruby-2.2.6/gems/railties-4.2.11.1/lib/rails/application/routes_reloader.rb:26:in block in updater' from /home/seman/.rvm/gems/ruby-2.2.6/gems/activesupport-4.2.11.1/lib/active_support/file_update_checker.rb:75:incall’
from /home/seman/.rvm/gems/ruby-2.2.6/gems/activesupport-4.2.11.1/lib/active_support/file_update_checker.rb:75:in execute' from /home/seman/.rvm/gems/ruby-2.2.6/gems/railties-4.2.11.1/lib/rails/application/routes_reloader.rb:27:inupdater’
from /home/seman/.rvm/gems/ruby-2.2.6/gems/railties-4.2.11.1/lib/rails/application/routes_reloader.rb:7:in execute_if_updated' from /home/seman/.rvm/gems/ruby-2.2.6/gems/railties-4.2.11.1/lib/rails/application/finisher.rb:69:inblock in module:Finisher
from /home/seman/.rvm/gems/ruby-2.2.6/gems/railties-4.2.11.1/lib/rails/initializable.rb:30:in instance_exec' from /home/seman/.rvm/gems/ruby-2.2.6/gems/railties-4.2.11.1/lib/rails/initializable.rb:30:inrun’
from /home/seman/.rvm/gems/ruby-2.2.6/gems/railties-4.2.11.1/lib/rails/initializable.rb:55:in block in run_initializers' from /usr/share/rvm/rubies/ruby-2.2.6/lib/ruby/2.2.0/tsort.rb:226:inblock in tsort_each’
from /usr/share/rvm/rubies/ruby-2.2.6/lib/ruby/2.2.0/tsort.rb:348:in block (2 levels) in each_strongly_connected_component' from /usr/share/rvm/rubies/ruby-2.2.6/lib/ruby/2.2.0/tsort.rb:429:ineach_strongly_connected_component_from’
from /usr/share/rvm/rubies/ruby-2.2.6/lib/ruby/2.2.0/tsort.rb:347:in block in each_strongly_connected_component' from /usr/share/rvm/rubies/ruby-2.2.6/lib/ruby/2.2.0/tsort.rb:345:ineach’
from /usr/share/rvm/rubies/ruby-2.2.6/lib/ruby/2.2.0/tsort.rb:345:in call' from /usr/share/rvm/rubies/ruby-2.2.6/lib/ruby/2.2.0/tsort.rb:345:ineach_strongly_connected_component’
from /usr/share/rvm/rubies/ruby-2.2.6/lib/ruby/2.2.0/tsort.rb:224:in tsort_each' from /usr/share/rvm/rubies/ruby-2.2.6/lib/ruby/2.2.0/tsort.rb:203:intsort_each’
from /home/seman/.rvm/gems/ruby-2.2.6/gems/railties-4.2.11.1/lib/rails/initializable.rb:54:in run_initializers' from /home/seman/.rvm/gems/ruby-2.2.6/gems/railties-4.2.11.1/lib/rails/application.rb:352:ininitialize!’
from /var/www/html/idiario/config/environment.rb:5:in <top (required)>' from /home/seman/.rvm/gems/ruby-2.2.6/gems/activesupport-4.2.11.1/lib/active_support/dependencies.rb:274:inrequire’
from /home/seman/.rvm/gems/ruby-2.2.6/gems/activesupport-4.2.11.1/lib/active_support/dependencies.rb:274:in block in require' from /home/seman/.rvm/gems/ruby-2.2.6/gems/activesupport-4.2.11.1/lib/active_support/dependencies.rb:240:inload_dependency’
from /home/seman/.rvm/gems/ruby-2.2.6/gems/activesupport-4.2.11.1/lib/active_support/dependencies.rb:274:in require' from /var/www/html/idiario/config.ru:3:inblock in ’
from /home/seman/.rvm/gems/ruby-2.2.6/gems/rack-1.6.11/lib/rack/builder.rb:55:in instance_eval' from /home/seman/.rvm/gems/ruby-2.2.6/gems/rack-1.6.11/lib/rack/builder.rb:55:ininitialize’
from /var/www/html/idiario/config.ru:in new' from /var/www/html/idiario/config.ru:in
from /home/seman/.rvm/gems/ruby-2.2.6/gems/rack-1.6.11/lib/rack/builder.rb:49:in eval' from /home/seman/.rvm/gems/ruby-2.2.6/gems/rack-1.6.11/lib/rack/builder.rb:49:innew_from_string’
from /home/seman/.rvm/gems/ruby-2.2.6/gems/rack-1.6.11/lib/rack/builder.rb:40:in parse_file' from /home/seman/.rvm/gems/ruby-2.2.6/gems/rack-1.6.11/lib/rack/server.rb:300:inbuild_app_and_options_from_config’
from /home/seman/.rvm/gems/ruby-2.2.6/gems/rack-1.6.11/lib/rack/server.rb:209:in app' from /home/seman/.rvm/gems/ruby-2.2.6/gems/railties-4.2.11.1/lib/rails/commands/server.rb:61:inapp’
from /home/seman/.rvm/gems/ruby-2.2.6/gems/rack-1.6.11/lib/rack/server.rb:337:in wrapped_app' from /home/seman/.rvm/gems/ruby-2.2.6/gems/railties-4.2.11.1/lib/rails/commands/server.rb:139:inlog_to_stdout’
from /home/seman/.rvm/gems/ruby-2.2.6/gems/railties-4.2.11.1/lib/rails/commands/server.rb:78:in start' from /home/seman/.rvm/gems/ruby-2.2.6/gems/railties-4.2.11.1/lib/rails/commands/commands_tasks.rb:80:inblock in server’
from /home/seman/.rvm/gems/ruby-2.2.6/gems/railties-4.2.11.1/lib/rails/commands/commands_tasks.rb:75:in tap' from /home/seman/.rvm/gems/ruby-2.2.6/gems/railties-4.2.11.1/lib/rails/commands/commands_tasks.rb:75:inserver’
from /home/seman/.rvm/gems/ruby-2.2.6/gems/railties-4.2.11.1/lib/rails/commands/commands_tasks.rb:39:in run_command!' from /home/seman/.rvm/gems/ruby-2.2.6/gems/railties-4.2.11.1/lib/rails/commands.rb:17:in<top (required)>’
from /var/www/html/idiario/bin/rails:9:in require' from /var/www/html/idiario/bin/rails:9:in<top (required)>’
from /home/seman/.rvm/gems/ruby-2.2.6/gems/spring-2.0.2/lib/spring/client/rails.rb:28:in load' from /home/seman/.rvm/gems/ruby-2.2.6/gems/spring-2.0.2/lib/spring/client/rails.rb:28:incall’
from /home/seman/.rvm/gems/ruby-2.2.6/gems/spring-2.0.2/lib/spring/client/command.rb:7:in call' from /home/seman/.rvm/gems/ruby-2.2.6/gems/spring-2.0.2/lib/spring/client.rb:30:inrun’
from /home/seman/.rvm/gems/ruby-2.2.6/gems/spring-2.0.2/bin/spring:49:in <top (required)>' from /home/seman/.rvm/gems/ruby-2.2.6/gems/spring-2.0.2/lib/spring/binstub.rb:31:inload’
from /home/seman/.rvm/gems/ruby-2.2.6/gems/spring-2.0.2/lib/spring/binstub.rb:31:in <top (required)>' from /var/www/html/idiario/bin/spring:15:inrequire’
from /var/www/html/idiario/bin/spring:15:in <top (required)>' from bin/rails:3:inload’
from bin/rails:3:in `’

Fico no aguardo de alguma ajuda, o i-educar já está em funcionamento.

#2

Boa noite @sancaio1994, o erro está acontecendo pois o i-diario não está conseguindo se conectar ao banco de dados, além de copiar o arquivo config/database.sample.yml para config/database.yml você configurou ele (config/database.yml) com as informações de acesso ao seu banco de dados?

#3

Olá @Juchem muito obrigado pela dica, verifiquei as permições no arquivo pg_hba.conf e conseguir da sequencia e acessar o i-diario. Gostaria de saber, possui algum manual para integração do i-diario com i-educar? muito obrigado.