Installation in ubuntu 16.04.1 or 18.06

Good morning, dear, however, it is not that I will be doing wrong, I follow the guide Step by step, but it falls when I command to install npm install -g genieacs
This is the guide you used https://github.com/genieacs/genieacs/wiki/Installation-Guide-Ubuntu-16.04 and

What’s the error message you’re getting?

@leonardopc1991 try

npm i genieacs --unsafe-perm -g

It is not a solution for me. I get a lot of warning when I install libxlmjs 0.18.8 (mainly similar to this: …/vendor/libxml/xmlschemas.c:24288:3: warning: too many arguments for format [-Wformat-extra-args] value, length, type, facetLink->facet, NULL, NULL, NULL);

If I install the libxmljs without version (in this case the recent libxmljs - 0.19.5 - will be installed) I do not get warnings, but when I install the genieacs, I get a lot of errors (gyp ERR!, node-pre-gyp ERR!, npm ERR!).

If I install nodejs 8.x (=8.16.0) I get a lot of errors during installation of libxmlls 0.18.8, similar to genieacs installation in previous case.

If I install nodejs 8.x (=8.16.0) and libxmljs without version (=0.19.5) I get a lot of errors similar to in previous case.

I have not found so installation method for genieacs so far, which would be good for a clean installation of Ubuntu 16.04.6 .

It seems that the preferred way is now docker, at least on debian/Ubuntu. I got that reply to more or less the same question you guys have, and it makes sense as long as things are the way they are. I’ve successfully installed it this way, but it needs some tweaking. Unfortunately there’s no Centos version yet, but I’m working on that…
Instructions are here:


It does, however, mandate some knowledge of the concept of docker.

@holloo

I will try to help you, there is how i installed genieacs 1.1.3 on ubuntu 18 mini

Dependency ( it’s also for GUI)

apt install git wget nodejs npm mongodb python libxml2-dev build-essential gnupg ruby-bundler ruby-dev libffi-dev libpq-dev libsqlite3-dev tmux -y

another dependency

npm i later
npm i seedrandom
npm i redis
npm i bindings
npm i nan
npm i node-pre-gyp

With this conf i can correctly install libxmljs

npm config set user 0
npm config set unsafe-perm true
npm i libxmljs

and then

npm i genieacs --unsafe-perm -g

Hi Josef,
Thank you for your help. Since then I succeeded in install GenieACS 1.1.3 . I had to install ruby-dev and libxml2-dev as well. Moreover I modified section of dependencies in file package.json: “libxmljs”: “^0.18.8” --> “libxmljs”: “^0.19.5” . After these I did not get any error or warning during installation

For anyone trying to install onto Ubuntu Sever 18.04 I have created a crude script that works for me, I had the script installing Webmin for me too, but have these commented out.

 apt-get update 
apt-get upgrade 
#apt-get install perl libnet-ssleay-perl openssl libauthen-pam-perl libpam-runtime libio-pty-perl apt-show-versions python
#cd /usr/src 
#wget http://prdownloads.sourceforge.net/webadmin/webmin_1.910_all.deb
#dpkg --install webmin_1.910_all.deb 
apt-get install redis-server mongodb npm build-essential ruby-bundler ruby-dev libsqlite3-dev 
cd ~ 
curl -sL https://deb.nodesource.com/setup_10.x -o nodesource_setup.sh
chmod +x nodesource_setup.sh
./nodesource_setup.sh 
curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - 
echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list 
apt-get update && apt-get install yarn
apt-get install nodejs 
npm install libxmljs --unsafe-perm 
npm install -g genieacs --unsafe-perm 
git clone https://github.com/zaidka/genieacs-gui 
apt-get install build-essential patch ruby-dev zlib1g-dev liblzma-dev
cd genieacs-gui 
bundle
cp config/summary_parameters-sample.yml config/summary_parameters.yml 
cp config/index_parameters-sample.yml config/index_parameters.yml 
cp config/parameter_renderers-sample.yml config/parameter_renderers.yml 
cp config/parameters_edit-sample.yml config/parameters_edit.yml 
cp config/roles-sample.yml config/roles.yml 
cp config/users-sample.yml config/users.yml 
cp config/graphs-sample.json.erb config/graphs.json.erb
cd db/migrate
sudo sed -i '1!b;s/$/\[4.2]/g' *.rb
cd ~/genieacs-gui
cat << EOF > ./genieacs-start.sh
#!/bin/sh
if tmux has-session -t 'genieacs'; then
  echo "GenieACS is already running."
  echo "To stop it use: ./genieacs-stop.sh"
  echo "To attach to it use: tmux attach -t genieacs"
else
  tmux new-session -s 'genieacs' -d
  tmux send-keys 'genieacs-cwmp' 'C-m'
  tmux split-window
  tmux send-keys 'genieacs-nbi' 'C-m'
  tmux split-window
  tmux send-keys 'genieacs-fs' 'C-m'
  tmux split-window
  tmux send-keys 'cd genieacs-gui' 'C-m'
  tmux send-keys 'rails server -b 0.0.0.0' 'C-m'
  tmux select-layout tiled 2>/dev/null
  tmux rename-window 'GenieACS'

  echo "GenieACS has been started in tmux session 'geneiacs'"
  echo "To attach to session, use: tmux attach -t genieacs"
  echo "To switch between panes use Ctrl+B-ArrowKey"
  echo "To deattach, press Ctrl+B-D"
  echo "To stop GenieACS, use: ./genieacs-stop.sh"
fi
EOF

cat << EOF > ./genieacs-stop.sh
#!/bin/sh
if tmux has-session -t 'genieacs' 2>/dev/null; then
  tmux kill-session -t genieacs 2>/dev/null
  echo "GenieACS has been stopped."
else
  echo "GenieACS is not running!"
fi
EOF

chmod +x genieacs-start.sh genieacs-stop.sh

genieacs-start.sh & genieacs-stop.sh are stored in /~ the script should be sudo’d to run without error.

1 Like

How are you?, this message error.
image

If you check it now, it supports CentOS on 1.1.3: https://github.com/DrumSergio/GenieACS-Docker
And also I have deployed successfully version 1.2.0-beta of GenieACS (via GitHub, not npm/yarn). It also supports Debian, CentOS and QNAP’s QTS (I have manually tested them). You can select which version to install on your server, both are available in the repository.

It also could support Ubuntu very easily, it’s just installing docker and docker-compose in your server, then just doing a docker-compose up -d would do!

Cheers :slight_smile:

1 Like

Hi
Gittela told: “It seems that the preferred way is now docker…”. That is exactly what I’m trying to conclude today.
How did you get this conclusion?

I’m in a project that will use GenieACS and I have to install it on Ubuntu 16.04 and 18.04. And I must document all the installation. My manager asked me to decide to install GenieACS with or without Docker. So, I have to figure out what is the best choice.

Can you point me some source of documentation/discussion/blog that discuss about installing GenieACS on Docker and why do it? If I could find some comparison about these 2 choices, it would be great.

Any hint will be very helpful!

Best regards.

I’m not really sure what’s the best way right now. The old version (not the latest which is in beta) is better under docker as it requires a lot of old stuff and it’s a pain to get it to install correctly. The new beta, however, installs like a charm with the given instructions. I’ve decided to go the traditional way for now as I’m not that good with docker, maybe some of the docker-geeks can weigh in on pros and cons(!).

Not sure if you got any wiser with this… :slight_smile:

Hi. Thank you very much.
Today I’m studding how to run GenieACS into a docker container. For my project, using a container could facilitate the installation process of all our software, including GenieACS, in customer’s machines. So, I will try it too. In DockerHub there are 55 containers already built to run GenieACS. Maybe it will help me. I have selected four of it and now I’m analyzing it. Let’s see if I build my container with GenieACS on my own …

Best regards.