Giter Club home page Giter Club logo

Comments (8)

fireheadman avatar fireheadman commented on August 16, 2024

UPDATE: I was able to get this running using ruby2.6
disclaimer: I am by no means a ruby expert, I'm winging it the best I can.

Using Redhat Software Collections (RHSCL) channel, things are a tad different.
By all means, if anyone has a better way to do this, please guide me. I'm open ears!

I was unsuccessful in getting this to run without root (I did see the notice about not doing this as root)....

sudo su -
cd /usr/share/dashing-icinga2
source /opt/rh/rh-ruby26/enable
sudo scl enable rh-ruby26 'gem install bundler'
sudo scl enable rh-ruby26 'bundle'
cd /usr/share/dashing-icinga2/tools/systemd
sudo cp dashing-icinga2.service /usr/lib/systemd/system/
sudo vi /usr/lib/systemd/system/dashing-icinga2.service

Updated these lines for the service to stop/start/restart

ExecStart=/bin/bash -c '\
    source /opt/rh/rh-ruby26/enable ; \
    /opt/rh/rh-ruby26/root/usr/bin/dashing start -d -p 8005 --pid /var/run/thin.pid'
ExecStop=/opt/rh/rh-ruby26/root/usr/bin/dashing stop

Then daemon-reload followed by start.
Nav to http://:8005 I see it... however I have 2 panel with 404 errors??

image

**Oh, I am also running the dashing service in foreground to view any errors... not seeing any.

from dashing-icinga2.

fireheadman avatar fireheadman commented on August 16, 2024

Another UPDATE:
Edited the /usr/share/dashing-icinga2/config/icinga2.local.json file
changed the URL from "localhost" to the FQDN...

{
  "icinga2": {
    "api": {
      "host": "localhost",
      "port": 5665,
      "user": "dashing",
      "password": "dashing-password-here"
    }
  },
  "icingaweb2": {
    "url": "https://icinga01.example.com/icingaweb2"
  }
}

Also purposely messed up a host to make it throw a host issue"
Now I get this (2 login frames):

image

Also, this is the part that is confusing to me...
If I do not run as root:

[user@icinga01 dashing-icinga2 12183]$ scl enable rh-ruby26 'bundle'
Using backports 3.15.0
Following files may not be writable, so sudo is needed:
  /opt/rh/rh-ruby26/root/usr/bin
  /opt/rh/rh-ruby26/root/usr/share/gems
  /opt/rh/rh-ruby26/root/usr/share/gems/build_info
  /opt/rh/rh-ruby26/root/usr/share/gems/cache
  /opt/rh/rh-ruby26/root/usr/share/gems/doc
  /opt/rh/rh-ruby26/root/usr/share/gems/extensions
  /opt/rh/rh-ruby26/root/usr/share/gems/gems
  /opt/rh/rh-ruby26/root/usr/share/gems/specifications

And if I run as root:

[user@icingp01 dashing-icinga2 12186]$ sudo scl enable rh-ruby26 'bundle'
Don't run Bundler as root. Bundler can ask for sudo if it is needed, and installing your bundle as root will break this application for all non-root users on
this machine.

from dashing-icinga2.

fireheadman avatar fireheadman commented on August 16, 2024

Oddly enough, If I provide my creds to those 2 login windows and refresh, it looks like it should.
Seems to be persistent after the first login.

Unsure what/why is causing this behavior. I did see the post about X-Frames, that isn't even in my apache config, verified with curl -I output.

from dashing-icinga2.

dnsmichi avatar dnsmichi commented on August 16, 2024

I'm not sure why you would need Ruby from SCL. The Vagrant boxes use what's available in the base repo, and it works just fine.

from dashing-icinga2.

fireheadman avatar fireheadman commented on August 16, 2024

I'll revisit this (using standard channel ruby) in a bit and report back.

from dashing-icinga2.

mocdaniel avatar mocdaniel commented on August 16, 2024

@fireheadman Were you able to resolve this issue or is it still persistent?

from dashing-icinga2.

fireheadman avatar fireheadman commented on August 16, 2024

from dashing-icinga2.

mocdaniel avatar mocdaniel commented on August 16, 2024

I will then close this issue. iFrames seem to work with your configuration and the problem with installing the bundler gem via SCL has been documented as can be seen in #98

from dashing-icinga2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.