[ Traccar ] [ 5.4.0 ] GPS tracking system OpenSource

This is the best place for community developers to publish their genius work. Your Apps enrich the QNAP Turbo NAS.
Post Reply
Tryphon
Getting the hang of things
Posts: 57
Joined: Sat Jul 24, 2010 3:02 am

Re: [ Traccar ] [ 4.0.0 ] GPS tracking system OpenSource

Post by Tryphon »

That's the problem : log is empty ! ... no clue to go further ...
erverv2004
New here
Posts: 2
Joined: Thu Aug 21, 2014 1:25 pm

Re: [ Traccar ] [ 4.0.0 ] GPS tracking system OpenSource

Post by erverv2004 »

Greetings, I'm trying to get traccar running on my TS-251+. I've installed successfully the QJDK8 required and the app (I downloaded the x64 version).
With the default configuration (all ports disabled) the app starts with the map and everything (ability to create a tracked device etc). If I try to make a single modification to the configuration file and enable a port (5013 for sinotrack and/or 5055 for traccar test app), the server will not start anymore and the web UI will not load up (I both tried to stop / restart the app from the app center, restart the NAS and restart from shell script.

lsof will not list the ports I need as used / opened by the NAS. Is there something I need to do with the traccar.xml configuration file ? I haven't touched it as I don't use MySQL (at least for now) and I just want to test.

to be noted : I've also installed traccar locally on my windows machine and it worked nicely. NAT passes thru my internet box and router / gateway and everything is properly redirected. On the NAS however, nothing. I don't see any port open (the ones enabled in the configuration) after the app has started.
I also tested an older version of the app (3.4 IIRC) and it behaved the same, no web UI after configuration file update and app restart.

here's the log. You can see it started the first time, but after the config mod, nothing, dead and silent. Am I missing something in the config or process ? Thanks

Code: Select all

2018-09-10 17:37:29  INFO: Operating system name: Linux version: 4.2.8 architecture: amd64
2018-09-10 17:37:29  INFO: Java runtime name: Java HotSpot(TM) 64-Bit Server VM vendor: Oracle Corporation version: 25.172-b11
2018-09-10 17:37:29  INFO: Memory limit heap: 420mb non-heap: 0mb
2018-09-10 17:37:29  INFO: Character encoding: ANSI_X3.4-1968 charset: US-ASCII
2018-09-10 17:37:29  INFO: Version: 4.0-SNAPSHOT
2018-09-10 17:37:38  INFO: Starting server...
2018-09-10 17:41:59  INFO: Operating system name: Linux version: 4.2.8 architecture: amd64
2018-09-10 17:41:59  INFO: Java runtime name: Java HotSpot(TM) 64-Bit Server VM vendor: Oracle Corporation version: 25.172-b11
2018-09-10 17:41:59  INFO: Memory limit heap: 420mb non-heap: 0mb
2018-09-10 17:41:59  INFO: Character encoding: UTF-8 charset: UTF-8
2018-09-10 17:41:59  INFO: Version: 4.0-SNAPSHOT
2018-09-10 17:42:07  INFO: Starting server...
2018-09-10 17:42:57  INFO: user: 1, action: login
2018-09-10 17:43:26  INFO: user: 1, action: create, object: device, id: 1
2018-09-10 17:43:26  INFO: user: 1, action: link, owner: user, id: 1, property: device, id: 1
  
erverv2004
New here
Posts: 2
Joined: Thu Aug 21, 2014 1:25 pm

Re: [ Traccar ] [ 4.0.0 ] GPS tracking system OpenSource

Post by erverv2004 »

to answer my own question and issue : the web page that allows for modifying the configuration file destroys it (at least with firefox) and the XML parser doesn't like what it reads. It "looks" ok (text is still there) but I think identation / tabs are lost or incorrect. I'm not sure why, I thought XML was not too sensitive to this.

I copied the configuration to my share/Public folder to edit it properly with notepad++ and keep indentation (if needed). Both ports now opened and data reaching my NAS. Using a sinotrack that works really great and fantastic sleep mode <10 mA. Monitoring its current use shows small peaks of a few mA here and there, average must be 1-2mA sleep mode. Wakes up with ACC voltage (key inserted) and starts logging, or by a shock or by SMS.
User avatar
QNAP_Stephane
Experience counts
Posts: 4802
Joined: Wed Mar 27, 2013 1:00 am

Re: [ Traccar ] [ 4.1.0 ] GPS tracking system OpenSource

Post by QNAP_Stephane »

updated
---------------------------------------------------------------------------------------------------------------------------

Find all QPKG in the MyQnap.org repository https://www.myqnap.org
join our discord server for any inquiry related to qpkg - https://discord.gg/4fPxHSWKQW

----------------------------------------------------------------------------------------------------------------------------
robertox80
First post
Posts: 1
Joined: Mon Nov 12, 2018 6:03 pm

Re: [ Traccar ] [ 4.1.0 ] GPS tracking system OpenSource

Post by robertox80 »

same problem of erverv2004

when I edit config file, removing <!-- --!> the webpage :18082 doesn't work anymore. I can still access to config page.
I tested with chrome and internet explorer.
so I can't open any port..
how can i solve this?


i have qnap ts231p

traccar 4.1.0 arm x41 ( the only one that installs)
java jdk8 v1.8.172
User avatar
QNAP_Stephane
Experience counts
Posts: 4802
Joined: Wed Mar 27, 2013 1:00 am

Re: [ Traccar ] [ 4.1.0 ] GPS tracking system OpenSource

Post by QNAP_Stephane »

because you enabled a port already in use by your NAS
---------------------------------------------------------------------------------------------------------------------------

Find all QPKG in the MyQnap.org repository https://www.myqnap.org
join our discord server for any inquiry related to qpkg - https://discord.gg/4fPxHSWKQW

----------------------------------------------------------------------------------------------------------------------------
Ika-Kolor
New here
Posts: 3
Joined: Fri Dec 22, 2017 8:57 pm

Re: [ Traccar ] [ 4.1.0 ] GPS tracking system OpenSource

Post by Ika-Kolor »

Traccar has stopped working After upgrade 4.0 to 4.1
I try new installation and it still does not work.
No access to web interface on port 18082
In log I receive information:

2018-11-14 11:19:23 DEBUG: HikariPool-1 - Failed to create/setup connection: Could not create connection to database server. Attempted reconnect 3 times. Giving up.
2018-11-14 11:19:23 DEBUG: HikariPool-1 - Cannot acquire connection from data source - Could not create connection to database server. Attempted reconnect 3 times. Giving up. - MySQLNonTransientConnectionException (... < DataManager:133 < *:90 < Context:382 < Main:110 < ...)
2018-11-14 11:19:24 ERROR: HikariPool-1 - Exception during pool initialization. - Could not create connection to database server. Attempted reconnect 3 times. Giving up. - MySQLNonTransientConnectionException (... < DataManager:133 < *:90 < Context:382 < Main:110 < ...)
2018-11-14 11:19:24 ERROR: Main method error - Failed to initialize pool: Could not create connection to database server. Attempted reconnect 3 times. Giving up. - PoolInitializationException (... < DataManager:133 < *:90 < Context:382 < Main:110 < ...)

Qnap TS-251
QJDK8
MariaDB 5.5.57
dinmc
New here
Posts: 6
Joined: Sun Mar 27, 2011 12:43 am

Re: [ Traccar ] [ 4.1.0 ] GPS tracking system OpenSource

Post by dinmc »

Hi there

I have successfully installed the QJDK8 required and the traccar app 4.1.0. That worked fine. Configure site works, Web interface works, and I can ad devices, but I get no data. Should this config parameter <entry key='web.port'>18082</entry>
be changed to match the port that fits the used GPS tracker device? Try to change <entry key='web.port'>18082</entry> to other port (5055), but then webinterface does not work any longer, and even changing the parameter back to <entry key='web.port'>18082</entry> does not work. Webinterface stopped. Try to remove and reinstall traccar, but still not working. Any hints what to do?

Rgs

Lars
User avatar
QNAP_Stephane
Experience counts
Posts: 4802
Joined: Wed Mar 27, 2013 1:00 am

Re: [ Traccar ] [ 4.3.0 ] GPS tracking system OpenSource

Post by QNAP_Stephane »

updated
---------------------------------------------------------------------------------------------------------------------------

Find all QPKG in the MyQnap.org repository https://www.myqnap.org
join our discord server for any inquiry related to qpkg - https://discord.gg/4fPxHSWKQW

----------------------------------------------------------------------------------------------------------------------------
vytas9425
New here
Posts: 5
Joined: Sat Jun 16, 2018 12:51 am

Re: [ Traccar ] [ 4.3.0 ] GPS tracking system OpenSource

Post by vytas9425 »

Hello,
I'm trying to configure traccar on my TS-228A, but I have problem, after pressing "Modify" button and restarting, app stops working.
How I understand, I need in Protocol Config, remove brackets and port forward that port on router.
Anyone can help me with this?
vytas9425
New here
Posts: 5
Joined: Sat Jun 16, 2018 12:51 am

Re: [ Traccar ] [ 4.3.0 ] GPS tracking system OpenSource

Post by vytas9425 »

QNAP_Stephane wrote: Wed Mar 27, 2019 9:05 pm updated
Is it possible to get any help?
User avatar
QNAP_Stephane
Experience counts
Posts: 4802
Joined: Wed Mar 27, 2013 1:00 am

Re: [ Traccar ] [ 4.3.0 ] GPS tracking system OpenSource

Post by QNAP_Stephane »

your port might be use by another application/process

check traccar logs
---------------------------------------------------------------------------------------------------------------------------

Find all QPKG in the MyQnap.org repository https://www.myqnap.org
join our discord server for any inquiry related to qpkg - https://discord.gg/4fPxHSWKQW

----------------------------------------------------------------------------------------------------------------------------
vytas9425
New here
Posts: 5
Joined: Sat Jun 16, 2018 12:51 am

Re: [ Traccar ] [ 4.3.0 ] GPS tracking system OpenSource

Post by vytas9425 »

QNAP_Stephane wrote: Wed Apr 17, 2019 2:35 pm your port might be use by another application/process

check traccar logs
I reset my NAS to factory, but that not helping. When I press Modify button in Traccar config, without making any changes, then Stopping and Starting app again, Log stops updating.
vytas9425
New here
Posts: 5
Joined: Sat Jun 16, 2018 12:51 am

Re: [ Traccar ] [ 4.3.0 ] GPS tracking system OpenSource

Post by vytas9425 »

QNAP_Stephane wrote: Wed Apr 17, 2019 2:35 pm your port might be use by another application/process

check traccar logs
Is it possible to enable port in qpkg file before installing, or edit config file while Traccar Stoped?
vytas9425
New here
Posts: 5
Joined: Sat Jun 16, 2018 12:51 am

Re: [ Traccar ] [ 4.0.0 ] GPS tracking system OpenSource

Post by vytas9425 »

erverv2004 wrote: Thu Sep 13, 2018 5:41 pm to answer my own question and issue : the web page that allows for modifying the configuration file destroys it (at least with firefox) and the XML parser doesn't like what it reads. It "looks" ok (text is still there) but I think identation / tabs are lost or incorrect. I'm not sure why, I thought XML was not too sensitive to this.

I copied the configuration to my share/Public folder to edit it properly with notepad++ and keep indentation (if needed). Both ports now opened and data reaching my NAS. Using a sinotrack that works really great and fantastic sleep mode <10 mA. Monitoring its current use shows small peaks of a few mA here and there, average must be 1-2mA sleep mode. Wakes up with ACC voltage (key inserted) and starts logging, or by a shock or by SMS.
Hi, can you help me with this, I have same issue, after Modifying config file app stops working. I'm trying to find this file with WinSCP, but I don't know how it's called, I found traccar folder in /share/CACHEDEV3_DATA/.qpkg, but there is only one similar config with enable all ports. Where I can find this file?
Post Reply

Return to “Community Apps”