You have some problem with the config file.
Strange. I installed 3.11 again and everything works fine:
The config includes these entries:
<entry key='web.port'>80</entry>
<entry key='web.url'>https://tolnet_test.ft.fo</entry>
<entry key="config.default">./conf/default.xml</entry>
<entry key='database.driver'>com.mysql.jdbc.Driver</entry>
<entry key='database.url'>jdbc:mysql://localhost/traccar?allowMultiQueries=true&autoReconnect=true&useUnicode=yes&characterEncoding=UTF-8&sessionVariables=sql_mode=''</entry>
<entry key='database.user'>root</entry>
<entry key='database.password'>password</entry>
Should the config include anything else in 3.14?
You definitely has some problem in the config. Error message clearly indicates where the error was.
I got this error when using 3.12, this points to some error in the DB. Do you have any suggestion how this can be fixed?
INFO|11304/0|Service traccar|17-09-13 11:36:50|INFO 9/13/17 11:36 AM: liquibase: Clearing database change log checksums
INFO|11304/0|Service traccar|17-09-13 11:36:50|INFO 9/13/17 11:36 AM: liquibase: Successfully acquired change log lock
INFO|11304/0|Service traccar|17-09-13 11:36:50|INFO 9/13/17 11:36 AM: liquibase: Successfully released change log lock
INFO|11304/0|Service traccar|17-09-13 11:36:50|INFO 9/13/17 11:36 AM: liquibase: Successfully acquired change log lock
INFO|11304/0|Service traccar|17-09-13 11:36:52|INFO 9/13/17 11:36 AM: liquibase: Reading from traccar.DATABASECHANGELOG
INFO|11304/0|Service traccar|17-09-13 11:36:52|INFO 9/13/17 11:36 AM: liquibase: Reading from traccar.DATABASECHANGELOG
INFO|11304/0|Service traccar|17-09-13 11:36:52|INFO 9/13/17 11:36 AM: liquibase: ./schema/changelog-master.xml: changelog-3.8::changelog-3.8-dropuniquetoken::author: Change set changelog-3.8::changelog-3.8-dropuniquetoken::author failed, but failOnError was false. Error: Can't DROP 'uk_user_token'; check that column/key exists [Failed SQL: ALTER TABLE traccar.users DROP KEY uk_user_token]
INFO|11304/0|Service traccar|17-09-13 11:36:52|SEVERE 9/13/17 11:36 AM: liquibase: ./schema/changelog-master.xml: changelog-3.12::changelog-3.12::author: Change Set changelog-3.12::changelog-3.12::author failed. Error: Duplicate column name 'mailsent' [Failed SQL: ALTER TABLE traccar.statistics ADD mailsent INT DEFAULT 0 NOT NULL, ADD smssent INT DEFAULT 0 NOT NULL, ADD geocoderrequests INT DEFAULT 0 NOT NULL, ADD geolocationrequests INT DEFAULT 0 NOT NULL]
INFO|11304/0|Service traccar|17-09-13 11:36:52|INFO 9/13/17 11:36 AM: liquibase: changelog-3.12::changelog-3.12::author: Successfully released change log lock
INFO|11304/0|Service traccar|17-09-13 11:36:52|java.lang.reflect.InvocationTargetException
INFO|11304/0|Service traccar|17-09-13 11:36:52| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
INFO|11304/0|Service traccar|17-09-13 11:36:52| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
INFO|11304/0|Service traccar|17-09-13 11:36:52| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
INFO|11304/0|Service traccar|17-09-13 11:36:52| at java.lang.reflect.Method.invoke(Method.java:606)
INFO|11304/0|Service traccar|17-09-13 11:36:52| at org.rzo.yajsw.app.WrapperJVMMain.executeMain(WrapperJVMMain.java:60)
INFO|11304/0|Service traccar|17-09-13 11:36:52| at org.rzo.yajsw.app.WrapperJVMMain.main(WrapperJVMMain.java:43)
INFO|11304/0|Service traccar|17-09-13 11:36:52|Caused by: liquibase.exception.MigrationFailedException: Migration failed for change set changelog-3.12::changelog-3.12::author:
INFO|11304/0|Service traccar|17-09-13 11:36:52| Reason: liquibase.exception.DatabaseException: Duplicate column name 'mailsent' [Failed SQL: ALTER TABLE traccar.statistics ADD mailsent INT DEFAULT 0 NOT NULL, ADD smssent INT DEFAULT 0 NOT NULL, ADD geocoderrequests INT DEFAULT 0 NOT NULL, ADD geolocationrequests INT DEFAULT 0 NOT NULL]
INFO|11304/0|Service traccar|17-09-13 11:36:52| at liquibase.changelog.ChangeSet.execute(ChangeSet.java:619)
INFO|11304/0|Service traccar|17-09-13 11:36:52| at liquibase.changelog.visitor.UpdateVisitor.visit(UpdateVisitor.java:51)
INFO|11304/0|Service traccar|17-09-13 11:36:52| at liquibase.changelog.ChangeLogIterator.run(ChangeLogIterator.java:79)
INFO|11304/0|Service traccar|17-09-13 11:36:52| at liquibase.Liquibase.update(Liquibase.java:214)
INFO|11304/0|Service traccar|17-09-13 11:36:52| at liquibase.Liquibase.update(Liquibase.java:192)
INFO|11304/0|Service traccar|17-09-13 11:36:52| at liquibase.Liquibase.update(Liquibase.java:188)
INFO|11304/0|Service traccar|17-09-13 11:36:52| at org.traccar.database.DataManager.initDatabaseSchema(DataManager.java:150)
INFO|11304/0|Service traccar|17-09-13 11:36:52| at org.traccar.database.DataManager.<init>(DataManager.java:76)
INFO|11304/0|Service traccar|17-09-13 11:36:52| at org.traccar.Context.init(Context.java:221)
INFO|11304/0|Service traccar|17-09-13 11:36:52| at org.traccar.Main.main(Main.java:35)
INFO|11304/0|Service traccar|17-09-13 11:36:52| ... 6 more
INFO|11304/0|Service traccar|17-09-13 11:36:52|Caused by: liquibase.exception.DatabaseException: Duplicate column name 'mailsent' [Failed SQL: ALTER TABLE traccar.statistics ADD mailsent INT DEFAULT 0 NOT NULL, ADD smssent INT DEFAULT 0 NOT NULL, ADD geocoderrequests INT DEFAULT 0 NOT NULL, ADD geolocationrequests INT DEFAULT 0 NOT NULL]
INFO|11304/0|Service traccar|17-09-13 11:36:52| at liquibase.executor.jvm.JdbcExecutor$ExecuteStatementCallback.doInStatement(JdbcExecutor.java:309)
INFO|11304/0|Service traccar|17-09-13 11:36:52| at liquibase.executor.jvm.JdbcExecutor.execute(JdbcExecutor.java:55)
INFO|11304/0|Service traccar|17-09-13 11:36:52| at liquibase.executor.jvm.JdbcExecutor.execute(JdbcExecutor.java:113)
INFO|11304/0|Service traccar|17-09-13 11:36:52| at liquibase.database.AbstractJdbcDatabase.execute(AbstractJdbcDatabase.java:1277)
INFO|11304/0|Service traccar|17-09-13 11:36:52| at liquibase.database.AbstractJdbcDatabase.executeStatements(AbstractJdbcDatabase.java:1259)
INFO|11304/0|Service traccar|17-09-13 11:36:52| at liquibase.changelog.ChangeSet.execute(ChangeSet.java:582)
INFO|11304/0|Service traccar|17-09-13 11:36:52| ... 15 more
INFO|11304/0|Service traccar|17-09-13 11:36:52|Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Duplicate column name 'mailsent'
INFO|11304/0|Service traccar|17-09-13 11:36:52| at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
INFO|11304/0|Service traccar|17-09-13 11:36:52| at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
INFO|11304/0|Service traccar|17-09-13 11:36:52| at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
INFO|11304/0|Service traccar|17-09-13 11:36:52| at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
INFO|11304/0|Service traccar|17-09-13 11:36:52| at com.mysql.jdbc.Util.handleNewInstance(Util.java:425)
INFO|11304/0|Service traccar|17-09-13 11:36:52| at com.mysql.jdbc.Util.getInstance(Util.java:408)
INFO|11304/0|Service traccar|17-09-13 11:36:52| at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:943)
INFO|11304/0|Service traccar|17-09-13 11:36:52| at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3973)
INFO|11304/0|Service traccar|17-09-13 11:36:52| at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3909)
INFO|11304/0|Service traccar|17-09-13 11:36:52| at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2527)
INFO|11304/0|Service traccar|17-09-13 11:36:52| at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2680)
INFO|11304/0|Service traccar|17-09-13 11:36:52| at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2486)
INFO|11304/0|Service traccar|17-09-13 11:36:52| at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2444)
INFO|11304/0|Service traccar|17-09-13 11:36:52| at com.mysql.jdbc.StatementImpl.executeInternal(StatementImpl.java:845)
INFO|11304/0|Service traccar|17-09-13 11:36:52| at com.mysql.jdbc.StatementImpl.execute(StatementImpl.java:745)
INFO|11304/0|Service traccar|17-09-13 11:36:52| at liquibase.executor.jvm.JdbcExecutor$ExecuteStatementCallback.doInStatement(JdbcExecutor.java:307)
INFO|11304/0|Service traccar|17-09-13 11:36:52| ... 20 more
INFO|wrapper|Service traccar|17-09-13 11:36:52|waitpid 11304 59136
INFO|wrapper|Service traccar|17-09-13 11:36:52|exit code posix process: 59136 application: 0
Now there is something broken in your database.
Please do some search before asking any questions.
Ok, I have found out that something goes wrong with the installation of 3.12 (or 3.14). Again 3.11 works fine.
Has this something to do with the java version?
[root@traccar_test ~]# sudo ./traccar.run
Creating directory out
Verifying archive integrity... 100% All good.
Uncompressing traccar 100%
chmod: cannot access `go+rX': No such file or directory
chmod: /opt/traccar: new permissions are -wxr-xr-x, not -wx--x--x
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
++++++++++ YAJSW SET ENV ++++++++++
pwd: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
chdir: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
java version "1.7.0_121"
OpenJDK Runtime Environment (rhel-2.6.8.1.0.1.el6_8-x86_64 u121-b00)
OpenJDK 64-Bit Server VM (build 24.121-b00, mixed mode)
wrapper home : /opt/traccar
configuration: /opt/traccar/conf/wrapper.conf
java version "1.7.0_121"
OpenJDK Runtime Environment (rhel-2.6.8.1.0.1.el6_8-x86_64 u121-b00)
OpenJDK 64-Bit Server VM (build 24.121-b00, mixed mode)
---------- YAJSW SET ENV ----------
++++++++++ YAJSW SET ENV ++++++++++
java version "1.7.0_121"
OpenJDK Runtime Environment (rhel-2.6.8.1.0.1.el6_8-x86_64 u121-b00)
OpenJDK 64-Bit Server VM (build 24.121-b00, mixed mode)
wrapper home : /opt/traccar
configuration: /opt/traccar/conf/wrapper.conf
java version "1.7.0_121"
OpenJDK Runtime Environment (rhel-2.6.8.1.0.1.el6_8-x86_64 u121-b00)
OpenJDK 64-Bit Server VM (build 24.121-b00, mixed mode)
---------- YAJSW SET ENV ----------
YAJSW: yajsw-stable-12.09
OS : Linux/4.1.12-61.1.23.el6uek.x86_64/amd64
JVM : Oracle Corporation/1.7.0_121//usr/lib/jvm/java-1.7.0-openjdk-1.7.0.121.x86_64/jre/64
Sep 13, 2017 1:53:44 PM org.apache.commons.vfs2.VfsLog info
INFO: Using "/tmp/vfs_cache" as temporary files store.
Sep 13, 2017 1:53:45 PM org.rzo.yajsw.os.posix.PosixService init
INFO: /etc/init.d/traccar already exists
************* INSTALLING traccar ***********************
Sep 13, 2017 1:53:45 PM org.rzo.yajsw.os.posix.PosixService getPid
INFO: wrapper pid file: /var/run/wrapper.traccar.pid
Sep 13, 2017 1:53:46 PM org.rzo.yajsw.os.posix.PosixService stop
INFO: Stopping traccar ...
YAJSW: yajsw-stable-12.09
OS : Linux/4.1.12-61.1.23.el6uek.x86_64/amd64
JVM : Oracle Corporation/1.7.0_121//usr/lib/jvm/java-1.7.0-openjdk-1.7.0.121.x86_64/jre/64
************* STOPPING traccar ***********************
It looks OK.
After upgrading from 3.11 to 3.14 I get this error in the wrapper log. Any idea what is causing this and how to fix?