0

尝试在 ubuntu 16.04 服务器上安装 spagobi,其中:

curl https://raw.githubusercontent.com/SpagoBILabs/SpagoBI/master/ChefCookbooks/installation.sh 
| ssh -i <identity file> <sudo user>@<ip of machine>

在mysql步骤中,我有:

================================================================================
Error executing action `create` on resource 'mysql_service[default1]'
================================================================================

NoMethodError
-------------
undefined method `[]' for nil:NilClass

Cookbook Trace:
---------------
/home/jakala/.chef/local-mode-cache/cache/cookbooks/mysql/libraries/helpers.rb:284:in `package_name_for'
/home/jakala/.chef/local-mode-cache/cache/cookbooks/mysql/libraries/helpers.rb:325:in `server_package'
/home/jakala/.chef/local-mode-cache/cache/cookbooks/mysql/libraries/helpers.rb:336:in `server_package_name'
/home/jakala/.chef/local-mode-cache/cache/cookbooks/mysql/libraries/provider_mysql_service.rb:30:in `block in <class:MysqlService>'
Resource Declaration:
---------------------
# In /home/jakala/.chef/local-mode-cache/cache/cookbooks/spagobi/recipes/1.0.2_install.rb

 76: mysql_service 'default1' do
 77:   version '5.5'
 78:   bind_address '0.0.0.0'
 79:   port '3306'
 80:   initial_root_password 'root'
 81:   action [:create, :start]
 82: end
 83: 

Compiled Resource:
------------------
# Declared in /home/jakala/.chef/local-mode-cache/cache/cookbooks/spagobi/recipes/1.0.2_install.rb:76:in `from_file'

mysql_service("default1") do
  action [:create, :start]
  retries 0
  retry_delay 2
  default_guard_interpreter :default
  declared_type :mysql_service
  cookbook_name "spagobi"
  recipe_name "1.0.2_install"
  version "5.5"
  bind_address "0.0.0.0"
  port "3306"
  initial_root_password "root"
end


 Running handlers: [2016-06-16T06:49:41+00:00] ERROR: Running exception
 handlers Running handlers complete [2016-06-16T06:49:41+00:00] ERROR:
 Exception handlers complete Chef Client failed. 3 resources updated in
 11 seconds [2016-06-16T06:49:41+00:00] FATAL: Stacktrace dumped to
 /home/jakala/.chef/local-mode-cache/cache/chef-stacktrace.out
 [2016-06-16T06:49:41+00:00] ERROR: mysql_service[default1]
 (spagobi::1.0.2_install line 76) had an error: NoMethodError:
 undefined method `[]' for nil:NilClass [2016-06-16T06:49:42+00:00]
 FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited
unsuccessfully (exit code 1)

我认为这是因为 ubuntu 16.04 没有 mysql5.5(如文件 .chef/local-mode-cache/cache/cookbooks/spagobi/recipes/1.0.2_install.rb 在第 76-80 行中所说):

mysql_service 'default1' do
  version '5.5'
  bind_address '0.0.0.0'
  port '3306'
  initial_root_password 'root'
  action [:create, :start]
end

我尝试更改此文件,但命令:

sudo chef-client -z -o 'recipe[spagobi::1.0.2_install]'

重新启动我的更改。我还尝试添加 mysql-server5.5 存储库添加:

$ sudo add-apt-repository -y ppa:ondrej/mysql-5.5
$ sudo apt-get update
$ sudo apt-get install mysql-server

但同样的错误仍然存​​在。

任何人都可以帮助我吗?如何在 ubuntu 服务器 16.04 中安装 spagobi?

4

1 回答 1

0

由于该 Chef 配方是根据 mysql 5.5 开发的,我建议您使用另一个配方,用于 SpagoBI 演示的配方(使用 HSQLDB 文件数据库):

curl https://raw.githubusercontent.com/SpagoBILabs/SpagoBI/master/ChefCookbooks/installation.sh | ssh -i <identity file> <sudo user>@<ip of machine> 'bash /dev/stdin demo'

然后您可以修改该 SpagoBI 实例并更改数据源。有关详细信息,请参阅http://spagobi.readthedocs.io/en/latest/admin/README/index.html#installation

希望这可以帮助

戴维德

于 2016-06-21T08:52:33.740 回答