ConductionNL / commonground-gateway

The Common Gateway repository provides a quick Kubernetes wrapper for the Common Gateway Symfony Bundle. In other words, it doesn't aim to be its own code base but simply contains the files needed to create Kubernetes images and Helm installers for the core bundle.
https://commongateway.app/
2 stars 11 forks source link

docker compose error #1503

Closed sgort closed 1 year ago

sgort commented 1 year ago

Running docker compose up --build fails with the following error

image

rjzondervan commented 1 year ago

Hi @sgort!

We're working on it. We'll keep you posted.

rjzondervan commented 1 year ago

Hi @sgort,

We just merged the PR above, could you check if running docker compose up with a new pull returns better results?

sgort commented 1 year ago

Guess it's working now.

image

sgort commented 1 year ago

Next question... Hoe/waar kom ik in de Common Gateway?

"Omdat OpenCatalogi een Common Gateway plugin is kan je vervolgens simpelweg in de Common Gatewayy naar plugins navigeren, zoeken naar OpenCatalogi, en op installeren klikken." Bron: https://github.com/OpenCatalogi#alternatieve-installatie-route

rjzondervan commented 1 year ago

Hi @sgort,

The common gateway control panel can be found on http://localhost:8000 on default setups.

sgort commented 1 year ago

Die mag in de doc erbij. Ik zal een PR voorbereiden image

sgort commented 1 year ago

Guess common-gateway/changeme! aren't the right login credentials?

WilcoLouwerse commented 1 year ago

Hi @sgort,

The default credentials for the common gateway are: no-reply@test.com !ChangeMe!

I hope this helps! Where and how did you find the common-gateway/changeme! credentials?

sgort commented 1 year ago

See network error image

sgort commented 1 year ago

Found credentials here https://github.com/sgort/commonground-gateway/blob/c8aa0649d0f2c6b217825ec68f5fd7dad2cab3e5/.env#L166

rjzondervan commented 1 year ago

Has the PHP container shown the following lines yet?

commonground-gateway-php-1       | [21-Jun-2023 08:18:31] NOTICE: fpm is running, pid 1
commonground-gateway-php-1       | [21-Jun-2023 08:18:31] NOTICE: ready to handle connections
WilcoLouwerse commented 1 year ago

(If not^ the common gateway control panel can't reach the common gateway yet)

sgort commented 1 year ago

Guess not image

rjzondervan commented 1 year ago

Ah, seems your gateway hasn't got permission to create its dependency folder yet. Could you create the folder vendor in the api folder and try again?

sgort commented 1 year ago

Created vendor folder and restarted containers. Same error image

rjzondervan commented 1 year ago

Okay, I see you use Ubuntu, in that case it might be wise to run the following commands:

chmod 777 -R api/vendor api/public api/var api/config
chmod 777 api/composer.lock api/composer.json api/src/Logger/SessionDataProcessor.php

Docker and ubuntu manage to create some permission collisions on the gateway unfortunately.

sgort commented 1 year ago

Nice!

image