Help with traccar


Recommended Posts

can someone help me understand why this wont pull down

/usr/bin/docker: Error response from daemon: OCI runtime create failed: container_linux.go:346: starting container process caused "process_linux.go:449: container init caused "rootfs_linux.go:58: mounting \"/mnt/traccar/traccar-web\" to rootfs \"/var/lib/docker/btrfs/subvolumes/f4df116db9a71738f7590c5ad155d4a2114c4c2f20479c6e074c1e99f7df9956\" at \"/var/lib/docker/btrfs/subvolumes/f4df116db9a71738f7590c5ad155d4a2114c4c2f20479c6e074c1e99f7df9956/opt/traccar/conf/traccar.xml\" caused \"not a directory\""": unknown: Are you trying to mount a directory onto a file (or vice-versa)? Check if the specified host path exists and is the expected type.

The command failed

/usr/bin/docker: Error response from daemon: OCI runtime create failed: container_linux.go:346: starting container process caused "process_linux.go:449: container init caused "rootfs_linux.go:58: mounting \"/mnt/traccar/traccar-web\" to rootfs \"/var/lib/docker/btrfs/subvolumes/f4df116db9a71738f7590c5ad155d4a2114c4c2f20479c6e074c1e99f7df9956\" at \"/var/lib/docker/btrfs/subvolumes/f4df116db9a71738f7590c5ad155d4a2114c4c2f20479c6e074c1e99f7df9956/opt/traccar/conf/traccar.xml\" caused \"not a directory\""": unknown: Are you trying to mount a directory onto a file (or vice-versa)? Check if the specified host path exists and is the expected type.

The command failed

Edited by Fiservedpi
Link to comment
22 minutes ago, Fiservedpi said:

It's a template from the app store I'm just not understanding what they mean by "add it to your host path first" 

You can go directly from the Apps page to the correct support thread for any of your dockers or plugins there by simply clicking on the (?) Support Thread link in the listing for the docker or plugin.

 

And just for completeness:

 

Installed dockers have a Support link from clicking on the docker icon on the Dashboard or Docker page. Installed plugins have a Support link from the Plugins page.

 

Link to comment

A template for this would be great!

 

When installing I get:

 

Quote

/usr/bin/docker: Error response from daemon: OCI runtime create failed: container_linux.go:346: starting container process caused "process_linux.go:449: container init caused "rootfs_linux.go:58: mounting \"/mnt/user/appdata/traccar/traccar.xml\" to rootfs \"/var/lib/docker/btrfs/subvolumes/e93dd231bb7f35fda48cf2d1987aa7b7cc65b2babecf2d38eeb751ff0ce2f040\" at \"/var/lib/docker/btrfs/subvolumes/e93dd231bb7f35fda48cf2d1987aa7b7cc65b2babecf2d38eeb751ff0ce2f040/opt/traccar/conf/traccar.xml\" caused \"not a directory\""": unknown: Are you trying to mount a directory onto a file (or vice-versa)? Check if the specified host path exists and is the expected type.

 

I tried changing the port ranges as I have stuff in the 5000 range.

 

Thanks

 

H.

 

 

Edited by hernandito
Link to comment
On 3/5/2020 at 10:28 AM, Roxedus said:

You need to download the xml linked in the description, place it somewhere on your array, and add the path for the xml to the `traccar.xml` volume mapping

Sorry.... can you advise where the .xml can be downloaded, and how do you map it? A screenshot would help..

 

thank you!

Link to comment

Getting there, but stuck. I use ls-io letsencrypt docker. Don’t know how to configure a conf file so that a device can send its location to Traccer. I’m testing with my phone.

 

I created a new conf file based on my CouchPotato and it look like this

;

Quote

# first go into couchpotato settings, under "General" set the URL Base to /couchpotato and restart the couchpotato container

 

location ^~ /traccar {

    # enable the next two lines for http auth

#   auth_basic "CP";

#   auth_basic_user_file /config/.htpasswd;

 

    # enable the next two lines for ldap auth, also customize and enable ldap.conf in the default conf

    #auth_request /auth;

    #error_page 401 =200 /login;

 

    include /config/nginx/proxy.conf;

    resolver 127.0.0.11 valid=30s;

  #  set $upstream_couchpotato CouchPotato;

     proxy_pass http://192.168.0.201:7000;

}

 

I changed my port range to the 7000s. 

 

In my phone, the status shows “location update”. But in my Traccer web UI it shows the device as “offline”. 

 

Any help?

Link to comment
On 3/8/2020 at 7:10 AM, Roxedus said:


I have never used traccar, does it actually serve on /traccar? Does it support that base path?

I tried both SUBDOMAIN and subfolder. I somehow ended up messing up my letsencrypt setup. I gave up on it. If someone has a good reverse proxy .conf that would be great.

Edited by hernandito
Link to comment
  • 2 years later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.