installed apache (https) now getting 503 service unavailable error

Kim4 years ago

maybe someone can help me.

traccar.conf

<IfModule mod_ssl.c>

           <VirtualHost *:80>
               ServerName fahrindenurlaub-gps.de
               ServerAlias fahrindenurlaub-gps.de
               Redirect / https://fahrindenurlaub-gps.de
         </VirtualHost>

         <VirtualHost _default_:443>
                ServerName fahrindenurlaub-gps.de
                ServerAdmin kimtischler1132@gmail.com
                ProxyPass /api/socket ws://localhost:8082/api/socket
                ProxyPassReverse /api/socket ws://localhost:8082/api/socket
                ProxyPass / http://localhost:8082/
                ProxyPassReverse / http://localhost:8082/
                SSLEngine on
                Include /etc/letsencrypt/options-ssl-apache.conf
                ServerAlias www.myserver.com.br
                SSLCertificateFile /etc/letsencrypt/live/fahrindenurlaub-gps.de/fullchain.pem
                SSLCertificateKeyFile /etc/letsencrypt/live/fahrindenurlaub-gps.de/privkey.pem
        </VirtualHost>
</IfModule>
<IfModule mod_ssl.c>
000-default.conf
           <VirtualHost *:80>
               ServerName fahrindenurlaub-gps.de
               ServerAlias fahrindenurlaub-gps.de
               Redirect / https://fahrindenurlaub-gps.de
         </VirtualHost>
traccar.xml
<?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&autoReconnect=true&useUnicode=yes&characterEncoding=UTF-8&sessionVariables=sql_mode=''</entry>
    <entry key='database.user'>****</entry>
    <entry key='database.password'>****</entry>
    
    <entry key='server.timeout'>120</entry>

</properties>
Kim4 years ago

i think i found the problem, the webport 80 is in use, but i dont know how to solve the problem

2020-03-17 10:41:02  INFO: SELECT COUNT(*) FROM traccar.DATABASECHANGELOG
2020-03-17 10:41:02  INFO: Reading from traccar.DATABASECHANGELOG
2020-03-17 10:41:02  INFO: SELECT * FROM traccar.DATABASECHANGELOG ORDER BY DATEEXECUTED ASC, ORDEREXECUTED ASC
2020-03-17 10:41:02  INFO: Successfully released change log lock
2020-03-17 10:41:02  INFO: Logging initialized @6892ms to org.eclipse.jetty.util.log.Slf4jLog
2020-03-17 10:41:02  INFO: Your platform does not provide complete low-level API for accessing direct buffers reliably. Unless explicitly requested, heap buffer will always be preferred to avoid potential system instability.
2020-03-17 10:41:03  INFO: Operating system name: Linux version: 5.3.18-1-pve architecture: amd64
2020-03-17 10:41:03  INFO: Java runtime name: OpenJDK 64-Bit Server VM vendor: Oracle Corporation version: 11.0.5+10-LTS
2020-03-17 10:41:03  INFO: Memory limit heap: 30688mb non-heap: 0mb
2020-03-17 10:41:03  INFO: Character encoding: ANSI_X3.4-1968 charset: US-ASCII
2020-03-17 10:41:03  INFO: Version: 4.8
2020-03-17 10:41:03  INFO: Starting server...
2020-03-17 10:41:04  INFO: jetty-9.4.26.v20200117; built: 2020-01-17T12:35:33.676Z; git: 7b38981d25d14afb4a12ff1f2596756144edf695; jvm 11.0.5+10-LTS
2020-03-17 10:41:04  INFO: Started o.t.w.@4fee14b{/,null,AVAILABLE}
2020-03-17 10:41:04  INFO: DefaultSessionIdManager workerName=node0
2020-03-17 10:41:04  INFO: No SessionScavenger set, using defaults
2020-03-17 10:41:04  INFO: node0 Scavenging every 660000ms
2020-03-17 10:41:05  INFO: Started o.e.j.s.ServletContextHandler@7bde704a{/,null,AVAILABLE}
2020-03-17 10:41:05  WARN: Web server start failed - Address already in use - BindException (... < WebServer:159 < Main:118 < *:104)
Kim4 years ago

okay i am stupid, found the problem.

forgot to change the port in the conf file from 80 to 8082....