-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
undefined method `mappings' for Tilt:Module #48
Comments
same for me |
Sounds like a Ruby version issue, in relation with Sinatra. Google does not make me happy, maybe the gem install pulls in a "too new" version or something like that. |
So you suggest to downgrade ruby version? |
To be honest, I think this is a Dashing issue itself, nothing directly related to this dashboard. I don't have the time to reproduce the issue, so I'd suggest looking for possible influences. As remarked above, RHEL7 uses a different version of Ruby and presumingly gems which are pulled with You can test-drive Dashing inside the icinga-vagrant boxes, there's CentOS 7 inside. Compare the pulled gems and versions with your Ubuntu setup, and dig into possible Google results from this error. Maybe you need to pin a specific gem version, or use a different Ruby version. |
RHEL7 (or centos, which I've checked now) ships ruby 2.0.0 |
I've installed RVM and used ruby 1.9.3 |
I'm wondering why you use dashing 1.3.2 ... I've seen dashing 1.3.7 on rubygems.
According to their release page, 1.3.2 is more than 4 years old. |
Hehe, first entry on google. |
it gets downloaded from bundler when I run bundle inside dashing directory This is what gets installed running bundle |
ye bundle installs 1.3.2:
Edit: I edited by hand Gemfile.lock to add 1.3.7, then ran bundle update dashing and it updated, but same error. |
Hm, so "something" where the dashing gem has a dependency onto, is locking its version where bundle can only install 1.3.2 and not a newer version. Would be interesting to see which other gems you've installed on Ubuntu, preventing an upgrade. |
Ah nevermind it doesnt updated because: |
finally fixed. @lcorsini Delete Gemfile.lock. And run bundle and then ./restart-dashing |
Interesting, thanks. Let me know whether this should be included upstream in the Gemfile file. Note: Should be tested with CentOS7 inside the Vagrant box too. @bodsch any other thoughts? |
As I found in another issue, they suggest to add versions to Gemfile. |
you find it out, no ruby issue. :) 1.3.7 is the latest dashing release: https://rubygems.org/gems/dashing and should be work. i use in my projects smashing (a fork of dashing) i think, it is better, to define a version into the Gemfile:
|
|
Ok with explicit version of dashing in Gemfile it works correctly |
As said, I think that bundler evaluates all dependencies and comes to the conclusion that the lowest version satisfies the needs. I don't know all the Ruby internals and package handling, especially not with bundler. Just a guess from that current problem. The changes in smashing compared to current dashing master are nearly zero, except for tests and docs. The hassle with upgrading and renaming is way too much imho, unless there are real improvements, such as full Windows support. Btw - dashing is a common name you'll reference with a dashboard. smashing - I would not relate this to a dashboard if I were new. Going the route of leaving the project name intact, but requiring smashing for dashing - I will not take the effort to answer all community questions on that. TL;DR - I think dashing works quite well in its current form. It definitely is not something one can maintain without some programming knowledge, even if it looks super easy. The entry of creating your own dashboards is super hard. Which is why I wrote development docs. |
i'm absolut conform with @dnsmichi. it doesn't matter which packet you use. |
fixes #48 Also fixes the new problem on CentOS/RHEL 7 with a new release of rack-test now requiring Ruby 2.2.2. This is a recursive dependency of rack-protection pulled from sinatra pulled from dashing. rack-protection requires rack-test >= 0. This fails: ``` Gem::InstallError: rack-test requires Ruby version >= 2.2.2. ```
Found another problem on RHEL7 with dashing -> sinatra -> rack-protection -> rack-test -> Ruby >= 2.2.2 - will fix both. |
I've installed dashing-icinga2 today, on an ubuntu 16.04 openvz
I've followed install instructions, but when I try to open the dashboard I get this sinatra error page:
NoMethodError at /icinga2
undefined method `mappings' for Tilt:Module
file: dashing.rb location: tilt_html_engines line: 151
Previously I've installed this on a RedHat 7 machine without issues, so I don't know if is an ubuntu issue (and sadly I don't have access to the rh7 machine anymore)
Dashing version (
gem list --local dashing
):dashing (1.3.2)
Ruby version (
ruby -V
):ruby 2.3.1p112 (2016-04-26) [x86_64-linux-gnu]
Version of this project (tarball name, tag name or
git show -1
):commit ccb6e03
Merge: 14bc597 c800bfd
Author: Michael Friedrich michael.friedrich@icinga.com
Date: Fri Oct 6 11:15:28 2017 +0200
Merge pull request Render Undhandled Problems green if count is zero #45 from Icinga/feature/simplemon-green-if-zero
Render Undhandled Problems green if count is zero
Modifications to this project, if any (
git diff
):Operating System and version:
Ubuntu 16.04
Linux watcher 2.6.32-042stab117.14 Update README.md #1 SMP Tue Aug 30 17:12:57 MSK 2016 x86_64 x86_64 x86_64 GNU/Linux
Client browser and version:
Chrome 61
The text was updated successfully, but these errors were encountered: