Installing and running Hyku on CentOS 7

56 views
Skip to first unread message

Brian Stevens

unread,
Jun 22, 2021, 11:13:52 AM6/22/21
to samvera-hyku

Hi,


We have been attempting to get the latest version (3.0.2) up and running as per the Hyku README.

We are trying to run Hyku on Docker on port 3001 instead of Dory.  On localhost a Hyku welcome screen renders on localhost:3001.

However, the routes seem to be broken:

"Routing Error

Not Found

Rails.root: /home/app/webapp

Routes

Routes match in priority from top to bottom"

The login page loads normally but a user can't login.

In the stack trace we're seeing that it can't connect to the DB...

zoo1_1            | 2021-06-21 18:40:57,853 [myid:1] - INFO  [Thread-14:NIOServerCnxn@1056] - Closed socket connection for client /127.0.0.1:51450 (no session established for clie

nt)

base_1            | rails aborted!

base_1            | PG::ConnectionBad: could not translate host name "db" to address: Name or service not known

base_1            | /usr/local/rvm/gems/ruby-2.5.3/gems/pg-1.2.3/lib/pg.rb:58:in `initialize'


Any ideas out there where we have gone wrong in our lives to get to this point?


Thanks,

Brian

WCSU Archives

William Conlin

unread,
Jan 4, 2022, 4:13:51 PM1/4/22
to samvera-hyku
Hi,

I also have this question regarding "Routes", but I am running on Ubuntu 20.04

Using Hyku with docker-compose -v 1.27.4

Not using dory currently.

at localhost:3000 this is what I'm getting

"

Rails.root: /app/samvera/hyrax-webapp

app/controllers/application_controller.rb:30:in `block in <class:ApplicationController>'
activesupport (5.2.6) lib/active_support/rescuable.rb:114:in `instance_exec'
activesupport (5.2.6) lib/active_support/rescuable.rb:114:in `block in handler_for_rescue'
activesupport (5.2.6) lib/active_support/rescuable.rb:92:in `rescue_with_handler'
activesupport (5.2.6) lib/active_support/rescuable.rb:165:in `rescue_with_handler'
actionpack (5.2.6) lib/action_controller/metal/rescue.rb:25:in `rescue in process_action'
actionpack (5.2.6) lib/action_controller/metal/rescue.rb:21:in `process_action'
actionpack (5.2.6) lib/action_controller/metal/instrumentation.rb:34:in `block in process_action'
activesupport (5.2.6) lib/active_support/notifications.rb:168:in `block in instrument'
activesupport (5.2.6) lib/active_support/notifications/instrumenter.rb:23:in `instrument'
activesupport (5.2.6) lib/active_support/notifications.rb:168:in `instrument'
actionpack (5.2.6) lib/action_controller/metal/instrumentation.rb:32:in `process_action'
actionpack (5.2.6) lib/action_controller/metal/params_wrapper.rb:256:in `process_action'
activerecord (5.2.6) lib/active_record/railties/controller_runtime.rb:24:in `process_action'
actionpack (5.2.6) lib/abstract_controller/base.rb:134:in `process'
actionview (5.2.6) lib/action_view/rendering.rb:32:in `process'
actionpack (5.2.6) lib/action_controller/metal.rb:191:in `dispatch'
actionpack (5.2.6) lib/action_controller/metal.rb:252:in `dispatch'
actionpack (5.2.6) lib/action_dispatch/routing/route_set.rb:52:in `dispatch'
actionpack (5.2.6) lib/action_dispatch/routing/route_set.rb:34:in `serve'
actionpack (5.2.6) lib/action_dispatch/journey/router.rb:52:in `block in serve'
actionpack (5.2.6) lib/action_dispatch/journey/router.rb:35:in `each'
actionpack (5.2.6) lib/action_dispatch/journey/router.rb:35:in `serve'
actionpack (5.2.6) lib/action_dispatch/routing/route_set.rb:840:in `call'
is_it_working (1.1.0) lib/is_it_working/handler.rb:48:in `call'
apartment (2.2.1) lib/apartment/elevators/generic.rb:23:in `call'
apartment (2.2.1) lib/apartment/reloader.rb:18:in `call'
rack (2.2.3) lib/rack/deflater.rb:44:in `call'
warden (1.2.8) lib/warden/manager.rb:36:in `block in call'
warden (1.2.8) lib/warden/manager.rb:34:in `catch'
warden (1.2.8) lib/warden/manager.rb:34:in `call'
rack (2.2.3) lib/rack/tempfile_reaper.rb:15:in `call'
rack (2.2.3) lib/rack/etag.rb:27:in `call'
rack (2.2.3) lib/rack/conditional_get.rb:27:in `call'
rack (2.2.3) lib/rack/head.rb:12:in `call'
actionpack (5.2.6) lib/action_dispatch/http/content_security_policy.rb:18:in `call'
rack (2.2.3) lib/rack/session/abstract/id.rb:266:in `context'
rack (2.2.3) lib/rack/session/abstract/id.rb:260:in `call'
actionpack (5.2.6) lib/action_dispatch/middleware/cookies.rb:670:in `call'
active-fedora (12.1.1) lib/active_fedora/ldp_cache.rb:26:in `call'
flipflop (2.6.0) lib/flipflop/feature_cache.rb:12:in `call'
activerecord (5.2.6) lib/active_record/migration.rb:559:in `call'
actionpack (5.2.6) lib/action_dispatch/middleware/callbacks.rb:28:in `block in call'
activesupport (5.2.6) lib/active_support/callbacks.rb:98:in `run_callbacks'
actionpack (5.2.6) lib/action_dispatch/middleware/callbacks.rb:26:in `call'
actionpack (5.2.6) lib/action_dispatch/middleware/executor.rb:14:in `call'
actionpack (5.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:61:in `call'
web-console (3.7.0) lib/web_console/middleware.rb:135:in `call_app'
web-console (3.7.0) lib/web_console/middleware.rb:30:in `block in call'
web-console (3.7.0) lib/web_console/middleware.rb:20:in `catch'
web-console (3.7.0) lib/web_console/middleware.rb:20:in `call'
actionpack (5.2.6) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call'
railties (5.2.6) lib/rails/rack/logger.rb:38:in `call_app'
railties (5.2.6) lib/rails/rack/logger.rb:26:in `block in call'
activesupport (5.2.6) lib/active_support/tagged_logging.rb:71:in `block in tagged'
activesupport (5.2.6) lib/active_support/tagged_logging.rb:28:in `tagged'
activesupport (5.2.6) lib/active_support/tagged_logging.rb:71:in `tagged'
railties (5.2.6) lib/rails/rack/logger.rb:26:in `call'
sprockets-rails (3.2.2) lib/sprockets/rails/quiet_assets.rb:13:in `call'
actionpack (5.2.6) lib/action_dispatch/middleware/remote_ip.rb:81:in `call'
request_store (1.5.0) lib/request_store/middleware.rb:19:in `call'
actionpack (5.2.6) lib/action_dispatch/middleware/request_id.rb:27:in `call'
rack (2.2.3) lib/rack/method_override.rb:24:in `call'
rack (2.2.3) lib/rack/runtime.rb:22:in `call'
activesupport (5.2.6) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call'
actionpack (5.2.6) lib/action_dispatch/middleware/executor.rb:14:in `call'
actionpack (5.2.6) lib/action_dispatch/middleware/static.rb:127:in `call'
actionpack (5.2.6) lib/action_dispatch/middleware/static.rb:127:in `call'
rack (2.2.3) lib/rack/sendfile.rb:110:in `call'
secure_headers (6.3.0) lib/secure_headers/middleware.rb:11:in `call'
railties (5.2.6) lib/rails/engine.rb:524:in `call'
puma (4.3.8) lib/puma/commonlogger.rb:40:in `call'
puma (4.3.8) lib/puma/configuration.rb:228:in `call'
puma (4.3.8) lib/puma/server.rb:718:in `handle_request'
puma (4.3.8) lib/puma/server.rb:472:in `process_client'
puma (4.3.8) lib/puma/server.rb:328:in `block in run'
puma (4.3.8) lib/puma/thread_pool.rb:134:in `block in spawn_thread'
"

Any aid or thoughts welcome,
cheers

Rob Kaufman

unread,
Jan 5, 2022, 6:55:05 PM1/5/22
to samver...@googlegroups.com, William Conlin
It looks like you do not have a tenant set up to respond to localhost. localhost generally doesn't work as you need subdomains for Hyku's tenants. If you are using the docker-compose.override-nodory.yml method you need to try lvh.me as the domain

Best,
Rob
--
Samvera email lists are subject to the Samvera Code of Conduct and Anti-Harassment Policy
https://samvera.atlassian.net/wiki/spaces/samvera/pages/405212316/Samvera+Code+of+Conduct+and+Anti-Harassment+Policy
---
You received this message because you are subscribed to the Google Groups "samvera-hyku" group.
To unsubscribe from this group and stop receiving emails from it, send an email to samvera-hyku...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/samvera-hyku/27c8ac4f-c7ef-40b5-a14f-b395fab5182dn%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages