Coder Social home page Coder Social logo

docker-qgis-desktop's Introduction

QGIS Desktop for Docker

A simple docker container that runs QGIS desktop

Note: this is still experimental and probably does not represent the most optimal way to do this. Current limitations:

  • Qt4 theme is not carried over nicely
  • Uses xhost + which is not ideal since it allows all remote hosts to display windows on your X display (probably not an issue if you are on a local network). Note: See #16 - you can avoid using xhost + by running the script at the docker user. You will need to modify my scripts accordingly.
  • To use in Mac OS X docker host environment, you need to install an X11 server like XQuartz and SOCAT to tunnel the connection.

This image is also the base image for the QGIS-Server docker image.

License

GPL V2

Example use with docker compose

Here is a contrived example showing how you can run QGIS Desktop from in a docker container using docker-compose. Note you may need to run xhost + first. Example docker-compose follows:

db:
  image: kartoza/postgis:9.4-2.1
  environment:
    - USERNAME=docker
    - PASS=docker
  
qgisdesktop:
  image: kartoza/qgis-desktop:2.14
  hostname: qgis-server
  volumes:
    # Wherever you want to mount your data from
    - ./gis:/gis
    # Unix socket for X11
    - /tmp/.X11-unix:/tmp/.X11-unix
  links:
    - db:db
  environment: 
    - DISPLAY=unix:1
  command: /usr/bin/qgis

To run the example do:

docker-compose up

You should see QGIS start up and appear on your local display. For more detailed approaches to using and building the QGIS container, see below.

Note: The database in the above example is stateless (it will be deleted when running docker-compose rm). If you want to connect to the PG database from docker use the following info:

  • host: db
  • database: gis
  • user: docker
  • password: docker

Getting the image

Use the docker repository:

This will consume the most bandwidth for the initial build but will be easy to update thereafter.

docker pull kartoza/qgis-desktop

You will also need to create the desktop shortcut yourself by taking the resources from the git repo e.g.:

sudo cp run-qgis-master-in-docker.sh /usr/local/bin
sudo cp QGIS-2.8.Docker.desktop /usr/share/applications/
sudo cp qgis-icon-60x60.png /usr/local

Build the image yourself:

Clone the repo to your local system and then run the build.sh script - it will create a launcher script in /usr/local/bin and create a desktop shortcut that will launch QGIS.

git clone git://github.com/kartoza/docker-qgis-desktop
# cd into one of the version directories
cd docker-qgis-desktop/master
./build.sh

Alternative build:

To build the image do:

docker build -t kartoza/qgis-desktop git://github.com/kartoza/docker-qgis-desktop

If you follow this approach you will need to create the application launcher yourself, manually. Consult the sources in this repository for more details on how to do that.

Run a container

To run a container do (see alternative approach to doing this using docker-compose at the top of this document):

xhost +
# Users home is mounted as home
# --rm will remove the container as soon as it ends

docker run --rm --name="qgis-desktop-master" \
	-i -t \
	-v ${HOME}:/home/${USER} \
	-v /tmp/.X11-unix:/tmp/.X11-unix \
	-e DISPLAY=unix$DISPLAY \
	kartoza/qgis-desktop:latest 
xhost -

The above is the content of run-qgis-master-in-docker.sh so you can just

./run-qgis-master-in-docker.sh

Follow the instructions above to create a desktop shortcut. Then, when you click on the QGIS icon this script will run and start the container.

Note that your home directory will be mounted in the container and thus accessible to QGIS. If you want other directories to be available, just add then to run-qgis-in-docker.sh with -v flags.

If QGIS crashes or hangs it might leave an orphan docker process running. If you see the process with

docker ps

Then run

docker stop <process id or container name>

Else run

docker ps -a

then

docker rm <process id or container name>



-----------

Tim Sutton ([email protected])
July 2014

docker-qgis-desktop's People

Contributors

conoria avatar gubuntu avatar gustry avatar luipir avatar rduivenvoorde avatar samweli avatar thadk avatar timlinux avatar xavitorello avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

docker-qgis-desktop's Issues

i got a issue about GID and UID

i pulled 'kartoza/qgis-desktop:2.18' but i have a error that..
groupadd: GID '0' already exists
useradd: UID 0 is not unique
No passwd entry for user '..'

what can i do this error ?
plz answer my question. Thanks

User issue

I am just starting with docker and I am trying to run a docker container, but this user issue just keep happening. Any ideas on how to fix this?

$ docker run --rm --name="qgis-desktop-2.18ltr" -t -i -v '/windows/Bruno/Engenharia Geologica/TCC' -e DISPLAY=unix$DISPLAY kartoza/qgis-desktop:2.18.10

groupadd: GID '0' already exists
useradd: UID 0 is not unique
No passwd entry for user '..'

Build fail and hub not update

I see that the new image is based on ubuntu 16.04 image but on your docker hub the image is steel base on debian 8 jessie, can you update it please
Then I decided to build by my own your image but the recepe failed at 96% when i want to build qgis the issue is may be the reson why your hub is not up to date and show error when he want to build your image to
Can you fix it as soon as possible thank you

cp does not work

buils.sh fails on Debian (possibly because of the lack of sud for normal user) with:

{{{
Step 15 : RUN apt-get remove dpkg -l | grep -e \-dev | grep -v sed 's/ii//g' | sed 's/rc//g' | sed 's/^ *//;s/ *$//' | sed 's/ \+ /\t/g' | cut -f 1
---> Running in 2aa889080bde
grep: s/ii//g: No such file or directory
}}}
then
{{{
Successfully built 3319cbc9f1e7
[sudo] password di paolo:
cp: impossibile eseguire stat di 'run-qgis-2.8-in-docker.sh': File o
directory non esistente
cp: impossibile eseguire stat di 'QGIS-2.8.Docker.desktop': File o
directory non esistente
}}}
in fact,
run-qgis-2.8-in-docker.sh and sudo cp QGIS-2.8.Docker.desktop are not found in 2.8/

Tag 2.14 not found in repository docker.io/kartoza/qgis-desktop

I'm trying to run a container but have Tag 2.14 not found in repository docker.io/kartoza/qgis-desktop error.

anthony-o@mypc:~$ docker run -it --rm kartoza/qgis-desktop:2.14
Unable to find image 'kartoza/qgis-desktop:2.14' locally
Pulling repository docker.io/kartoza/qgis-desktop
docker: Tag 2.14 not found in repository docker.io/kartoza/qgis-desktop.
See 'docker run --help'.
anthony-o@mypc:~$ docker pull kartoza/qgis-desktop:2.14
Pulling repository docker.io/kartoza/qgis-desktop
Tag 2.14 not found in repository docker.io/kartoza/qgis-desktop

Is there a problem with your image on docker.io?

Setup instructions

Looks like in the instructions there is a simple error. Line should be changed to
"sudo chmod +x /usr/local/bin/run-qgis-in-docker.sh".

"sudo cp run-qgis-in-docker.sh /usr/local/bin
sudo chmod +x ${HOME}/bin/run-qgis-in-docker.sh
sudo cp QGIS-2.4.Docker.desktop /usr/share/applications/
sudo cp qgis-icon-60x60.png /usr/local"

QGIS 2.18 wont start

Hi!

Wanting to run the 2.18 version.

This is my docker-compose

db:
  image: kartoza/postgis:9.4-2.1
  environment:
    - USERNAME=docker
    - PASS=docker
  
qgisdesktop:
  image: kartoza/qgis-desktop:2.18
  hostname: qgis-server
  volumes:
    # Wherever you want to mount your data from
    - ./gis:/gis
    # Unix socket for X11
    - /tmp/.X11-unix:/tmp/.X11-unix
  links:
    - db:db
  environment: 
    - DISPLAY=unix:1
  command: /usr/bin/qgis

Getting this error from the qgisdesktop

qgisdesktop_1  | /usr/lib/libqgis_core.so.2.18.20(QgsMessageLog::logMessage(QString const&, QString const&, QgsMessageLog::MessageLevel)+0x100)[0x7f6f80709660]
qgisdesktop_1  | /usr/bin/qgis[0x40c029]
qgisdesktop_1  | /usr/lib/x86_64-linux-gnu/libQtCore.so.4(qt_message_output(QtMsgType, char const*)+0x2f)[0x7f6f7fd89e9f]
qgisdesktop_1  | /usr/lib/x86_64-linux-gnu/libQtCore.so.4(+0x15543c)[0x7f6f7fe6f43c]
qgisdesktop_1  | /usr/lib/x86_64-linux-gnu/libQtCore.so.4(QFile::open(QFlags<QIODevice::OpenModeFlag>)+0xcd)[0x7f6f7fe24b4d]
qgisdesktop_1  | /usr/lib/libqgis_core.so.2.18.20(QgsLogger::logMessageToFile(QString const&)+0x72)[0x7f6f806c72b2]
qgisdesktop_1  | Warning: QFile::at: Cannot set file position 0 
qgisdesktop_1  | Stacktrace (piped through c++filt):
qgisdesktop_1  | /usr/bin/qgis[0x40bbb2]
qgisdesktop_1  | /usr/bin/qgis[0x40bff2]
qgisdesktop_1  | /usr/lib/x86_64-linux-gnu/libQtCore.so.4(qt_message_output(QtMsgType, char const*)+0x2f)[0x7f6f7fd89e9f]
qgisdesktop_1  | /usr/lib/x86_64-linux-gnu/libQtCore.so.4(+0x15543c)[0x7f6f7fe6f43c]
qgisdesktop_1  | /usr/lib/x86_64-linux-gnu/libQtCore.so.4(QFile::open(QFlags<QIODevice::OpenModeFlag>)+0xcd)[0x7f6f7fe24b4d]
qgisdesktop_1  | /usr/lib/libqgis_core.so.2.18.20(QgsLogger::logMessageToFile(QString const&)+0x72)[0x7f6f806c72b2]
qgisdesktop_1  | /usr/lib/libqgis_core.so.2.18.20(QgsLogger::debug(QString const&, int, char const*, char const*, int)+0x418)[0x7f6f806c7768]
qgisdesktop_1  | /usr/lib/libqgis_core.so.2.18.20(QgsMessageLog::logMessage(QString const&, QString const&, QgsMessageLog::MessageLevel)+0x100)[0x7f6f80709660]
qgisdesktop_1  | /usr/bin/qgis[0x40c029]
qgisdesktop_1  | /usr/lib/x86_64-linux-gnu/libQtCore.so.4(qt_message_output(QtMsgType, char const*)+0x2f)[0x7f6f7fd89e9f]
qgisdesktop_1  | /usr/lib/x86_64-linux-gnu/libQtCore.so.4(+0x15543c)[0x7f6f7fe6f43c]
qgisdesktop_1  | /usr/lib/x86_64-linux-gnu/libQtCore.so.4(QFile::open(QFlags<QIODevice::OpenModeFlag>)+0xcd)[0x7f6f7fe24b4d]
qgisdesktop_1  | /usr/lib/libqgis_core.so.2.18.20(QgsLogger::logMessageToFile(QString const&)+0x72)[0x7f6f806c72b2]
qgisdesktop_1  | /usr/lib/libqgis_core.so.2.18.20(QgsLogger::debug(QString const&, int, char const*, char const*, int)+0x418)[0x7f6f806c7768]
qgisdesktop_1  | /usr/lib/libqgis_core.so.2.18.20(QgsMessageLog::logMessage(QString const&, QString const&, QgsMessageLog::MessageLevel)+0x100)[0x7f6f80709660]
qgisdesktop_1  | /usr/bin/qgis[0x40c029]
qgisdesktop_1  | /usr/lib/x86_64-linux-gnu/libQtCore.so.4(qt_message_output(QtMsgType, char const*)+0x2f)[0x7f6f7fd89e9f]
qgisdesktop_1  | /usr/lib/x86_64-linux-gnu/libQtCore.so.4(+0x15543c)[0x7f6f7fe6f43c]
qgisdesktop_1  | /usr/lib/x86_64-linux-gnu/libQtCore.so.4(QFile::open(QFlags<QIODevice::OpenModeFlag>)+0xcd)[0x7f6f7fe24b4d]
qgisdesktop_1  | /usr/lib/libqgis_core.so.2.18.20(QgsLogger::logMessageToFile(QString const&)+0x72)[0x7f6f806c72b2]
kartoza_qgisdesktop_1 exited with code 13

Plugin installation failed: Connection closed

I am not able to install python plugins. I get either a connection timeout or connection closed error.

I am using version 2.14 and the status for plugin repositories is 'connected'.

Edit:
How can I at least install a plugin manually if not possible through the GUI?

container won't start on osx

Hello,

when trying to start container from mac (capitan) I get following errors:

bash-4.3$ docker run --rm --name="qgis-desktop-2.12" -i -t -v ${HOME}:/home/${USER} -v /tmp/.X11-unix:/tmp/.X11-unix -e DISPLAY=unix$DISPLAY kartoza/qgis-desktop:latest
groupadd: GID '50' already exists
bash: /usr/local/qgis-master/bin/qgis: No such file or directory

I'm pulling image from the docker hub. Any idea why container is not starting?

Marin

Problem with (K)ubuntu 18.04

The default Ubuntu 18.04 installation of qgis runs into problems. The error message is:

QH6249 qh_lib_check: Incorrect qhull library called.  Size of qhT for caller is 8184, but for library is 2896.
QH6255 qh_lib_check: Cannot continue.  Library 'qhull 7.2.0 (2015.2 2016/01/18)' uses a dynamic qhT via qh_QHpointer (e.g., qhull_p.so)

An entry on Stackexchange indicates that this is due to a Scipy version mismatch:

Got the same problem on Linux Mint and finally fixed it.

The problem is that you've installed a few python libraries and one of them is a dependency of QGIS.

QGIS ~2.18 works fine with Scipy 0.17, and after upgrade this library to the newest version you have 0.19.

QGIS won't load with 0.19 because libqhull error.

All you need to do is downgrade, simply:

pip install scipy==0.17
And everything should be ok. You can also try with newer version but I'm not sure which one is good. I downgraded to 0.11 and it works form me again.

The standard Ubuntu 18.04 version of Scipy is 0.19. I did not want to uninstall that , so I thought Docker might offer a solution. Unfortunately, run-qgis-2.18ltr-in-docker.sh results in the same problem with the qhull library. It would appear that the Dockerfile is picking up the standard Ubuntu 18.04 version of Scipy.

I eventually solved the problem outside of Docker by using a Python 2 virtual environment (with pipenv) which picked up all the global site packages (including SIP). Then I added Scipy 17.0 to the virtual environment to call pipenv run qgis to launch qgis. You might need to add a similar solution to the Dockerfiles for qgis 2.XX to get them to run on Ubuntu 18.04.

problems building 3.0 (docker-qgis-desktop/3.0)

Hi!

I did a clone today and did build the 3.0.
my system is : Ubuntu 19.10

I got the following error:

CMake Error at python/plugins/db_manager/cmake_install.cmake:41 (file):
  file INSTALL cannot find
  "/build/release/python/plugins/db_manager/resources_rc.py".
Call Stack (most recent call first):
  python/plugins/cmake_install.cmake:42 (include)
  python/cmake_install.cmake:129 (include)
  cmake_install.cmake:63 (include)

-i

Qgis-desktop with windows

