在ubuntu服务器16.04上安装spagobi

时间:2016-06-16 07:09:41

标签: ubuntu spagobi

尝试在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行所示):< / p>

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?

1 个答案:

答案 0 :(得分:0)

因为考虑到mysql 5.5开发了Chef配方,我建议你使用另一个配方,一个用于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

希望这有帮助

的Davide