0

I'am trying to configure QWC against my QGIS project. Using GWC Admin under docker under WLS. After fixing all project warnings when trying generete configuration a ended with this error. Is it about creating some directories or change privillegies but I can not find where. to do it.

Error while refreshing config cache:

Python Exception: [Errno 13] Permission denied: '/srv/qwc_service/config-out/default/>adminGuiConfig.json' Traceback (most recent call last): File "/srv/qwc_service/./server.py", line 55, in generate_configs generator.write_configs() File "/srv/qwc_service/./config_generator/config_generator.py", line 346, in >write_configs copyfile( File "/usr/lib/python3.9/shutil.py", line 266, in copyfile with open(dst, 'wb') as fdst: PermissionError: [Errno 13] Permission denied: '/srv/qwc_service/config-out/default/>adminGuiConfig.json'

Vince
20.5k16 gold badges49 silver badges65 bronze badges
asked Apr 24, 2024 at 10:42

1 Answer 1

0

I had the same error message and was able to fix it. Recently the documentation was revised and 4 important steps were removed.

In the old documentation (https://github.com/qwc-services/qwc-docker/commit/8198850167b8912b546700361093ce054dec6f71#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5)

the following steps are still performed:

  • Change the ownership of the writeable volumes accordingly:

    sudo chown -R 33:33 volumes/attachments
    sudo chown -R 33:33 volumes/config
    sudo chown -R 33:33 volumes/qgs-resources
    sudo chown -R 33:33 volumes/qwc2/assets
    

If you execute these afterwards and restart the server with "docker restart $(docker ps -q)" it should work.

Translated with DeepL.com (free version)

answered May 14, 2024 at 9:00

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.