Hi !
I've tried, following your guide, to setup docker-qgis-desktop in my windows environment. Unfortunately i haven't succeed this way...

Do you have an idea if this image can work on docker-windows and how ?

Thanks !

I found a way to not use 'xhost'

There is a way where you don't use xhost. You have to run as the same user within the image as you use to run the image. I use and environment variable to pass that information into the image.

If interested take a look at timcera/qgis-desktop-debian.

Thanks for setting this up. Your work was my initial guide.

Python error when starting 2.12 or 2.10

Just tried to create latest, 2.12 and 2.10 on my machine (haven't tried the others yet, so don't know if they exhibit the same behavior or not).

QGIS runs, but with the following error on startup:

Couldn't load plugin 'processing' from ['/usr/share/qgis/python', '/home/dick/.qgis2/python', 
'/home/dick/.qgis2/python/plugins', '/usr/share/qgis/python/plugins', '/usr/lib/python2.7', 
'/usr/lib/python2.7/plat-x86_64-linux-gnu', '/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old', 
'/usr/lib/python2.7/lib-dynload', '/usr/local/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages', 
'/home/dick/.qgis2//python']

Looking on the goog, it looks like this is some kind of pyqt4 or scintilla problem possibly. I am happy to put in the legwork for fixing if someone can point me in the right direction. Is this something I need on my local machine or in the docker container (it sort of looks like it might need fixing locally). I am running ubuntu 15.10 if that helps debug.

Thanks

osgeo [python-gdal] mdule is missing

Hi, when I run the 2.18.12 and 2.14.16 images I encounter this error:

image

There is after that a message that the processing and metasearch plugins can't be load (I think it is related)

QGIS works quite well but the python console is not working.

image

I think it is because I don't have any spatial library (and especially GDAL) on the python installation from the host machine.
I'm running on a fresh ubuntu mate 16.04.3 with python 2.7.12

Is there a way to install it on the docker image ? Or do I have to install it on my host python ?
How can I do that ?

Please note that for the 2.14 image I didn't encounter this error and the python console works pretty well.

For the moment I only tested those 3 images only.

Thanks,

Nicolas

Container complains about no start.sh

When I try to run the container, it complains that there is no start.sh script to run. It seems it was dropped from the Dockerfiles in this commit c2489be.

The following is the code I was trying to run:

docker run --rm --name="qgis-desktop-ltr" \
	-i -t \
	-v ${HOME}:/home/${USER} \
	-v /tmp/.X11-unix:/tmp/.X11-unix \
	-e DISPLAY=unix$DISPLAY \
	kartoza/qgis-desktop:2.14.6

Warning: QFile::at: Cannot set file position 0

When running with macOS Mojave 10.14.4, Docker version 18.09.1, build 4c52b90, kartoza/qgis-desktop f8fe86a53fe7 (10 months ago) I get this message output on a loop:

Stacktrace (piped through c++filt):
qgis[0x40bbb2]
qgis[0x40bff2]
/usr/lib/x86_64-linux-gnu/libQtCore.so.4(qt_message_output(QtMsgType, char const*)+0x2f)[0x7fb49f9d3e9f]
/usr/lib/x86_64-linux-gnu/libQtCore.so.4(+0x70371)[0x7fb49f9d4371]
/usr/lib/x86_64-linux-gnu/libQtCore.so.4(qWarning(char const*, ...)+0xa1)[0x7fb49f9d45e1]
/usr/lib/x86_64-linux-gnu/libQtGui.so.4(+0x242356)[0x7fb49eeb2356]
/usr/lib/x86_64-linux-gnu/libQtGui.so.4(QApplicationPrivate::construct(_XDisplay*, unsigned long, unsigned long)+0xd2)[0x7fb49ee392a2]
/usr/lib/x86_64-linux-gnu/libQtGui.so.4(QApplication::QApplication(int&, char**, bool, int)+0x68)[0x7fb49ee39678]
/usr/lib/libqgis_core.so.2.18.19(QgsApplication::QgsApplication(int&, char**, bool, QString const&, QString const&)+0x2f)[0x7fb4a01be3ef]
qgis[0x405ae8]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf0)[0x7fb49e32e830]
qgis(_start+0x29)[0x40b779]

Does anybody have any ideas?

How to enable python plugin support?

I currently only see 17 plugins listed, and none of the normal web plugins. The Plugins > Settings tab says: "... No Python support detected ...". How could I enable that? Would that require a rebuild with some different settings?

Build hangs

Thanks for a great docker container. Unfortunately I cannot get it working using the following command, for example:

 sudo ./run-qgis-2.14ltr-in-docker.sh 

I get loads of output then it hangs with this message:

/usr/lib/libqgis_core.so.2.18.17(_ZN9QgsLogger16logMessageToFileERK7QString+0x72)[0x7f6f13ec6632]

Tried in both the 2.18 and 2.14 folders. Context: I'm working with @jannes-m on an open source book titled Geocomputation with R. Dockerisation would be great for reproducibility and testing and help others access the power of QGIS.

Cannot connect to X server unix:1

Hello,

I tried to run your docker qgis (without attaching to a postgis db) but it failed:

Pulling qgisdesktop (kartoza/qgis-desktop:2.14)...
2.14: Pulling from kartoza/qgis-desktop
8b87079b7a06: Pull complete
a3ed95caeb02: Pull complete
313cd0003722: Pull complete
c6c61c066ed5: Pull complete
e33e35a14640: Pull complete
655f54fb8796: Pull complete
8b688443b5e4: Pull complete
6fde39a647f9: Pull complete
1c2c6f3d0e0b: Pull complete
10faa1575c24: Pull complete
2127edd83feb: Pull complete
a5ea21a90b19: Pull complete
13f33ae799bd: Pull complete
52762fd4efdc: Pull complete
d77e68ef7695: Pull complete
Digest: sha256:5c9da833ff651c7829614d800f1da2493f2a386d7b3e3a42bdec1d0e0f58dd4f
Status: Downloaded newer image for kartoza/qgis-desktop:2.14
Creating qgis_qgisdesktop_1
Attaching to qgis_qgisdesktop_1
qgisdesktop_1 | Warning: qgis: cannot connect to X server unix:1
qgis_qgisdesktop_1 exited with code 1

2.18 missing requirements

