Comments (13)
Did you run bin/setup first? Did that fail in some way? That script should copy over rearview.rb into the initializers directory. You can also copy over the configuration by running the following from the root directory:
bin/rails generate rearview:install
from rearview.
closing -- this was caused by a failure in the setup script you experienced in issue #17
from rearview.
Hi - same issue, i can't locate rearview.rb file. It is missing. I took code from the latest release. Below is part of the log snippet after executing "./bin/setup" file. Any advise, please?
Updating files in vendor/cache
Your bundle is complete!
Use bundle show [gemname]
to see where a bundled gem is installed.
Setting up sandbox...
Successfully installed bundler-1.6.1
1 gem installed
Using i18n 0.6.5
Using json 1.8.0
Using multi_json 1.8.1
Using bundler 1.6.1
Your bundle is complete!
Use bundle show [gemname]
to see where a bundled gem is installed.
rake aborted!
Don't know how to build task 'rearview:setup'
from rearview.
Is this the full output? Are you using Jruby?
from rearview.
Not the full output, last portion only. You rightly indicated, am missing jruby, apologies. Am just installing jruby, will check & update. Thank you.
from rearview.
I have installed jruby...
jruby 1.7.11 (1.9.3p392) 2014-02-24 86339bb on OpenJDK 64-Bit Server VM 1.6.0_20-b20 [linux-amd64]
NameError: undefined local variable or method `rsion' for main:Object (root) at -e:1
Still same issue...
Use
bundle show [gemname]
to see where a bundled gem is installed.
rake aborted!
Don't know how to build task 'rearview:setup'
(See full trace by running task with --trace)
Please advice.
from rearview.
I have also tried this...
$bin/rails generate rearview:install
/home/kodiak/rearview/rearview-v.1.2.1/config/initializers/devise.rb:3:in <top (required)>': uninitialized constant Devise (NameError) from /usr/local/lib/ruby/gems/2.1.0/gems/railties-4.0.2/lib/rails/engine.rb:609:in
block (2 levels) in class:Engine'
from /usr/local/lib/ruby/gems/2.1.0/gems/railties-4.0.2/lib/rails/engine.rb:608:in each' from /usr/local/lib/ruby/gems/2.1.0/gems/railties-4.0.2/lib/rails/engine.rb:608:in
block in class:Engine'
from /usr/local/lib/ruby/gems/2.1.0/gems/railties-4.0.2/lib/rails/initializable.rb:30:in instance_exec' from /usr/local/lib/ruby/gems/2.1.0/gems/railties-4.0.2/lib/rails/initializable.rb:30:in
run'
from /usr/local/lib/ruby/gems/2.1.0/gems/railties-4.0.2/lib/rails/initializable.rb:55:in block in run_initializers' from /usr/local/lib/ruby/2.1.0/tsort.rb:226:in
block in tsort_each'
from /usr/local/lib/ruby/2.1.0/tsort.rb:348:in block (2 levels) in each_strongly_connected_component' from /usr/local/lib/ruby/2.1.0/tsort.rb:418:in
block (2 levels) in each_strongly_connected_component_from'
from /usr/local/lib/ruby/2.1.0/tsort.rb:427:in each_strongly_connected_component_from' from /usr/local/lib/ruby/2.1.0/tsort.rb:417:in
block in each_strongly_connected_component_from'
from /usr/local/lib/ruby/gems/2.1.0/gems/railties-4.0.2/lib/rails/initializable.rb:44:in each' from /usr/local/lib/ruby/gems/2.1.0/gems/railties-4.0.2/lib/rails/initializable.rb:44:in
tsort_each_child'
from /usr/local/lib/ruby/2.1.0/tsort.rb:411:in call' from /usr/local/lib/ruby/2.1.0/tsort.rb:411:in
each_strongly_connected_component_from'
from /usr/local/lib/ruby/2.1.0/tsort.rb:347:in block in each_strongly_connected_component' from /usr/local/lib/ruby/2.1.0/tsort.rb:345:in
each'
from /usr/local/lib/ruby/2.1.0/tsort.rb:345:in call' from /usr/local/lib/ruby/2.1.0/tsort.rb:345:in
each_strongly_connected_component'
from /usr/local/lib/ruby/2.1.0/tsort.rb:224:in tsort_each' from /usr/local/lib/ruby/2.1.0/tsort.rb:205:in
tsort_each'
from /usr/local/lib/ruby/gems/2.1.0/gems/railties-4.0.2/lib/rails/initializable.rb:54:in run_initializers' from /usr/local/lib/ruby/gems/2.1.0/gems/railties-4.0.2/lib/rails/application.rb:215:in
initialize!'
from /usr/local/lib/ruby/gems/2.1.0/gems/railties-4.0.2/lib/rails/railtie/configurable.rb:30:in method_missing' from /home/kodiak/rearview/rearview-v.1.2.1/config/environment.rb:5:in
<top (required)>'
from /usr/local/lib/ruby/gems/2.1.0/gems/railties-4.0.2/lib/rails/application.rb:189:in require' from /usr/local/lib/ruby/gems/2.1.0/gems/railties-4.0.2/lib/rails/application.rb:189:in
require_environment!'
from /usr/local/lib/ruby/gems/2.1.0/gems/railties-4.0.2/lib/rails/commands.rb:44:in <top (required)>' from bin/rails:12:in
require'
from bin/rails:12:in `'
from rearview.
Can you please advise on this issue?
from rearview.
Do the following and paste all the output in your response:
$ which ruby
$ ruby -v
$ java -version
$ which gem
$ gem install bundler --no-rdoc --no-ri
$ which bundle
$ bundle install
from rearview.
Trent, I could figure out the issue & resolved to greater extent. Am currently stuck in bringing up mySQL. The only issue now is with "Unknown database 'rearview_production'"
Please see below.
[root@kodiak-SA2 rearview-1.2.0]# foreman start
file:/usr/local/rvm/rubies/jruby-1.7.5/lib/jruby.jar!/jruby/kernel19/process.rb:14 warning: unsupported spawn option: err
file:/usr/local/rvm/rubies/jruby-1.7.5/lib/jruby.jar!/jruby/kernel19/process.rb:14 warning: unsupported spawn option: out
19:37:04 web.1 | started with pid 25107
=> Booting Puma
=> Rails 4.0.2 application starting in production on http://0.0.0.0:3000
=> Run rails server -h
for more startup options
=> Ctrl-C to shutdown server
{:adapter=>"mysql", :database=>"rearview_production", :username=>"root", :password=>nil, :host=>"localhost"}
active_record/connection_adapters/mysql_adapter
Exiting
ActiveRecord::JDBCError: The driver encountered an unknown error: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown database 'rearview_production'
from rearview.
Tell me the output of this:
$ bundle exec rake RAILS_ENV=production rearview:setup
from rearview.
Looks like this works !!! I think, i should point graphite URL. Anything else to get going?
[root@kodiak-SA2 rearview-1.2.0]# bundle exec rake RAILS_ENV=production rearview:setup
{:adapter=>"mysql", :database=>"rearview_production", :username=>"root", :password=>nil, :host=>"localhost"}
active_record/connection_adapters/mysql_adapter
{:adapter=>"mysql", :database=>nil, :username=>"root", :password=>nil, :host=>"localhost"}
active_record/connection_adapters/mysql_adapter
{:adapter=>"mysql", :database=>"rearview_production", :username=>"root", :password=>nil, :host=>"localhost"}
active_record/connection_adapters/mysql_adapter
{:adapter=>"mysql", :database=>"rearview_production", :username=>"root", :password=>nil, :host=>"localhost"}
active_record/connection_adapters/mysql_adapter
== BaseSchema: migrating =====================================================
-- create_table("applications", {:force=>true})
-> 0.1010s
-- add_index("applications", ["ancestry"], {:name=>"index_applications_on_ancestry"})
-> 0.1640s
-> 0 rows
-- add_index("applications", ["user_id"], {:name=>"user_id"})
-> 0.1680s
-> 0 rows
-- create_table("job_data", {:force=>true})
-> 0.0920s
-- create_table("job_errors", {:force=>true})
-> 0.0810s
-- add_index("job_errors", ["job_id"], {:name=>"job_id"})
-> 0.1680s
-> 0 rows
-- create_table("jobs", {:force=>true})
-> 0.1160s
-- add_index("jobs", ["app_id"], {:name=>"app_id"})
-> 0.1690s
-> 0 rows
-- add_index("jobs", ["id", "name"], {:name=>"id_name_version_key", :unique=>true})
-> 0.1830s
-> 0 rows
-- add_index("jobs", ["user_id"], {:name=>"jobs_ibfk_1"})
-> 0.1830s
-> 0 rows
-- create_table("users", {:force=>true})
-> 0.1040s
-- add_index("users", ["email"], {:name=>"email", :unique=>true})
-> 0.1720s
-> 0 rows
== BaseSchema: migrated (1.7070s) ============================================
== AddIndexes: migrating =====================================================
-- add_index(:jobs, :status)
-> 0.1740s
-> 0 rows
-- add_index(:job_errors, :status)
-> 0.1760s
-> 0 rows
-- add_index(:job_data, :job_id)
-> 0.1830s
-> 0 rows
== AddIndexes: migrated (0.5350s) ============================================
{:adapter=>"mysql", :database=>"rearview_production", :username=>"root", :password=>nil, :host=>"localhost"}
active_record/connection_adapters/mysql_adapter
conflict config/initializers/rearview.rb
Overwrite /home/kodiak/rearview-1.2.0/config/initializers/rearview.rb? (enter "h" for help) [Ynaqdh] Y
force config/initializers/rearview.rb
Before running rearview you must specify a few settings manually.
Edit the following file:
config/initializers/rearview.rb
You must set config.graphite_url and config.sandbox_exec for rearview
to run properly. Most of the other settings you should be able to leave as is.
setup done
from rearview.
thanks a ton, i could bring up. Will check, if i have any other issue.
[root@kodiak-SA2 rearview-1.2.0]# foreman start
file:/usr/local/rvm/rubies/jruby-1.7.5/lib/jruby.jar!/jruby/kernel19/process.rb:14 warning: unsupported spawn option: err
file:/usr/local/rvm/rubies/jruby-1.7.5/lib/jruby.jar!/jruby/kernel19/process.rb:14 warning: unsupported spawn option: out
19:58:21 web.1 | started with pid 25494
=> Booting Puma
=> Rails 4.0.2 application starting in production on http://0.0.0.0:3000
=> Run `rails server -h` for more startup options
=> Ctrl-C to shutdown server
********************************************************************************
{:adapter=>"mysql", :database=>"rearview_production", :username=>"root", :password=>nil, :host=>"localhost"}
********
********************************************************************************
active_record/connection_adapters/mysql_adapter
********
Puma 2.7.1 starting...
* Min threads: 0, max threads: 16
* Environment: production
* Listening on tcp://0.0.0.0:3000
from rearview.
Related Issues (20)
- Consider using dredd HOT 1
- Alerts getting delivered at an interval of 60 minutes. HOT 2
- Read Only for Rearview HOT 1
- Is there a way to interact with database from the monitor scripts ? HOT 2
- How can I get count of alerts sent over a time period. HOT 3
- Default alert URI not working HOT 2
- Rearview::ResultsHandler:0x64e17c9c> firing event :error HOT 1
- Sandbox permissions on monitor scripts. HOT 6
- Bundle installed problems HOT 3
- want to debug rearview
- Interface slows browser to a crawl HOT 12
- Monitor Test Error! HOT 8
- Rearview does not allow selecting multiple series with `{...}` HOT 5
- Rearview::MonitorService crashing on startup HOT 16
- Validation Failure - graphite can not be reached. HOT 6
- Test Monitor Issue HOT 4
- "Test Monitor" throwing cannot load such file -- bundler (LoadError)
- Documentation request: Failover considerations, operating experience
- `initialize': undefined method `[]' for nil:NilClass (NoMethodError)
- Is this project dead? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rearview.