Unable to connect to localhost

sd55 years ago

Hi
I deleted port 5040 but there is still a problem with this port in the wrapper file
Does anyone have an idea?

log:

2020-05-13 02:46:29  INFO: Operating system name: Windows 10 version: 10.0 architecture: amd64
2020-05-13 02:46:29  INFO: Java runtime name: Java HotSpot(TM) 64-Bit Server VM vendor: Oracle Corporation version: 25.121-b13
2020-05-13 02:46:29  INFO: Memory limit heap: 3623mb non-heap: 0mb
2020-05-13 02:46:29  INFO: Character encoding: UTF-8 charset: UTF-8
2020-05-13 02:46:29  INFO: Version: 3.9-SNAPSHOT
2020-05-13 02:46:29  INFO: Query not provided: database.selectGroupsAll
2020-05-13 02:46:29  INFO: Query not provided: database.selectDevicesAll
2020-05-13 02:46:29  WARN: Table "POSITIONS" not found; SQL statement:

wrapper:

WARNING|wrapper|Service traccar|20-05-13 02:46:28|YAJSW: yajsw-beta-12.07
WARNING|wrapper|Service traccar|20-05-13 02:46:28|OS   : Windows 10/10.0/amd64
WARNING|wrapper|Service traccar|20-05-13 02:46:28|JVM  : Oracle Corporation/1.8.0_121/C:\Program Files\Java\jre1.8.0_121/64
INFO|wrapper|Service traccar|20-05-13 02:46:28|start delay: 0
INFO|wrapper|Service traccar|20-05-13 02:46:28|started process with pid 4116
INFO|4116/0|Service traccar|20-05-13 02:46:29|[INFO] StandardFileSystemManager - Using "C:\Windows\TEMP\vfs_cache" as temporary files store.
INFO|4116/0|Service traccar|20-05-13 02:46:29|[main] INFO com.zaxxer.hikari.HikariDataSource - HikariPool-1 - Started.
INFO|4116/0|Service traccar|20-05-13 02:46:29|[main] INFO org.eclipse.jetty.util.log - Logging initialized @1190ms
INFO|4116/0|Service traccar|20-05-13 02:46:30|java.lang.reflect.InvocationTargetException
INFO|4116/0|Service traccar|20-05-13 02:46:30|	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
INFO|4116/0|Service traccar|20-05-13 02:46:30|	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
INFO|4116/0|Service traccar|20-05-13 02:46:30|	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
INFO|4116/0|Service traccar|20-05-13 02:46:30|	at java.lang.reflect.Method.invoke(Unknown Source)
INFO|4116/0|Service traccar|20-05-13 02:46:30|	at org.rzo.yajsw.app.WrapperJVMMain.executeMain(WrapperJVMMain.java:60)
INFO|4116/0|Service traccar|20-05-13 02:46:30|	at org.rzo.yajsw.app.WrapperJVMMain.main(WrapperJVMMain.java:43)
INFO|4116/0|Service traccar|20-05-13 02:46:30|Caused by: org.jboss.netty.channel.ChannelException: Failed to bind to: 0.0.0.0/0.0.0.0:5040
INFO|4116/0|Service traccar|20-05-13 02:46:30|	at org.jboss.netty.bootstrap.ServerBootstrap.bind(ServerBootstrap.java:272)
INFO|4116/0|Service traccar|20-05-13 02:46:30|	at org.traccar.TrackerServer.start(TrackerServer.java:136)
INFO|4116/0|Service traccar|20-05-13 02:46:30|	at org.traccar.ServerManager.start(ServerManager.java:73)
INFO|4116/0|Service traccar|20-05-13 02:46:30|	at org.traccar.Main.main(Main.java:38)
INFO|4116/0|Service traccar|20-05-13 02:46:30|	... 6 more
INFO|4116/0|Service traccar|20-05-13 02:46:30|Caused by: java.net.BindException: Address already in use: bind
INFO|4116/0|Service traccar|20-05-13 02:46:30|	at sun.nio.ch.Net.bind0(Native Method)
INFO|4116/0|Service traccar|20-05-13 02:46:30|	at sun.nio.ch.Net.bind(Unknown Source)
INFO|4116/0|Service traccar|20-05-13 02:46:30|	at sun.nio.ch.Net.bind(Unknown Source)
INFO|4116/0|Service traccar|20-05-13 02:46:30|	at sun.nio.ch.ServerSocketChannelImpl.bind(Unknown Source)
INFO|4116/0|Service traccar|20-05-13 02:46:30|	at sun.nio.ch.ServerSocketAdaptor.bind(Unknown Source)
Anders Yuran5 years ago

What version are you using?

sd55 years ago

Version: 3.9-SNAPSHOT

sd55 years ago

I installed the same version on ubuntu and it works without any problems.

John5 years ago

what do you mean by delete 5040?
5040 may use for separate process, so try to change 5040 to other free one in config file

sd55 years ago

i changed/deleted this port <entry key='carscop.port'>5040</entry>
but still it dose not work on Win 10

Anton Tananaev5 years ago

If you delete that line, you shouldn't get an error about that port. So, you are either looking at old error or you haven't removed it.

sd55 years ago

I tried this more than 10 times on two different computers but got no response.
Both had problems with port 5040. Deleting and changing this port also had no effect.
Does anyone have an idea?

sd55 years ago

Thank you ŮŽAnton
I deleted the log and wrapper file and restarted the traccar. I see no longer the problem of port 5040 but still I can't access my localhost: 8082 page

log file :

2020-05-13 19:29:59  INFO: Operating system name: Windows 10 version: 10.0 architecture: amd64
2020-05-13 19:29:59  INFO: Java runtime name: Java HotSpot(TM) 64-Bit Server VM vendor: Oracle Corporation version: 25.251-b08
2020-05-13 19:29:59  INFO: Memory limit heap: 3623mb non-heap: 0mb
2020-05-13 19:29:59  INFO: Character encoding: UTF-8 charset: UTF-8
2020-05-13 19:29:59  INFO: Version: 3.9-SNAPSHOT
2020-05-13 19:29:59  WARN: Table "GROUPS" not found; SQL statement:
SELECT * FROM groups [42102-193] - JdbcSQLException (... < QueryBuilder:62 < *:132 < DataManager:239 < DeviceManager:244 < ...)
2020-05-13 19:29:59  WARN: Table "APPLICATION_SETTINGS" not found; SQL statement:
SELECT s.id, s.bingMapsKey AS bingKey,
    us.speedUnit, us.centerLatitude AS latitude, us.centerLongitude AS longitude,
    us.zoomLevel AS zoom
    FROM application_settings AS s
    LEFT OUTER JOIN user_settings AS us ON us.id = s.userSettings_id [42102-193] - JdbcSQLException (... < QueryBuilder:62 < *:132 < DataManager:318 < PermissionsManager:88 < ...)

Wrapper file:

WARNING|wrapper|Service traccar|20-05-13 19:29:58|YAJSW: yajsw-beta-12.07
WARNING|wrapper|Service traccar|20-05-13 19:29:58|OS   : Windows 10/10.0/amd64
WARNING|wrapper|Service traccar|20-05-13 19:29:58|JVM  : Oracle Corporation/1.8.0_251/C:\Program Files\Java\jre1.8.0_251/64
INFO|wrapper|Service traccar|20-05-13 19:29:58|start delay: 0
INFO|wrapper|Service traccar|20-05-13 19:29:58|started process with pid 17316
INFO|17316/0|Service traccar|20-05-13 19:29:59|[INFO] StandardFileSystemManager - Using "C:\Windows\TEMP\vfs_cache" as temporary files store.
INFO|17316/0|Service traccar|20-05-13 19:29:59|[main] INFO com.zaxxer.hikari.HikariDataSource - HikariPool-1 - Started.
INFO|17316/0|Service traccar|20-05-13 19:29:59|[main] INFO org.eclipse.jetty.util.log - Logging initialized @1227ms
INFO|17316/0|Service traccar|20-05-13 19:29:59|java.lang.reflect.InvocationTargetException
INFO|17316/0|Service traccar|20-05-13 19:29:59|	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
INFO|17316/0|Service traccar|20-05-13 19:29:59|	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
INFO|17316/0|Service traccar|20-05-13 19:29:59|	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
INFO|17316/0|Service traccar|20-05-13 19:29:59|	at java.lang.reflect.Method.invoke(Unknown Source)
INFO|17316/0|Service traccar|20-05-13 19:29:59|	at org.rzo.yajsw.app.WrapperJVMMain.executeMain(WrapperJVMMain.java:60)
INFO|17316/0|Service traccar|20-05-13 19:29:59|	at org.rzo.yajsw.app.WrapperJVMMain.main(WrapperJVMMain.java:43)
INFO|17316/0|Service traccar|20-05-13 19:29:59|Caused by: java.lang.NullPointerException
INFO|17316/0|Service traccar|20-05-13 19:29:59|	at org.traccar.database.DeviceManager.getAllGroups(DeviceManager.java:273)
INFO|17316/0|Service traccar|20-05-13 19:29:59|	at org.traccar.database.PermissionsManager.refreshPermissions(PermissionsManager.java:104)
INFO|17316/0|Service traccar|20-05-13 19:29:59|	at org.traccar.database.PermissionsManager.<init>(PermissionsManager.java:81)
INFO|17316/0|Service traccar|20-05-13 19:29:59|	at org.traccar.Context.init(Context.java:244)
INFO|17316/0|Service traccar|20-05-13 19:29:59|	at org.traccar.Main.main(Main.java:35)
INFO|17316/0|Service traccar|20-05-13 19:29:59|	... 6 more
INFO|wrapper|Service traccar|20-05-13 19:30:00|calling onStop
INFO|wrapper|Service traccar|20-05-13 19:30:00|Win service stop - timeout: 30000
INFO|wrapper|Service traccar|20-05-13 19:30:00|Win service wrapper.control -> stopping application
INFO|wrapper|Service traccar|20-05-13 19:30:00|Win service stop - after shutdown
INFO|wrapper|Service traccar|20-05-13 19:30:00|Win service stop - before notify
INFO|wrapper|Service traccar|20-05-13 19:30:00|Win service terminated
Anton Tananaev5 years ago

Let me make it clear. It's not possible to get an error about port 5040 if you removed that port from the config. So, one of your statements must be incorrect. You are clearly missing something.

Anton Tananaev5 years ago

It doesn't seem like you are using official version of Traccar. What is "APPLICATION_SETTINGS" table?

sd55 years ago

This program is customized and works on Ubuntu operating system without any problems

Anton Tananaev5 years ago

Traccar doesn't need to be customized to work on Ubuntu. If you are not using official version of Traccar, you should be upfront about it.

sd55 years ago

I just added a series of features to the software that I found interesting, but I don't think that's a reason not to run the program on Windows. If so, it wouldn't work on Ubunto. This is an open source program, it's not?

sd55 years ago

For example, I added more maps, the seamark feature, and so on.....