CNS Server installation - Ubuntu 14.04.1 64bit

Hi Guys,

I seem to have a permissions error when installing

Installing

0% ______________ 50% ______________ 100%

########################################Error copying file from /home/cnsserver/httpd.conf to /home/cnsserver/stack/apache2/conf/httpd.conf

:Destination not writable

Abort, Retry, Ignore ? [A/r/i]

 

If I create the directory as root in another terminal it writes the file and continues but eventually fails

 

Any ideas? If it is failing to create a directory I assume it is running as a differnet user?

 

Below is what happens if i create the directories manually when it asks to retry ..

 

Installing

0% ______________ 50% ______________ 100%

########################################Error copying file from /opt/cnsserver/httpd.conf to /opt/cnsserver/stack/apache2/conf/httpd.conf

:Destination not writable

Abort, Retry, Ignore ? [A/r/i]r

 

Error copying file from /opt/cnsserver/httpd.conf to /opt/cnsserver/stack/apache2/conf/httpd.conf

:Destination not writable

Abort, Retry, Ignore ? [A/r/i]r

 

Error copying file from /opt/cnsserver/httpd.conf to /opt/cnsserver/stack/apache2/conf/httpd.conf

:Destination not writable

Abort, Retry, Ignore ? [A/r/i]r

 

Warning: Problem running post-install step. Installation may not complete

correctly

Error running service cnspostgresql restart: cnspostgresql: unrecognized

service

Press [Enter] to continue:

Warning: Problem running post-install step. Installation may not complete

correctly

Error running /opt/cnsserver/scripts/cnss_folder_permission.sh : chmod: cannot

access ‘../stack/php’: No such file or directory

Press [Enter] to continue:

#

Ok, I was able to install version 1.2 and got it working without an issue. i then tried to update it to the latest version and it said I had to install the previous version first.

So I tried ...

Version 1.3.1 installed over the top without any reported errors but the website was now not available

Tried to start the web service and got an error ..

root@authsrvr:/tmp# /etc/init.d/cnsapache start

httpd: Syntax error on line 125 of /opt/cnsserver/stack/apache2/conf/httpd.conf: Cannot load /opt/cnsserver/stack/apache2/modules/libphp5.so into server: libsmime3.so: cannot open shared object file: No such file or directory

/opt/cnsserver/stack/apache2/scripts/ctl.sh : httpd could not be started

root@authsrvr:/tmp#

I have now upgraded the server to the latest version. I can not start the HTTP server

httpd: Syntax error on line 125 of /opt/cnsserver/stack/apache2/conf/httpd.conf: Cannot load /opt/cnsserver/stack/apache2/modules/libphp5.so into server: libsmime3.so: cannot open shared object file: No such file or directory

/opt/cnsserver/stack/apache2/scripts/ctl.sh : httpd could not be started

 

find / | grep libsmime3.so

 

returns 

/opt/cnsserver/linux/apache2/lib/ext_lib/libsmime3.so 

 

Is the path wrong? Can I change the path somewhere?

 

The CNS Server is running

The CNS Postgresql server is running

Seeing that I'm alone at the moment I'll continue ... :)

After some searching I found another post indicating the I could influence the library path so I added the path in the startup script

edit  /etc/init.d/cnsapache

was 

export LD_LIBRARY_PATH="/opt/cnsserver/stack/common/lib:/opt/cnsserver/stack/apache2/lib:/opt/cnsserver/stack/postgresql/lib/:/opt/cnsserver/stack/sqlite/lib/:$LD_LIBRARY_PATH"

Added the bold txt

export LD_LIBRARY_PATH="/opt/cnsserver/linux/apache2/lib/ext_lib/:/opt/cnsserver/stack/common/lib:/opt/cnsserver/stack/apache2/lib:/opt/cnsserver/stack/postgresql/lib/:/opt/cnsserver/stack/sqlite/lib/:$LD_LIBRARY_PATH"

 

That fixed the library issue. Now I am getting a GLIBC error ....

 

/bin/sh: /opt/cnsserver/linux/apache2/lib/ext_lib/libc.so.6: version `GLIBC_2.14' not found (required by /bin/sh)

Ok, added  /lib/x86_64-linux-gnu/ to the path as well so this is what it looks like

edit /etc/init.d/cnsapache

export LD_LIBRARY_PATH="/lib/x86_64-linux-gnu/:/opt/cnsserver/linux/apache2/lib/ext_lib/:/opt/cnsserver/stack/common/lib:/opt/cnsserver/stack/apache2/lib:/opt/cnsserver/stack/postgresql/lib/:/opt/cnsserver/stack/sqlite/lib/:$LD_LIBRARY_PATH"

 

Save

 

service cnsapache start

/opt/cnsserver/stack/apache2/scripts/ctl.sh : httpd (pid ) started

 

All done, can log into web gui now

Hi,

We have seen such problem with minimal version of Ubuntu 14.04. Please check that your Ubuntu 14.04 version is minimal or full. CNS don't support minimal version, so you have to move on full version. Please let us know if you face any issue with Ybuntu 14.04 full version.

Regards,

Piyush

Hi

i have same issue, i fix cnsapache, now web working

but i have  error  ''Connection to database is lost. Please try to login again.''

[root@cns ~]# service cnsserver status
cnsserver dead but subsys locked

any ideas ?

Hi

i solved this, file database.json must be encrypted, 

now i have working CNS, i run discovery and i see devices in CNS server but upgrade SW  failed

i see only this log in upgrader.log

2016-04-28 10:04:18,602 ERROR UpgradeMonitorThread.run(): 00:04:56:C5:52:F3: Failed to upgrade device to 2.6.1

it this privileges OK ?

[root@cns packages]# ls -alh
total 14M
drwxrwxrwx. 2 root root 81 Apr 28 09:27 .
drwxrwxrwx. 3 root root 44 Apr 28 09:27 ..
-rw-r--r--. 1 daemon daemon 6.8M Apr 28 09:27 ePMP-GPS_Synced-v2.6.1.tar.gz
-rw-r--r--. 1 daemon daemon 6.4M Apr 28 09:27 ePMP-NonGPS_Synced-v2.6.1.tar.gz

Hi,

Please provide CNS Server upgrade service log. Go to Admin tab -> Logs and check upgrade.log. 

Are you able to upgrade device using device web page?

Regards,

Piyush

Hi

i see only this log

2016-04-28 10:04:18,602 ERROR UpgradeMonitorThread.run(): 00:04:56:C5:52:F3: Failed to upgrade device to 2.6.1
2016-04-28 10:16:54,314 ERROR UpgradeMonitorThread.run(): 00:04:56:C5:52:F3: Failed to upgrade device to 2.6.1
2016-04-28 10:25:17,568 ERROR UpgradeMonitorThread.run(): 00:04:56:C5:52:F3: Failed to upgrade device to 2.6.1

yes i can upgrade via web interface, 

and i can ping device from CNS server, but upgrade starts and in few second ha failed .....

Hi,

Sorry for late confirmation, which CNS Server version you are using?

If it is CNS Server 1.3.2 then please check, your device is in NAT enable mode or not. [Go to CNS Server Configuration tab, Select Device and Click on 'View Configuration'. Check value for 'Auxiliary Netfilter NAT SIP Helper modules' in device configuration .]

If it is enable then please disable it, then reboot your device and try to upgrade device.

If it is disable then please check your HTTP Mode in CNS Server Admin tab. This need to be  same as you have selected during CNS Server installation. If not then try after changing its value and restart your CNS Server.

Still you face same problem then please let us know, we will arrange for the webex session to resolve it.

Regards,

Piyush