Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docker run issue #3

Open
rocklinsuv opened this issue Sep 22, 2017 · 17 comments
Open

docker run issue #3

rocklinsuv opened this issue Sep 22, 2017 · 17 comments

Comments

@rocklinsuv
Copy link

rocklinsuv commented Sep 22, 2017

Hi danielsnider,

I've been trying to get MapViz running along with MapProxy according to your tutorial. When I tried to run "sudo docker run -p 8080:8080 -d -t -v ~/mapproxy:/mapproxy danielsnider/mapproxy", it initially downloaded the docker image, then the second time returned a chain of numbers and characters like "5d23e78.......". I then check the MapProxy demo http://127.0.0.1:8080/demo but nothing happened. So I would like to know if we need to install MapProxy individually before using the docker image? I would also like to know what is the code used for from this url: https://github.com/danielsnider/docker-mapproxy-googlemaps. Do I need to download it and use it along with docker?

Another issue will be I'm currently living in a country without Google (sucks). Is there an alternative WTMS with terrain maps rather than Google Maps? Any thoughts will be very much appreciated!

Best Regards,
rocklinsuv

@danielsnider
Copy link
Owner

danielsnider commented Sep 22, 2017 via email

@rocklinsuv
Copy link
Author

rocklinsuv commented Sep 22, 2017

Hi danielsnider,

I've captured a screenshot of the "docker run" command output:
image

I used "docker ps" but getting nothing. I also realized that I'm using a 32bit Ubuntu Mate 16.04, so the docker is docker.io rather than docker-ce. Do you think this is causing the issue? Since there is no container running, I could not use the "docker logs" command. Here's what I got from "docker info":

Containers: 6
Running: 0
Paused: 0
Stopped: 6
Images: 2
Server Version: 1.12.6
Storage Driver: aufs
Root Dir: /var/lib/docker/aufs
Backing Filesystem: extfs
Dirs: 27
Dirperm1 Supported: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
Volume: local
Network: host bridge overlay null
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Security Options: apparmor seccomp
Kernel Version: 4.10.0-35-generic
Operating System: Ubuntu 16.04.3 LTS
OSType: linux
Architecture: i686
CPUs: 2
Total Memory: 1.435 GiB
Name: ubuntu
ID: ZDK7:TDC6:LTXF:NT76:XXT3:H4O2:XJCA:LXN4:2ICI:DWG7:DOD6:TF2O
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
WARNING: No swap limit support
Insecure Registries:
127.0.0.0/8

And the "docker images" command shows:
REPOSITORY TAG IMAGE ID CREATED SIZE
hello-world latest abd130ec0722 6 weeks ago 664.6 kB
danielsnider/mapproxy latest 571a6aeb022d 7 months ago 1.031 GB

I'm also trying to google (I did manage to use Google but on my Windows machine, and the Ubuntu was running on a virtual machine) why the container won't start. So any help is very much appreciated ^_^

Update:
I downloaded the "ubuntu" images and successfully ran it. The "docker ps" command is giving me:

CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
16deded98e59 ubuntu "/bin/bash" 13 seconds ago Up 12 seconds sharp_engelbart

Cheers,
rocklinsuv

@danielsnider
Copy link
Owner

danielsnider commented Sep 22, 2017 via email

@rocklinsuv
Copy link
Author

rocklinsuv commented Sep 22, 2017

Okay, when I "docker ps -a", it showed:

image

So I "docker logs 3e0a5a21d387", it gave me:

image

@danielsnider
Copy link
Owner

danielsnider commented Sep 22, 2017 via email

@rocklinsuv
Copy link
Author

Both hello-world and python:2.7 bash were running successfully. It is a bit late now (2am) so I'll try your method tomorrow. Thanks again for all your help!

@danielsnider
Copy link
Owner

danielsnider commented Sep 22, 2017 via email

@rocklinsuv
Copy link
Author

rocklinsuv commented Sep 25, 2017

Hi Daniel,

It seems like there's a pip-install issue:
image

Everything was fine until the "pip install" command. I also googled the "cannot import name _remove_dead_weakref" error. It said it was some kinda python version issue, but still I have no clue how to solve this.

Any thoughts? Thanks again for all your help 👍

Cheers,

@danielsnider
Copy link
Owner

danielsnider commented Sep 25, 2017 via email

@rocklinsuv
Copy link
Author

rocklinsuv commented Sep 25, 2017

I believe it was any package. So it was the "pip install" which failed.

I even added a line "RUN pip install" before the original "RUN pip install Shapely" line and still got this error message:
image

@danielsnider
Copy link
Owner

danielsnider commented Sep 25, 2017 via email

@rocklinsuv
Copy link
Author

rocklinsuv commented Sep 25, 2017 via email

@rocklinsuv
Copy link
Author

Hi Daniel,

I'm so glad that I've resolved the problem. I was using Ubuntu Mate 16.04 32bit with docker.io, so now I switched to Ubuntu Mate 16.04 64bit with docker-ce and the error is GONE! Now I'm re-installing ROS to test MapViz :D.

Best Regards,
rocklinsuv

@rocklinsuv
Copy link
Author

Okay, it's done! Thank you so much for your help 👍
screenshot at 2017-09-25 09 17 36

Also, I'm wondering if we could install MapProxy individually (not in docker) and achieve the same thing? I suppose we just need to modify the yaml file to set the ports correctly. Is it correct?

@danielsnider
Copy link
Owner

danielsnider commented Sep 26, 2017 via email

@rocklinsuv
Copy link
Author

Hi Daniel,

It's me again. I've encountered a seeding issue so I would like to see you have any thought. My seed.yaml file looks like this:

seeds:
myseed1:
caches: [gm_cache]
grids: [gm_grid]
coverages: [act]
levels:
to: 16
refresh_before:
time: 2013-10-10T12:35:00
coverages:
act:
datasource: 'shp/ACT_STATE_POLYGON_shp.shp'
srs: 'EPSG:4283'

The shape file contains the boundary of Australian Captial Territory in EPSG 4283 coordinate. I managed to cache the entire ACT area using the mapproxy-seed -f mapproxy.yaml -s seed.yaml -c 6 command. After seeding, I launched MapViz, zoomed in to the ACT area, disconnected the internet to see if MapViz will load the map from MapProxy local cache. However, the map looks like empty. I did check the cache_data folder and it contains the PNG files (several MBs of data). I'm wondering if there's anything I've done wrong, maybe the srs:EPSG stuff?. Any thought would be very much appreciated!
BTW, I'm not using docker but directly porting MapProxy to MapViz.

Cheers,
rocklinsuv

@rocklinsuv
Copy link
Author

LMAO, I'm such an idiot. A simple click on the "Save" button solved all the problem lol. Sorry to bother you again :D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants