qwc-services / qwc-docker

Docker containers for qwc-services
MIT License
48 stars 36 forks source link

Error on generating service configuration #44

Closed GetBack2Basics closed 2 years ago

GetBack2Basics commented 2 years ago

I can add new resources etc but when I click on 'Generate service config' - I get an 'Error while refreshing config cache:'

jquery.min.js:4          POST http://1111:8088/qwc_admin/generate_configs 504 (Gateway Time-out)
send @ jquery.min.js:4
ajax @ jquery.min.js:4
n.<computed> @ jquery.min.js:4
(anonymous) @ (index):125
dispatch @ jquery.min.js:3
r.handle @ jquery.min.js:3

The Map Services run fine.

Here's the full log

Request URL: http://111111:8088/qwc_admin/generate_configs
Request Method: POST
Status Code: 504 Gateway Time-out
Remote Address: 111111:8088
Referrer Policy: strict-origin-when-cross-origin
Connection: keep-alive
Content-Length: 494
Content-Type: text/html
Date: Mon, 28 Feb 2022 04:19:16 GMT
ETag: "6075b537-1ee"
Server: nginx
Accept: */*
Accept-Encoding: gzip, deflate
Accept-Language: en-AU,en-GB;q=0.9,en-US;q=0.8,en;q=0.7
Connection: keep-alive
Content-Length: 102
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
Cookie: csrftoken=IWX8l6wDFBeROpGtDSWSxwxeFrBKHJ9npGhEP06zt9x4gx2I4wM2yOvr8thIFRiw; sessionid=lsk9vwxoi979eid8m4ipqww2lzsic3bh; access_token_cookie=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJmcmVzaCI6ZmFsc2UsImlhdCI6MTY0NjAxOTY1NSwianRpIjoiOTE4OWQ4ZDUtMTU5ZS00YzA5LThhYWEtZTFhMWFhOGI0ZGE1IiwidHlwZSI6ImFjY2VzcyIsInN1YiI6ImFkbWluIiwibmJmIjoxNjQ2MDE5NjU1LCJjc3JmIjoiYzBiNmQ5MDktYmJkNy00NjdkLTg4NjktNDQ0ZmJmYjI2OTA0IiwiZXhwIjoxNjQ2MDYyODU1fQ.sZ7yXDYzl6Ry5lwnVbxRJ_q71yd7HERNHxKF1QvpaLo; csrf_access_token=c0b6d909-bbd7-467d-8869-444fbfb26904; session=.eJwtjktqBDEMBe_idRaWbFnWXKaR9WGGQALdM6uQu48DWVbB49VPOfKM615uz_MVH-V4eLkVCMaAkITekbohug6PkYCIqdosCcRT6xrVmsBk29TNNbAqNWqNpa6sjLamdYa97D4n9jooYCXL1rZkMAETErqTSpszW1LZIa8rzv-ajXadeTy_P-NrC-TVsP5daIilGWksdFGwIEJc1FWrtPL7Bt1SPy8.YhxE5A.FZY8A4w2f6tMTKUUZOfHAmShZzM
Host: 111111:8088
Origin: http://111111:8088
Referer: http://111111:8088/qwc_admin/
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.102 Safari/537.36
X-Requested-With: XMLHttpRequest

This is on Ubuntu 20.04

manisandro commented 2 years ago

What does the docker container log show?

GetBack2Basics commented 2 years ago

Once I deleted all the resources, then used the "Add resources", the problem fixed itself.