秦记 发表于 2016-11-21 14:53:03

Puppet之安装dashboard的问题?


# cd /usr/share/puppet-dashboard

# rake gems:refresh_specs
(in /usr/share/puppet-dashboard)
config.gem: Unpacked gem sass-3.1.2 in vendor/gems has no specification file. Run 'rake gems:refresh_specs' to fix this.
config.gem: Unpacked gem json_pure-1.7.7 in vendor/gems has no specification file. Run 'rake gems:refresh_specs' to fix this.
config.gem: Unpacked gem factory_girl-1.3.3 in vendor/gems has no specification file. Run 'rake gems:refresh_specs' to fix this.
config.gem: Unpacked gem daemons-1.0.10 in vendor/gems has no specification file. Run 'rake gems:refresh_specs' to fix this.
config.gem: Unpacked gem mocha-0.9.7 in vendor/gems has no specification file. Run 'rake gems:refresh_specs' to fix this.
config.gem: Unpacked gem haml-3.1.2 in vendor/gems has no specification file. Run 'rake gems:refresh_specs' to fix this.
config.gem: Unpacked gem thoughtbot-shoulda-2.10.2 in vendor/gems has no specification file. Run 'rake gems:refresh_specs' to fix this.
config.gem: Unpacked gem rspec-rails-1.3.4 in vendor/gems has no specification file. Run 'rake gems:refresh_specs' to fix this.
config.gem: Unpacked gem rspec-1.3.2 in vendor/gems has no specification file. Run 'rake gems:refresh_specs' to fix this.
config.gem: Unpacked gem rdoc-3.6.1 in vendor/gems has no specification file. Run 'rake gems:refresh_specs' to fix this.
config.gem: Unpacked gem rack-1.1.6 in vendor/gems has no specification file. Run 'rake gems:refresh_specs' to fix this.
config.gem: Unpacked gem will_paginate-2.3.15 in vendor/gems has no specification file. Run 'rake gems:refresh_specs' to fix this.
DEPRECATION WARNING: Rake tasks in vendor/plugins/delayed_job/tasks are deprecated. Use lib/tasks instead. (called from /usr/share/puppet-dashboard/vendor/rails/railties/lib/tasks/rails.rb:10)
Gem sass not loaded locally - writing out current spec.
Gem json_pure not loaded locally - writing out current spec.
Gem factory_girl not loaded locally - writing out current spec.
Gem daemons not loaded locally - writing out current spec.
Gem mocha not loaded locally - writing out current spec.
Gem haml not loaded locally - writing out current spec.
Gem thoughtbot-shoulda not loaded locally - writing out current spec.
Gem rspec-rails not loaded locally - writing out current spec.
Gem rspec not loaded locally - writing out current spec.
Gem rdoc not loaded locally - writing out current spec.
Gem rack not loaded locally - writing out current spec.
Gem will_paginate not loaded locally - writing out current spec.

# rake RAILS_ENV=production db:migrate
(in /usr/share/puppet-dashboard)
rake aborted!
Access denied for user 'dashboard'@'localhost' (using password: NO)

(See full trace by running task with --trace)



mysql> show processlist;
+----+------+-----------+----------------------+---------+------+-------+------------------+
| Id | User | Host      | db                   | Command | Time | State | Info             |
+----+------+-----------+----------------------+---------+------+-------+------------------+
|9 | root | localhost | dashboard_production | Query   |    0 | NULL| show processlist |
+----+------+-----------+----------------------+---------+------+-------+------------------+
1 row in set (0.00 sec)

mysql> show tables;
Empty set (0.00 sec)


#
# cat /usr/share/puppet-dashboard/config/database.ymlproduction:
database: dashboard_production
username: dashboard
password: ocean@mx
encoding: utf8
adapter: mysql

development:
database: dashboard_development
username: dashboard
password: ocean@mx
encoding: utf8
adapter: mysql

test:
database: dashboard_test
username: dashboard
password: ocean@mx
encoding: utf8
adapter: mysql
















页: [1]
查看完整版本: Puppet之安装dashboard的问题?