Some basic 2.18 dependences are not satisfied:

  • gdal (see #27)
  • qsci
  • requests
  • pyspatialite
  • psycopg2
  • jinja2
  • pygments

Please, review it and provide a fix

docker container fails to run

Hi,

I had been playing around with your excellent docker image of QGIS but lately I've been having some issues getting this docker container to run. I started receiving the error messages that the container was in use, so I used the docker ps -a command to find held containers and then removed them with `docker rm [container id].

This didn't resolve the issue so I removed the image, and rebuilt it from your instructions. Everything seemed to go fine, but I'm now getting the following error message when I attempt to run docker using:
sudo docker run --rm --name="qgis-desktop-2-4" -i -t -v ${HOME}:/home/${USER} -v /tmp/.X11-unix:/tmp/.X11-unix -e DISPLAY=unix$DISPLAY kartoza/qgis-desktop:latest

error message:
useradd: warning: the home directory already exists. Not copying any file from skel directory into it. bash: /usr/bin/qgis: No such file or directory

I've pasted the contents of my /var/log/upstart/docker.log file here: @http://nnmm.nl/?5s5

I'm running Ubuntu 14.04 btw.

Thanks

Marty

p.s. let me know if you want me to provide any other logs/details

Clarify license

Hi! Great project - would you be so kind to clarify the license of this project? For example add a LICENSE file and a short statement to the readme? Thanks!

qgis-desktop:LTR wont run in fedora 28

I pulled the docker repository using
docker pull kartoza/qgis-desktop:LTR
When running the script run-qgis-2.18ltr-in-docker.sh the output is:

access control disabled, clients can connect from any host
Warning: qgis: cannot connect to X server unix:0
Stacktrace (piped through c++filt):
/usr/bin/qgis[0x40bbb2]
/usr/bin/qgis[0x40bff2]
/usr/lib/x86_64-linux-gnu/libQtCore.so.4(qt_message_output(QtMsgType, char const*)+0x2f)[0x7f97d9258e9f]
/usr/lib/x86_64-linux-gnu/libQtCore.so.4(+0x70371)[0x7f97d9259371]
/usr/lib/x86_64-linux-gnu/libQtCore.so.4(qWarning(char const*, ...)+0xa1)[0x7f97d92595e1]
/usr/lib/x86_64-linux-gnu/libQtGui.so.4(+0x242356)[0x7f97d8737356]
/usr/lib/x86_64-linux-gnu/libQtGui.so.4(QApplicationPrivate::construct(_XDisplay*, unsigned long, unsigned long)+0xd2)[0x7f97d86be2a2]
/usr/lib/x86_64-linux-gnu/libQtGui.so.4(QApplication::QApplication(int&, char**, bool, int)+0x68)[0x7f97d86be678]
/usr/lib/libqgis_core.so.2.18.20(QgsApplication::QgsApplication(int&, char**, bool, QString const&, QString const&)+0x2f)[0x7f97d9a433ef]
/usr/bin/qgis[0x405ae8]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf0)[0x7f97d7bb3830]
/usr/bin/qgis(_start+0x29)[0x40b779]
access control enabled, only authorized clients can connect

This issue occurs in both X and Wayland.

QGIS 2.8 build no longer has qgis executable.

The 2.8.9 and 2.8.4 version (and perhaps the 2.6 version) seems to have a build issue so the qgis executable is not created. I tried the docker-hub version and tried to build my own and saw a similar issue.

I need this for a legacy build so I'm going to keep working around this but if you have any tips, welcome. Maybe worth retiring 2.8 as it doesn't contain qgis.

docker exec -t 9b14520d20d54017b4f12e450f5e28797d0ebce19592d6942fc23fd236c9906f  \
	qgis  \
	 --code /opt/data/rasterScripts/lacPopulationZonalStats.py \
	 --nologo \
		/opt/data/data/shp/continents-levels2-LAC_pop.shp
OCI runtime exec failed: exec failed: container_linux.go:348: starting container process caused "exec: \"qgis\": executable file not found in $PATH": unknown

Here is the last error of the build process.

$ ./build.sh
Sending build context to Docker daemon  52.22kB
Step 1/6 : FROM ubuntu:16.04
16.04: Pulling from library/ubuntu
b234f539f7a1: Pull complete
55172d420b43: Pull complete
5ba5bbeb6b91: Pull complete
43ae2841ad7a: Pull complete
f6c9c6de4190: Pull complete
Digest: sha256:b050c1822d37a4463c01ceda24d0fc4c679b0dd3c43e742730e2884d3c582e3a
Status: Downloaded newer image for ubuntu:16.04
 ---> 5e8b97a2a082
Step 2/6 : MAINTAINER Tim Sutton<[email protected]>
 ---> Running in b24769e6ae12
Removing intermediate container b24769e6ae12
 ---> 417ab3347df7
Step 3/6 : ENV LANG C
...
[ 62%] Building CXX object src/gui/CMakeFiles/qgis_gui.dir/symbology-ng/qgssmartgroupeditordialog.cpp.o
[ 62%] Building CXX object src/gui/CMakeFiles/qgis_gui.dir/attributetable/qgsattributetabledelegate.cpp.o
The command '/bin/sh -c /build/scripts/getDeps.sh &&     /build/scripts/getCode.sh &&     /build/scripts/make.sh &&     /build/scripts/clean.sh' returned a non-zero code: 137

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.