Skip to content

HAWK not starting on fresh install of openSUSE LEAP 15.2 #225

Open
@matthiashinrichs

Description

@matthiashinrichs

Hello

if you install hawk2 on openSUSE LEAP 15.2,
hawk-backend.service will not start because of the following error:
2020-07-06T21:52:07.710011-06:00 nss-leap152 puma.ruby2.5[10033]: [10033] ! Unable to load application: Gem::ConflictError: Unable to activate sass-rails-5.1.0, because railties-5.1.4 conflicts with railties (>= 5.2.0) 2020-07-06T21:52:07.710267-06:00 nss-leap152 puma.ruby2.5[10033]: /usr/lib64/ruby/2.5.0/rubygems/specification.rb:2327:in raise_if_conflicts': Unable to activate sass-rails-5.1.0, because railties-5.1.4 conflicts with railties (>= 5.2.0) (Gem::ConflictError)
`

I found a simple "workaround" to fix this issue by locking the package "ruby2.5-rubygem-railties-5.2" before installing hawk.
Then only "ruby2.5-rubygem-railties-5_1" will be installed and every works fine.

I saw at least the package "ruby2.5-rubygem-sass-rails-5.1" requires "rubygem(ruby:2.5.0:railties) >= 5.2.0" and if you want to try installing it alone after locking "ruby2.5-rubygem-railties-5.2" you get a missing dependency error.
But not when try to install hawk2.

Logs/"zypper in" output:
Nothing locked: no issues for zipper but hawk-backend.service will not start

root:~ # zypper in hawk2
Loading repository data...
Reading installed packages...
Resolving package dependencies...

The following 90 NEW packages are going to be installed:
  cluster-glue corosync crmsh crmsh-scripts csync2 hawk-apiserver hawk2 libcfg6 libcmap4 libcorosync_common4 libcpg4 libglue2 libpacemaker3 libqb20 libquorum5 librsync2 libsam4 libtotem_pg5 libvotequorum8 mozilla-nss-tools pacemaker
  pacemaker-cli python3-cssselect python3-lxml python3-parallax python3-python-dateutil resource-agents ruby2.5-rubygem-actioncable-5_1 ruby2.5-rubygem-actionmailer-5_1 ruby2.5-rubygem-actionpack-5.2 ruby2.5-rubygem-actionpack-5_1
  ruby2.5-rubygem-actionview-5.2 ruby2.5-rubygem-actionview-5_1 ruby2.5-rubygem-activejob-5_1 ruby2.5-rubygem-activemodel-5_1 ruby2.5-rubygem-activerecord-5_1 ruby2.5-rubygem-activesupport-5.2 ruby2.5-rubygem-activesupport-5_1
  ruby2.5-rubygem-arel ruby2.5-rubygem-axiom-types ruby2.5-rubygem-builder ruby2.5-rubygem-bundler ruby2.5-rubygem-coercible ruby2.5-rubygem-concurrent-ruby ruby2.5-rubygem-crass ruby2.5-rubygem-descendants_tracker
  ruby2.5-rubygem-equalizer ruby2.5-rubygem-erubi ruby2.5-rubygem-ffi ruby2.5-rubygem-gettext ruby2.5-rubygem-gettext_i18n_rails ruby2.5-rubygem-gettext_i18n_rails_js ruby2.5-rubygem-globalid ruby2.5-rubygem-i18n ruby2.5-rubygem-ice_nine
  ruby2.5-rubygem-js-routes ruby2.5-rubygem-kramdown ruby2.5-rubygem-locale ruby2.5-rubygem-loofah ruby2.5-rubygem-mail ruby2.5-rubygem-method_source ruby2.5-rubygem-mini_mime ruby2.5-rubygem-mini_portile2 ruby2.5-rubygem-nio4r
  ruby2.5-rubygem-nokogiri ruby2.5-rubygem-po_to_json ruby2.5-rubygem-puma ruby2.5-rubygem-rack ruby2.5-rubygem-rack-test-0_6 ruby2.5-rubygem-rails-5_1 ruby2.5-rubygem-rails-dom-testing ruby2.5-rubygem-rails-html-sanitizer
  **ruby2.5-rubygem-railties-5.2 ruby2.5-rubygem-railties-5_1** ruby2.5-rubygem-rb-fsevent ruby2.5-rubygem-rb-inotify ruby2.5-rubygem-sass ruby2.5-rubygem-sass-listen **ruby2.5-rubygem-sass-rails-5.1** ruby2.5-rubygem-sprockets
  ruby2.5-rubygem-sprockets-rails ruby2.5-rubygem-text ruby2.5-rubygem-thor ruby2.5-rubygem-thread_safe ruby2.5-rubygem-tilt ruby2.5-rubygem-tzinfo-1.2 ruby2.5-rubygem-virtus ruby2.5-rubygem-websocket-driver-0_6
  ruby2.5-rubygem-websocket-extensions sqlite3

90 new packages to install.
Overall download size: 39.3 MiB. Already cached: 0 B. After the operation, additional 90.4 MiB will be used.
Continue? [y/n/v/...? shows all options] (y): n

Locking "ruby2.5-rubygem-railties-5.2":
ruby2.5-rubygem-sass-rails-5.1 cannot be installed ...

root:~ # zypper al ruby2.5-rubygem-railties-5.2
Specified lock has been successfully added.
root:~ # zypper in ruby2.5-rubygem-sass-rails-5.1
Loading repository data...
Reading installed packages...
Resolving package dependencies...

Problem: ruby2.5-rubygem-sass-rails-5.1-5.1.0-lp152.1.1.x86_64 requires rubygem(ruby:2.5.0:railties) >= 5.2.0, but this requirement cannot be provided
  not installable providers: ruby2.5-rubygem-railties-5.2-5.2.3-lp152.2.3.x86_64[susemanager:opensuse_leap15_2-x86_64]
 Solution 1: remove lock to allow installation of ruby2.5-rubygem-railties-5.2-5.2.3-lp152.2.3.x86_64[susemanager:opensuse_leap15_2-x86_64]
 Solution 2: do not install ruby2.5-rubygem-sass-rails-5.1-5.1.0-lp152.1.1.x86_64
 Solution 3: break ruby2.5-rubygem-sass-rails-5.1-5.1.0-lp152.1.1.x86_64 by ignoring some of its dependencies

Choose from above solutions by number or cancel [1/2/3/c/d/?] (c):

... but hawk2 can. And is running fine as it should:

root:~ # zypper in hawk2
Loading repository data...
Reading installed packages...
Resolving package dependencies...

The following 86 NEW packages are going to be installed:
  cluster-glue corosync crmsh crmsh-scripts csync2 hawk-apiserver hawk2 libcfg6 libcmap4 libcorosync_common4 libcpg4 libglue2 libpacemaker3 libqb20 libquorum5 librsync2 libsam4 libtotem_pg5 libvotequorum8 mozilla-nss-tools pacemaker
  pacemaker-cli python3-cssselect python3-lxml python3-parallax python3-python-dateutil resource-agents ruby2.5-rubygem-actioncable-5_1 ruby2.5-rubygem-actionmailer-5_1 ruby2.5-rubygem-actionpack-5_1 ruby2.5-rubygem-actionview-5_1
  ruby2.5-rubygem-activejob-5_1 ruby2.5-rubygem-activemodel-5_1 ruby2.5-rubygem-activerecord-5_1 ruby2.5-rubygem-activesupport-5_1 ruby2.5-rubygem-arel ruby2.5-rubygem-axiom-types ruby2.5-rubygem-builder ruby2.5-rubygem-bundler
  ruby2.5-rubygem-coercible ruby2.5-rubygem-concurrent-ruby ruby2.5-rubygem-crass ruby2.5-rubygem-descendants_tracker ruby2.5-rubygem-equalizer ruby2.5-rubygem-erubi ruby2.5-rubygem-ffi ruby2.5-rubygem-gettext
  ruby2.5-rubygem-gettext_i18n_rails ruby2.5-rubygem-gettext_i18n_rails_js ruby2.5-rubygem-globalid ruby2.5-rubygem-i18n ruby2.5-rubygem-ice_nine ruby2.5-rubygem-js-routes ruby2.5-rubygem-kramdown ruby2.5-rubygem-locale
  ruby2.5-rubygem-loofah ruby2.5-rubygem-mail ruby2.5-rubygem-method_source ruby2.5-rubygem-mini_mime ruby2.5-rubygem-mini_portile2 ruby2.5-rubygem-nio4r ruby2.5-rubygem-nokogiri ruby2.5-rubygem-po_to_json ruby2.5-rubygem-puma
  ruby2.5-rubygem-rack ruby2.5-rubygem-rack-test-0_6 ruby2.5-rubygem-rails-5_1 ruby2.5-rubygem-rails-dom-testing ruby2.5-rubygem-rails-html-sanitizer ruby2.5-rubygem-railties-5_1 ruby2.5-rubygem-rb-fsevent ruby2.5-rubygem-rb-inotify
  ruby2.5-rubygem-sass ruby2.5-rubygem-sass-listen ruby2.5-rubygem-sass-rails ruby2.5-rubygem-sprockets ruby2.5-rubygem-sprockets-rails ruby2.5-rubygem-text ruby2.5-rubygem-thor ruby2.5-rubygem-thread_safe ruby2.5-rubygem-tilt
  ruby2.5-rubygem-tzinfo-1.2 ruby2.5-rubygem-virtus ruby2.5-rubygem-websocket-driver-0_6 ruby2.5-rubygem-websocket-extensions sqlite3

86 new packages to install.
Overall download size: 37.5 MiB. Already cached: 0 B. After the operation, additional 85.7 MiB will be used.
Continue? [y/n/v/...? shows all options] (y):

==============
As I saw that there is already an issue regarding "sass-rails" I thought this might help, sorting these rails dependencies out :)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions