build and run Traccar web interface from source code?

saikrupa20126 years ago

after downloading source code of traccar web from github and extracting files from zip folder...how to build and run traccar web interface?

Anton Tananaev6 years ago

I would recommend to check out main Traccar repo with submodules. Then just run Traccar project and web app will work automatically.

saikrupa20126 years ago

main traccar repo is this:

  1. https://github.com/traccar/traccar-web
    OR
  2. https://github.com/traccar/traccar
    ....?

when i try to run the source code obtained from link 1 in eclipse ...

each time after i login , the login page is displayed again n again in output ...

what could be the reason?

saikrupa20126 years ago

following this link :
link
after clicking on maven ->next -->next--> import project window shows "nothing to show/import"

am i missing something?

saikrupa20126 years ago

followed this link to build ttaccar in netbeans:
netbeans-traccar

although my output shows
```
Scanning for projects...

Building traccar 3.16-SNAPSHOT

--- exec-maven-plugin:1.2.1:exec (default-cli) @ traccar ---
[main] INFO com.zaxxer.hikari.HikariDataSource - HikariPool-1 - Starting...
[main] INFO com.zaxxer.hikari.HikariDataSource - HikariPool-1 - Start completed.
INFO 4/10/18 6:16 PM: liquibase: Clearing database change log checksums
INFO 4/10/18 6:16 PM: liquibase: Successfully acquired change log lock
INFO 4/10/18 6:16 PM: liquibase: Successfully released change log lock
INFO 4/10/18 6:16 PM: liquibase: Successfully acquired change log lock
INFO 4/10/18 6:16 PM: liquibase: Reading from PUBLIC.DATABASECHANGELOG
INFO 4/10/18 6:16 PM: liquibase: Reading from PUBLIC.DATABASECHANGELOG
INFO 4/10/18 6:16 PM: 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: Constraint "UK_USER_TOKEN" not found; SQL statement:
ALTER TABLE PUBLIC.users DROP CONSTRAINT uk_user_token [90057-196] [Failed SQL: ALTER TABLE PUBLIC.users DROP CONSTRAINT uk_user_token]
INFO 4/10/18 6:16 PM: liquibase: Successfully released change log lock
[main] INFO org.eclipse.jetty.util.log - Logging initialized @6171ms
[main] INFO org.eclipse.jetty.server.Server - jetty-9.2.24.v20180105
[main] INFO org.eclipse.jetty.server.handler.ContextHandler - Started o.e.j.s.ServletContextHandler@78d6447a{/api,null,AVAILABLE}
[main] INFO org.eclipse.jetty.server.handler.ContextHandler - Started o.e.j.s.ServletContextHandler@6a094db2{/console,null,AVAILABLE}
[main] INFO org.eclipse.jetty.server.handler.ContextHandler - Started o.t.w.@75ae4a1f{/,null,AVAILABLE}
[main] INFO org.eclipse.jetty.server.ServerConnector - Started ServerConnector@21bd20ee{HTTP/1.1}{0.0.0.0:8082}
[main] INFO org.eclipse.jetty.server.Server - Started @9990ms

```

but when i put http://localhost:8082 in browser ...
shows '404 not found'

what might be the error??

Veerendra6 years ago

Hello @saikrupa2012@gmail.com

  1. Check folder NetBeansProjects\traccar-master\traccar-web\web
  2. It should contain web files
  3. you can find web files from https://github.com/traccar/traccar-web/tree/master/web
  4. It works in my case.
Anton Tananaev6 years ago

Main repo is called Traccar:

https://github.com/traccar/traccar

You need to clone it with submodules.

Rodrigues6 years ago

Boa tarde, Sou novo aqui, moro no Brasil, estou aprendendo a trabalhar com este sistema. Alguém poderia me ajuadar como alterar a porta de acesso padrão de http://localhost:8082 para outra qualquer . Obrigado!

Anton Tananaev6 years ago

@Rodrigues, please don't ask questions on random unrelated threads.

Anthony Mark4 years ago

I had the same problem of '404 not found' when I navigate to http://localhost:8082 in browser
As Anton mentioned we need to clone it with submodules.
As per this doc https://git-scm.com/book/en/v2/Git-Tools-Submodules
You must run two commands:
git submodule init to initialize your local configuration file,
and git submodule update to fetch all the data from that project and check out the appropriate commit listed in your superproject:

What I did was clone the traccar-web git repo and replace the traccar-web folder in the traccar main project.
It worked, just though to share hoping it might help someone

Fabricio3 years ago

Hello! i´m having problems running the traccar web here too. How do I clone the repo with submodules?

Carlos Mukoyi2 years ago