繁体   English   中英

fiware在ubuntu服务器16.04上安装spagobi

[英]fiware install spagobi on ubuntu server 16.04

尝试在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?

由于该主厨配方是考虑到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

希望这可以帮助

戴维德

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM