Universe starter agent error


#1

Hi,

I get an error: "error connecting to /tmp/tmux-0/default (No such file or directory)"
when trying to run the universe starter agent, I had a bit of trouble installing all the libraries and also with file permissions,
any idea how to fix this error? Thanks.

cheers,
Jamie

bill@bill-VirtualBox:~/gym/universe-starter-agent$ sudo python train.py --num-workers 2 --env-id PongDeterministic-v3 --log-dir /tmp/pong
[sudo] password for bill:
mkdir -p /tmp/pong
tmux kill-session -t a3c
tmux new-session -s a3c -n ps -d
tmux new-window -t a3c -n w-0
tmux new-window -t a3c -n w-1
tmux new-window -t a3c -n tb
tmux new-window -t a3c -n htop
sleep 1
tmux send-keys -t a3c:ps ‘CUDA_VISIBLE_DEVICES= /usr/bin/python worker.py --log-dir /tmp/pong --env-id PongDeterministic-v3 --num-workers 2 --job-name ps’ Enter
tmux send-keys -t a3c:w-0 ‘CUDA_VISIBLE_DEVICES= /usr/bin/python worker.py --log-dir /tmp/pong --env-id PongDeterministic-v3 --num-workers 2 --job-name worker --task 0 --remotes 1’ Enter
tmux send-keys -t a3c:w-1 ‘CUDA_VISIBLE_DEVICES= /usr/bin/python worker.py --log-dir /tmp/pong --env-id PongDeterministic-v3 --num-workers 2 --job-name worker --task 1 --remotes 1’ Enter
tmux send-keys -t a3c:tb ‘tensorboard --logdir /tmp/pong --port 12345’ Enter
tmux send-keys -t a3c:htop ‘htop’ Enter
error connecting to /tmp/tmux-0/default (No such file or directory)


#2

That’s a bening warning. You can run “tmux a” after that to connect to your tmux session.


#3

Thanks, I tried this for the universe-starter-agent and go this error:

bill@bill-VirtualBox:~/gym/universe-starter-agent$ sudo python train.py --num-workers 2 --env-id gym-core.PongDeterministic-v3 --log-dir /tmp/vncpong
mkdir -p /tmp/vncpong
tmux kill-session -t a3c
tmux new-session -s a3c -n ps -d
tmux new-window -t a3c -n w-0
tmux new-window -t a3c -n w-1
tmux new-window -t a3c -n tb
tmux new-window -t a3c -n htop
sleep 1
tmux send-keys -t a3c:ps ‘CUDA_VISIBLE_DEVICES= /usr/bin/python worker.py --log-dir /tmp/vncpong --env-id gym-core.PongDeterministic-v3 --num-workers 2 --job-name ps’ Enter
tmux send-keys -t a3c:w-0 ‘CUDA_VISIBLE_DEVICES= /usr/bin/python worker.py --log-dir /tmp/vncpong --env-id gym-core.PongDeterministic-v3 --num-workers 2 --job-name worker --task 0 --remotes 1’ Enter
tmux send-keys -t a3c:w-1 ‘CUDA_VISIBLE_DEVICES= /usr/bin/python worker.py --log-dir /tmp/vncpong --env-id gym-core.PongDeterministic-v3 --num-workers 2 --job-name worker --task 1 --remotes 1’ Enter
tmux send-keys -t a3c:tb ‘tensorboard --logdir /tmp/vncpong --port 12345’ Enter
tmux send-keys -t a3c:htop ‘htop’ Enter
lost server
no server running on /tmp/tmux-0/default
no server running on /tmp/tmux-0/default
no server running on /tmp/tmux-0/default
no server running on /tmp/tmux-0/default
no server running on /tmp/tmux-0/default
no server running on /tmp/tmux-0/default
no server running on /tmp/tmux-0/default
no server running on /tmp/tmux-0/default
no server running on /tmp/tmux-0/default
bill@bill-VirtualBox:~/gym/universe-starter-agent$

cheers,
Jamie


#4

If you have nmap installed you can run “nmap locahost” to see all the clients.
This is the output i get.

Starting Nmap 7.12 ( https://nmap.org ) at 2016-12-29 13:47 GMT
Nmap scan report for localhost (127.0.0.1)
Host is up (0.00011s latency).
Not shown: 994 closed ports
PORT      STATE SERVICE
631/tcp   open  ipp
5900/tcp  open  vnc
5901/tcp  open  vnc-1
5902/tcp  open  vnc-2
5903/tcp  open  vnc-3
12345/tcp open  netbus

#5

Hi,

I am also trying to get the starter agent working but I get the same error and when I type “tmux a” I get a “no sessions” message, nothing else happening.

What else can I do?

Thanks for your help!


#6

Thank you! This helped me solve the dreaded VNC Viewer cannot connect message on Mac OS. I noticed that 127.0.0.1 had 5901 open and so I tried 127.0.0.1:5901 in VNC and it worked when localhost:5901 did not work.

However, I still don’t know how the nmap scan can help me solve the earlier error “no server running on /private/tmp/tmux-501/default”.