So.. As per the discussion on Github, I’ve managed to install most of the 
GenieACS software now, With dirty hacks here and there that probably breaks 
stuff.
What is the exact software I would need for installing it in it’s most stable 
shape? Do I ‘REALLY’ need to use NVM to get node 4.0.0 installed?

As it is, With version v6+ of Node, LibXMLjs seems to break. So installing it 
through a local package.json override to a specific version is a possibility.. 
Or installing like so:

#npm install node-gyp -g
#npm install [email protected] -g
#npm install bson -g
#npm install mongodb -g
#npm install genieacs -g --ignore-scripts
#cd /usr/lib/node_modules/genieacs
#npm link libxmljs
#npm link bson
#npm link mongodb
#npm install genieacs -g


This is in fact rather dirty, As the install scripts first get skipped, so I 
can link libxmljs to it’s nested modules (Rendering it away from source once 
again)


I don’t quite see a neater approach other than handling specific versions of 
node.. Does anyone have a proper resolve for this?



FYI, My full installation cycle attached that gets things to work somewhat. 
After installation I still suffer from tabs in the webinterface that are not 
working as expected (provisions for example. Error below.)

```
Pre:
#docker run -p 3000:3000 -it centos /bin/bash

In container:

#setenforce 0
#yum -y install epel-release centos-release-scl
#yum-config-manager --enable rhel-server-rhscl-7-rpms
#yum -y install make gcc gcc-c++ epel-release npm redis mongodb-server git 
zlib-devel libxml2-devel sqlite-devel sudo rh-ruby22* rh-passenger40 
rh-passenger40-ruby22 nginx16
#npm cache clean
#npm install node-gyp -g
#npm install [email protected] -g
#npm install bson -g
#npm install mongodb -g
#npm install genieacs -g --ignore-scripts
#cd /usr/lib/node_modules/genieacs
#npm link libxmljs
#npm link bson
#npm link mongodb
#npm install genieacs -g
#cd /opt
#git clone https://github.com/zaidka/genieacs-gui.git
#cd genieacs-gui
#cp config/graphs-sample.json.erb config/graphs.json.erb
#cp config/index_parameters-sample.yml config/index_parameters.yml
#cp config/summary_parameters-sample.yml config/summary_parameters.yml
#cp config/parameters_edit-sample.yml config/parameters_edit.yml
#cp config/parameter_renderers-sample.yml config/parameter_renderers.yml
#cp config/roles-sample.yml config/roles.yml
#cp config/users-sample.yml config/users.yml
#echo 'source scl_source enable rh-ruby22' > /etc/profile.d/ruby23.sh
#echo 'source scl_source enable rh-passenger40' > /etc/profile.d/passenger40.sh
#echo 'source scl_source enable httpd24' > /etc/profile.d/httpd24.sh
#echo 'source scl_source enable nginx16' > /etc/profile.d/nginx16.sh
#scl enable rh-ruby22 rh-passenger40 bash
#bin/bundle
#bin/rails db:migrate RAILS_ENV=development
#bin/rails server -b 0.0.0.0

```



And finally the error I stumble on with the tabs that simply do not work.


Started GET "/provisions" for **REDACTED** at 2017-03-08 15:22:14 +0000
Cannot render console from **REDACTED**! Allowed networks: 127.0.0.1, ::1, 
127.0.0.0/127.255.255.255
Processing by ProvisionsController#index as HTML
Completed 500 Internal Server Error in 4ms (ActiveRecord: 0.0ms)


  
JSON::ParserError (795: unexpected token at 'Not Found'):
  
app/controllers/provisions_controller.rb:24:in `find_provisions'
app/controllers/provisions_controller.rb:35:in `block in index'
app/controllers/application_controller.rb:40:in `can?'
app/controllers/provisions_controller.rb:30:in `index'
  Rendering 
/opt/rh/rh-ruby22/root/usr/local/share/gems/gems/actionpack-5.0.0/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb
 within rescues/layout
  Rendering 
/opt/rh/rh-ruby22/root/usr/local/share/gems/gems/actionpack-5.0.0/lib/action_dispatch/middleware/templates/rescues/_source.html.erb
  Rendered 
/opt/rh/rh-ruby22/root/usr/local/share/gems/gems/actionpack-5.0.0/lib/action_dispatch/middleware/templates/rescues/_source.html.erb
 (10.1ms)
  Rendering 
/opt/rh/rh-ruby22/root/usr/local/share/gems/gems/actionpack-5.0.0/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb
  Rendered 
/opt/rh/rh-ruby22/root/usr/local/share/gems/gems/actionpack-5.0.0/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb
 (1.9ms)
  Rendering 
/opt/rh/rh-ruby22/root/usr/local/share/gems/gems/actionpack-5.0.0/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb
  Rendered 
/opt/rh/rh-ruby22/root/usr/local/share/gems/gems/actionpack-5.0.0/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb
 (0.7ms)
  Rendered 
/opt/rh/rh-ruby22/root/usr/local/share/gems/gems/actionpack-5.0.0/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb
 within rescues/layout (27.5ms)


_______________________________________________
Users mailing list
[email protected]
http://lists.genieacs.com/mailman/listinfo/users

Reply via email to