Не получилось запустить traccar сервер.

qwerty7 years ago

/opt/traccar/bin/startDaemon.sh

++++++++++ YAJSW SET ENV ++++++++++
openjdk version "1.8.0_162"
OpenJDK Runtime Environment (build 1.8.0_162-8u162-b12-0ubuntu0.16.04.2-b12)
OpenJDK 64-Bit Server VM (build 25.162-b12, mixed mode)
wrapper home : /opt/traccar
configuration: /opt/traccar/conf/wrapper.conf
openjdk version "1.8.0_162"
OpenJDK Runtime Environment (build 1.8.0_162-8u162-b12-0ubuntu0.16.04.2-b12)
OpenJDK 64-Bit Server VM (build 25.162-b12, mixed mode)
---------- YAJSW SET ENV ----------
++++++++++ YAJSW SET ENV ++++++++++
openjdk version "1.8.0_162"
OpenJDK Runtime Environment (build 1.8.0_162-8u162-b12-0ubuntu0.16.04.2-b12)
OpenJDK 64-Bit Server VM (build 25.162-b12, mixed mode)
wrapper home : /opt/traccar
configuration: /opt/traccar/conf/wrapper.conf
openjdk version "1.8.0_162"
OpenJDK Runtime Environment (build 1.8.0_162-8u162-b12-0ubuntu0.16.04.2-b12)
OpenJDK 64-Bit Server VM (build 25.162-b12, mixed mode)
---------- YAJSW SET ENV ----------
YAJSW: yajsw-stable-12.12
OS   : Linux/4.4.0-21-generic/amd64
JVM  : Oracle Corporation/1.8.0_162//usr/lib/jvm/java-8-openjdk-amd64/jre/64
Apr 04, 2018 8:12:53 AM org.apache.commons.vfs2.VfsLog info
INFO: Using "/tmp/vfs_cache" as temporary files store.
Apr 04, 2018 8:12:54 AM org.rzo.yajsw.os.posix.PosixService init
INFO: /etc/init.d/traccar already exists
************* STARTING traccar ***********************

Apr 04, 2018 8:12:54 AM org.rzo.yajsw.os.posix.PosixService getPid
INFO: wrapper pid file: /run/wrapper.traccar.pid
Apr 04, 2018 8:12:54 AM org.rzo.yajsw.os.posix.PosixService start
INFO: already running
Apr 04, 2018 8:12:55 AM org.rzo.yajsw.os.posix.PosixService getPid
INFO: wrapper pid file: /run/wrapper.traccar.pid
Apr 04, 2018 8:12:55 AM org.rzo.yajsw.os.posix.PosixService getPid
INFO: wrapper pid file: /run/wrapper.traccar.pid
Service traccar started

tail -f /opt/traccar/logs/wrapper.log.*

FINEST|14795/0|Service traccar|18-04-04 07:50:15|Wed Apr 04 07:50:15 MSK 2018 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.
Anton Tananaev7 years ago

Дефолтную конфигурацию использовали? Сколько ждали после запуска?

qwerty7 years ago

Да использвал. Вчера установил

qwerty7 years ago
server {
    listen          xxx.xxxx.xxx.xxx:80;
    server_name     traccar.example.com;

    access_log /root/access.log;
    error_log /root/error.log;

    location / {
        proxy_pass http://127.0.0.1:8082;
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "upgrade";
    }

    location /api/socket {
        proxy_pass http://localhost:8082/api/socket;
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "upgrade";
    }

}
Anton Tananaev7 years ago

Что значит не удалось запустить? Вы говорите запустили вчера, в логах сегодняшняя дата. Значит сервер как минимум день уже работает.

qwerty7 years ago

Скорее всего он работает но мы не смогли xост настроить

Anton Tananaev7 years ago

Тема называется "не получилось запустить сервер".

qwerty7 years ago

Как нам настроить xост помогите пожалуйста

qwerty7 years ago

Я имел ввиду что веб интерфейс не запустился через http://localhost:8082

Anton Tananaev7 years ago

Если сервер работает, то должен подключаться. Естественно подключится по localhost можно с локальной машины.

qwerty7 years ago

А вы можете подсказать как нам узнать работает веб клиент или нет ? Проверил вот так ничего не вышло ((
root@server:~# ping 127.0.0.1:8082
ping: unknown host 127.0.0.1:8082

Anton Tananaev7 years ago

Откройте http://server.ip.address:8082 с любой машины в сети. Убедитесь что порт открыт в firewall.

qwerty7 years ago

Порт 194.58.97.250:8082 открыт только что сам открыл.
Конфиг у меня вот такой туда только что добавил useSSL=false

<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE properties SYSTEM 'http://java.sun.com/dtd/properties.dtd'>
<properties>
    <entry key="config.default">./conf/default.xml</entry>
    <entry key='web.port'>80</entry>
    <entry key='geocoder.enable'>false</entry>
    <entry key='database.driver'>com.mysql.jdbc.Driver</entry>
    <entry key='database.url'>jdbc:mysql://localhost/traccar?allowMultiQueries=true&amp;autoReconnect=true&amp;useUnicode=yes&amp;characterEncoding=UTF-8&amp;useSSL=false&amp;sessionVariables=sql_mode=''</entry>
    <entry key='database.user'>user</entry>
    <entry key='database.password'>pass</entry>
    <entry key='server.timeout'>120</entry>
</properties>
qwerty7 years ago

Но самое главное с интернета не открывается ((

qwerty7 years ago

Я хотел создать поддомен.
http://traccar.itmaker.uz/

server {
    listen          194.58.97.250:80;
    server_name     traccar.itmaker.uz;

    access_log /root/access.log;
    error_log /root/error.log;

    location / {
        proxy_pass http://127.0.0.1:8082;
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "upgrade";
    }

    location /api/socket {
        proxy_pass http://localhost:8082/api/socket;
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "upgrade";
    }

}