Code Monkey home page Code Monkey logo

Comments (7)

fgebhart avatar fgebhart commented on June 14, 2024 3

Another one for future reference: I had to run

# get path to mountpoint
docker volume inspect zwift-$USER

Copy the value associated with the key Mountpoint. For me this was /var/lib/docker/volumes/zwift-myuser/_data.
And then:

# change the owner of this mountpoint path to your current user
sudo chown -R myuser:myuser  /var/lib/docker/volumes/zwift-myuser/_data

Followed by:

zwift

Hope that helps!

from zwift.

netbrain avatar netbrain commented on June 14, 2024 2

For future reference, zwift.sh should never be sudo'ed.

from zwift.

bigbuka avatar bigbuka commented on June 14, 2024 2

Thanks for pointing me to the solution. I also had to run "sudo usermod -aG docker $USER" then restart my pc. After that it worked like a charm! Thanks so much for getting Zwift to us linux users! :-D

from zwift.

carlohamalainen avatar carlohamalainen commented on June 14, 2024

The container uses $HOME/.zwift/$USER for the home directory volume; can you check that on your PC? You're using sudo so it might be looking for /root/.zwift/root ?

Try running the zwift.sh script with these two set lines so we can see what it's trying to do:

#!/bin/bash

set -e # add this
set -x # add this

# The home directory to store zwift data
ZWIFT_HOME=${ZWIFT_HOME:-$HOME/.zwift/$USER}

(rest of the file)

from zwift.

eskimos20 avatar eskimos20 commented on June 14, 2024

Its trying to create the following. And when I look in the folders it seems as it has created everything.

eskimos@ESKIMOS-HTPC:~/bin$ sudo ./zwift.sh

  • ZWIFT_HOME=/root/.zwift/root
  • IMAGE=docker.io/netbrain/zwift
  • VERSION=latest
  • mkdir -p /root/.zwift/root
  • docker pull docker.io/netbrain/zwift:latest
    latest: Pulling from netbrain/zwift
    Digest: sha256:bb0a748bce2bfa8a957f8dee5587783bd0368d7b9eced7fe213505e75f6c7eca
    Status: Image is up to date for netbrain/zwift:latest
    docker.io/netbrain/zwift:latest
  • [[ -f /proc/driver/nvidia/version ]]
  • VGA_DEVICE_FLAG='--gpus all'
    ++ docker run -d --rm --privileged -e DISPLAY=:0 -v /tmp/.X11-unix:/tmp/.X11-unix -v /run/user/0/pulse:/run/user/1000/pulse -v /root/.zwift/root:/home/user/Zwift --gpus all docker.io/netbrain/zwift:latest
  • CONTAINER=a92d94335974774cb46a6c651b5e2c7734d27371680af81b4acc831b4cc28fc7
    ++ docker inspect '--format={{ .Config.Hostname }}' a92d94335974774cb46a6c651b5e2c7734d27371680af81b4acc831b4cc28fc7
  • xhost +local:a92d94335974
    non-network local connections being added to access control list

from zwift.

eskimos20 avatar eskimos20 commented on June 14, 2024

Found out that this was already handled in an closed issue. I will try set my folder with chmod 1000.

from zwift.

eskimos20 avatar eskimos20 commented on June 14, 2024

Worked like a charm now.

I had missed that docker should not be runned as sudo aswell as the script itself.

Thanks a lot for this :)

from zwift.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.