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

export-map returns a non-specified error "Error {}" on Ubuntu server #11

Open
scuglik opened this issue Jan 30, 2018 · 1 comment
Open

Comments

@scuglik
Copy link

scuglik commented Jan 30, 2018

Hello,
I installed mapbox-map-image-export on ubuntu server 16.04 LTS running locally onl VirtualBox. After installing mesa drivers, xvfb xorg etc.... export works correctly. When i did the same process on Ubuntu 16.04 on Amazon EC2 instance i got "Error {}". I have tried almost everything but without any change. Both ubuntu systems are very similar on EC2 there are the same packages as on VBox server. I have tried debug the scripts and it stops when creates mapboxgl instance in map_mosaic_stream.js

var map = new mapboxgl.Map({
container: mapDiv,
style: style
})

Any suggestions?
Thank you

@yassine-khachlek
Copy link

yassine-khachlek commented Jun 20, 2019

I have the same issue, it work fine locally (Ubuntu), but when i have installed it in a VPS running under Ubuntu 16.04, it always fail and returns a non-specified error "Error {}".

It seem like it's something related to electron that fail when the GPU is missing since there is no GPU in a VPS.

I have try everything like --disable-gpu or using virtual display server /usr/bin/xvfb-run -a -s '-screen 0 1280x1024x24' export-map ...

Any ideas?

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