Err_connection_refused

Hi, I reached installation on the server, just updated VPS.

Installation took place without failures

Are you sure you want to continue installation (yes/no)? yes

Directory creation:                   OK
SQL inserts:                          OK
Asqatasun config files creation:      OK
Asqatasun webapp creation:            OK
Firefox Profile Files creation:       OK
Asqatasun webapp configuration:       OK
Asqatasun admin creation:             OK
Asqatasun contract creation:          OK
Tomcat configuration:                 OK

Well done, your Asqatasun is installed !
Tomcat needs to be restarted (e.g. "sudo service tomcat7 restart", take a coffee while it restarts :) )

Well except Java. Errors are described below, and too I will attach the response about versions.

* update-java-alternatives --set java-1.7.0-openjdk-amd64
* update-alternatives: error: no alternatives for appletviewer
* update-alternatives: error: no alternatives for extcheck
* update-alternatives: error: no alternatives for idlj
* update-alternatives: error: no alternatives for jar
* update-alternatives: error: no alternatives for jarsigner
* update-alternatives: error: no alternatives for javac
* update-alternatives: error: no alternatives for javadoc
* update-alternatives: error: no alternatives for javah
* update-alternatives: error: no alternatives for javap
* update-alternatives: error: no alternatives for jcmd
* update-alternatives: error: no alternatives for jconsole
* update-alternatives: error: no alternatives for jdb
* update-alternatives: error: no alternatives for jhat
* update-alternatives: error: no alternatives for jinfo
* update-alternatives: error: no alternatives for jmap
* update-alternatives: error: no alternatives for jps
* update-alternatives: error: no alternatives for jrunscript
* update-alternatives: error: no alternatives for jsadebugd
* update-alternatives: error: no alternatives for jstack
* update-alternatives: error: no alternatives for jstat
* update-alternatives: error: no alternatives for jstatd
* update-alternatives: error: no alternatives for mozilla-javaplugin.so
* update-alternatives: error: no alternatives for native2ascii
* update-alternatives: error: no alternatives for rmic
* update-alternatives: error: no alternatives for schemagen
* update-alternatives: error: no alternatives for serialver
* update-alternatives: error: no alternatives for wsgen
* update-alternatives: error: no alternatives for wsimport
* update-alternatives: error: no alternatives for xjc
* update-java-alternatives: jdk alternative does not exist: /usr/lib/jvm/java-7-openjdk-amd64/bin/appletviewer
* update-java-alternatives: jdk alternative does not exist: /usr/lib/jvm/java-7-openjdk-amd64/bin/extcheck
* update-java-alternatives: jdk alternative does not exist: /usr/lib/jvm/java-7-openjdk-amd64/bin/idlj
* update-java-alternatives: jdk alternative does not exist: /usr/lib/jvm/java-7-openjdk-amd64/bin/jarsigner
* update-java-alternatives: jdk alternative does not exist: /usr/lib/jvm/java-7-openjdk-amd64/bin/jar
* update-java-alternatives: jdk alternative does not exist: /usr/lib/jvm/java-7-openjdk-amd64/bin/javac
* update-java-alternatives: jdk alternative does not exist: /usr/lib/jvm/java-7-openjdk-amd64/bin/javadoc
* update-java-alternatives: jdk alternative does not exist: /usr/lib/jvm/java-7-openjdk-amd64/bin/javah
* update-java-alternatives: jdk alternative does not exist: /usr/lib/jvm/java-7-openjdk-amd64/bin/javap
* update-java-alternatives: jdk alternative does not exist: /usr/lib/jvm/java-7-openjdk-amd64/bin/jcmd
* update-java-alternatives: jdk alternative does not exist: /usr/lib/jvm/java-7-openjdk-amd64/bin/jconsole
* update-java-alternatives: jdk alternative does not exist: /usr/lib/jvm/java-7-openjdk-amd64/bin/jdb
* update-java-alternatives: jdk alternative does not exist: /usr/lib/jvm/java-7-openjdk-amd64/bin/jhat
* update-java-alternatives: jdk alternative does not exist: /usr/lib/jvm/java-7-openjdk-amd64/bin/jinfo
* update-java-alternatives: jdk alternative does not exist: /usr/lib/jvm/java-7-openjdk-amd64/bin/jmap
* update-java-alternatives: jdk alternative does not exist: /usr/lib/jvm/java-7-openjdk-amd64/bin/jps
* update-java-alternatives: jdk alternative does not exist: /usr/lib/jvm/java-7-openjdk-amd64/bin/jrunscript
* update-java-alternatives: jdk alternative does not exist: /usr/lib/jvm/java-7-openjdk-amd64/bin/jsadebugd
* update-java-alternatives: jdk alternative does not exist: /usr/lib/jvm/java-7-openjdk-amd64/bin/jstack
* update-java-alternatives: jdk alternative does not exist: /usr/lib/jvm/java-7-openjdk-amd64/bin/jstatd
* update-java-alternatives: jdk alternative does not exist: /usr/lib/jvm/java-7-openjdk-amd64/bin/jstat
* update-java-alternatives: jdk alternative does not exist: /usr/lib/jvm/java-7-openjdk-amd64/bin/native2ascii
* update-java-alternatives: jdk alternative does not exist: /usr/lib/jvm/java-7-openjdk-amd64/bin/rmic
* update-java-alternatives: jdk alternative does not exist: /usr/lib/jvm/java-7-openjdk-amd64/bin/schemagen
* update-java-alternatives: jdk alternative does not exist: /usr/lib/jvm/java-7-openjdk-amd64/bin/serialver
* update-java-alternatives: jdk alternative does not exist: /usr/lib/jvm/java-7-openjdk-amd64/bin/wsgen
* update-java-alternatives: jdk alternative does not exist: /usr/lib/jvm/java-7-openjdk-amd64/bin/wsimport
* update-java-alternatives: jdk alternative does not exist: /usr/lib/jvm/java-7-openjdk-amd64/bin/xjc
* update-java-alternatives: plugin alternative does not exist: /usr/lib/jvm/java-7-openjdk-amd64/jre/lib/amd64/IcedTeaPlugin.so

And answer - dpkg -l gcj sun-java openjdk

Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                                                          Version                             Architecture                        Description
+++-=============================================================-===================================-===================================-================================================================================================================================
un  gcj                                                           <none>                                                                  (no description available)
un  gcj-4.4-base                                                  <none>                                                                  (no description available)
un  gcj-4.6-base                                                  <none>                                                                  (no description available)
un  icedtea-gcjwebplugin                                          <none>                                                                  (no description available)
un  libecj-java-gcj                                               <none>                                                                  (no description available)
un  openjdk-6-jre-headless                                        <none>                                                                  (no description available)
ii  openjdk-7-jre:amd64                                           7u91-2.6.3-1~deb7u1                 amd64                               OpenJDK Java runtime, using Hotspot JIT
ii  openjdk-7-jre-headless:amd64                                  7u91-2.6.3-1~deb7u1                 amd64                               OpenJDK Java runtime, using Hotspot JIT (headless)
un  openjdk-7-jre-lib                                             <none>                                                                  (no description available)
un  sun-java6-fonts                                               <none>                                                                  (no description available)

But when opening, give out ERR_CONNECTION_REFUSED - http://client.mp-cis.com:8082/asqatasun/
What log need to be viewed, I am a beginner in programming and administration of servers, therefore many thanks for any help.

UPD - Find log, but not see error.

24-01-2016 10:40:56:021 0    INFO  com.mchange.v2.log.MLog  - MLog clients using log4j logging.
24-01-2016 10:40:56:131 110  INFO  com.mchange.v2.c3p0.C3P0Registry  - Initializing c3p0-0.9.2.1 [built 20-March-2013 10:47:27 +0000; debug? true; trace: 10]
24-01-2016 10:40:58:046 2025 INFO  com.mchange.v2.c3p0.impl.AbstractPoolBackedDataSource  - Initializing c3p0 pool... com.mchange.v2.c3p0.ComboPooledDataSource [ acquireIncrement -> 10, acquireRetryAttempts -> 30, acquireRetryDelay -> 1000, autoCommitOnClose -> false, $
24-01-2016 10:41:13:302 17281 INFO  org.springframework.web.servlet.DispatcherServlet  - FrameworkServlet 'tgol-web-app': initialization started
24-01-2016 10:41:25:509 29488 INFO  org.springframework.web.servlet.DispatcherServlet  - FrameworkServlet 'tgol-web-app': initialization completed in 12207 ms

I talked to technical support of a hosting, told that from server side problems aren’t present. All required modules are set, but still a log the empty. Any errors it isn’t fixed.

try delete, but script not want work.
I use ./unintall --purge, and nothing :confounded:

I didn’t find the solution.

ping @mfaure @koj for help

Hi,

Did you find any solution?

If not, you may try to use the 8080 port instead of 8280.

Regarding the logs, your installation seems to be OK.

I haven’t seen the content of the uninstall script. How do you know it doesn’t work?

Regards

Koj

facepalm i find how delete… need type -conf-dir /etc/asqatasun/ --purge
Now i try install on 8080 port.

And nothing new.

Are you sure you want to continue installation (yes/no)? yes

Directory creation:                   OK
SQL inserts:                          OK
Asqatasun config files creation:      OK
Asqatasun webapp creation:            OK
Firefox Profile Files creation:       OK
Asqatasun webapp configuration:       OK
Asqatasun admin creation:             OK
Asqatasun contract creation:          OK
Tomcat configuration:                 OK

Well done, your Asqatasun is installed !
Tomcat needs to be restarted (e.g. "sudo service tomcat7 restart", take a coffee while it restarts :) )
Asqatasun is available at: http://21x.xxx.xxx.x09:8080/asqatasun/

Log from /var/log/asqatasun

27-01-2016 11:34:23:758 0    INFO  com.mchange.v2.log.MLog  - MLog clients using log4j logging.
27-01-2016 11:34:23:999 241  INFO  com.mchange.v2.c3p0.C3P0Registry  - Initializing c3p0-0.9.2.1 [built 20-March-2013 10:47:27 +0000; debug? true; trace: 10]
27-01-2016 11:34:28:414 4656 INFO  com.mchange.v2.c3p0.impl.AbstractPoolBackedDataSource  - Initializing c3p0 pool... com.mchange.v2.c3p0.ComboPooledDataSource [ acquireIncrement -> 10, acquireRetryAttempts -> 30, acquireRetryDelay -> 1000, autoCommitOnClose -> false, $
27-01-2016 11:34:45:850 22092 INFO  org.springframework.web.servlet.DispatcherServlet  - FrameworkServlet 'tgol-web-app': initialization started
27-01-2016 11:34:59:857 36099 INFO  org.springframework.web.servlet.DispatcherServlet  - FrameworkServlet 'tgol-web-app': initialization completed in 14007 ms
27-01-2016 11:35:14:170 0    INFO  com.mchange.v2.log.MLog  - MLog clients using log4j logging.
27-01-2016 11:35:14:273 103  INFO  com.mchange.v2.c3p0.C3P0Registry  - Initializing c3p0-0.9.2.1 [built 20-March-2013 10:47:27 +0000; debug? true; trace: 10]
27-01-2016 11:35:15:942 1772 INFO  com.mchange.v2.c3p0.impl.AbstractPoolBackedDataSource  - Initializing c3p0 pool... com.mchange.v2.c3p0.ComboPooledDataSource [ acquireIncrement -> 10, acquireRetryAttempts -> 30, acquireRetryDelay -> 1000, autoCommitOnClose -> false, $
27-01-2016 11:35:35:234 21064 INFO  org.springframework.web.servlet.DispatcherServlet  - FrameworkServlet 'tgol-web-app': initialization started
27-01-2016 11:35:48:448 34278 INFO  org.springframework.web.servlet.DispatcherServlet  - FrameworkServlet 'tgol-web-app': initialization completed in 13214 ms

After install - blank page
Last news - 21x.xxx.xxx.x09:8080/asqatasun/

Forbidden
You don't have permission to access /asqatasun/ on this server.

there it is : web-app/tgol-resources/src/main/resources/installation/uninstall.sh

Last i re-install on ip, not domaine. And nothing, again :cry:

Some logs:

The last packet successfully received from the server was 4,485 milliseconds ago.  The last packet sent successfully to the server was 24 milliseconds ago.
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
        at com.mysql.jdbc.Util.handleNewInstance(Util.java:411)
        at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1116)
        at com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:3090)
        at com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:2979)
        at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3520)
        at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1990)
        at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2151)
        at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2619)
        at com.mysql.jdbc.ConnectionImpl.setAutoCommit(ConnectionImpl.java:4997)
        at com.mchange.v2.c3p0.impl.NewProxyConnection.setAutoCommit(NewProxyConnection.java:912)
        at org.hibernate.engine.transaction.internal.jdbc.JdbcTransaction.doBegin(JdbcTransaction.java:72)
        ... 49 more
Caused by: java.io.EOFException: Can not read response from server. Expected to read 4 bytes, read 0 bytes before connection was unexpectedly lost.
        at com.mysql.jdbc.MysqlIO.readFully(MysqlIO.java:2540)
        at com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:2990)
        ... 57 more
27-01-2016 20:43:13:984 0    INFO  com.mchange.v2.log.MLog  - MLog clients using log4j logging.
27-01-2016 20:43:14:143 159  INFO  com.mchange.v2.c3p0.C3P0Registry  - Initializing c3p0-0.9.2.1 [built 20-March-2013 10:47:27 +0000; debug? true; trace: 10]
27-01-2016 20:43:15:614 1630 INFO  com.mchange.v2.c3p0.impl.AbstractPoolBackedDataSource  - Initializing c3p0 pool... com.mchange.v2.c3p0.ComboPooledDataSource [ acquireIncrement -> 10, acquireRetryAttempts -> 30, acquireRetryDelay -> 1000, autoCommitOnClose -> false, $
27-01-2016 20:43:38:757 24773 INFO  org.springframework.web.servlet.DispatcherServlet  - FrameworkServlet 'tgol-web-app': initialization started

Log Tomcat:

The last packet successfully received from the server was 4,485 milliseconds ago.  The last packet sent successfully to the server was 24 milliseconds ago.
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
        at com.mysql.jdbc.Util.handleNewInstance(Util.java:411)
        at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1116)
        at com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:3090)
        at com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:2979)
        at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3520)
        at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1990)
        at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2151)
        at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2619)
        at com.mysql.jdbc.ConnectionImpl.setAutoCommit(ConnectionImpl.java:4997)
        at com.mchange.v2.c3p0.impl.NewProxyConnection.setAutoCommit(NewProxyConnection.java:912)
        at org.hibernate.engine.transaction.internal.jdbc.JdbcTransaction.doBegin(JdbcTransaction.java:72)
        ... 49 more
Caused by: java.io.EOFException: Can not read response from server. Expected to read 4 bytes, read 0 bytes before connection was unexpectedly lost.
        at com.mysql.jdbc.MysqlIO.readFully(MysqlIO.java:2540)
        at com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:2990)
        ... 57 more

Jan 27, 2016 8:40:38 PM org.apache.catalina.core.ApplicationContext log
INFO: Closing Spring root WebApplicationContext
Jan 27, 2016 8:43:07 PM org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring root WebApplicationContext
Jan 27, 2016 8:43:38 PM org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring FrameworkServlet 'tgol-web-app'

Hi,

Can you give us more information about the way you set, the tomcat port?

The last trace seems to show that the connexion is lost between the application and the mysql server.

Is your mysql installed on the same machine?

Regards

Koj

I reinstall 21x.xxx.xxx.x09:8082/asqatasun/

Yes all require modules install on server, it’s live web server.

where is your Tomcat ?

Logically, if you go on 21x.xxx.xxx.x09:8082/
you should see this:

1 Like

I love you! :slightly_smiling:
Add to manual…

If you want change defoult Tomcat port.
Go to /etc/tomcat7/ server.xml
Find line

Change Port to another, and restart Tomcat!

Snx all, now i test server and create translate.Aw, add new topic.

1 Like

now, if you want, you can add a message :heart_eyes:
to the release 4 rc1 topic


[quote=“gwynnbleiidd, post:13, topic:59”]
Add to manual…

If you want change defoult Tomcat port.Go to /etc/tomcat7/ server.xmlFind line
redirectPort="8443" /&gt;[/quote]
I see, so we could add a warning
for this problem into the documentation… :green_book:

@mfaure, does the install script check the tomcat port ? :signal_strength:

uninstall works little different

./uninstall.sh -p -c /etc/asqatasun

(-p is purge)

(-c is config folder where you will find uninstall.txt)

It uses this information to purge… just -p won’t be helpful

Hum, good question. In fact, no :confused: