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

[Bug] Access mainick_keycloak_client.yaml before even created when installing the library #21

Closed
valentimarco opened this issue Sep 5, 2024 · 1 comment
Assignees
Labels
invalid This doesn't seem right

Comments

@valentimarco
Copy link

Using the latest version (2.1), it's trying to access the yaml config

Possible solution
When installing the library the first time, check if the yaml is properly created (check if the file yaml exist and the required fields exists). If not than create a default

appuser@cc8aad1fbc04:/var/www/symfony$ composer require mainick/keycloak-client-bundle
Xdebug: [Step Debug] Could not connect to debugging client. Tried: host.docker.internal:9003 (fallback through xdebug.client_host/xdebug.client_port).
Cannot create cache directory /home/appuser/.composer/cache/repo/https---repo.packagist.org/, or directory is not writable. Proceeding without cache. See also cache-read-only config if your filesystem is read-only.
./composer.json has been updated
Running composer update mainick/keycloak-client-bundle
Loading composer repositories with package information
Cannot create cache directory /home/appuser/.composer/cache/repo/https---repo.packagist.org/, or directory is not writable. Proceeding without cache. See also cache-read-only config if your filesystem is read-only.
Cannot create cache directory /home/appuser/.composer/cache/repo/flex/, or directory is not writable. Proceeding without cache. See also cache-read-only config if your filesystem is read-only.
Updating dependencies
Nothing to modify in lock file
Installing dependencies from lock file (including require-dev)
Nothing to install, update or remove
Package php-http/message-factory is abandoned, you should avoid using it. Use psr/http-factory instead.
Generating optimized autoload files
121 packages you are using are looking for funding.
Use the `composer fund` command to find out more!

Run composer recipes at any time to see the status of your Symfony recipes.

Executing script cache:clear [KO]
 [KO]
Script cache:clear returned with error code 1
!!  Xdebug: [Step Debug] Could not connect to debugging client. Tried: host.docker.internal:9003 (fallback through xdebug.client_host/xdebug.client_port).
!!  
!!  In MainickKeycloakClientExtension.php line 25:
!!                                             
!!    Warning: Undefined array key "keycloak"  
!!                                             
!!  
!!  Xdebug: [Step Debug] Could not connect to debugging client. Tried: host.docker.internal:9003 (fallback through xdebug.client_host/xdebug.client_port).
!!  Xdebug: [Step Debug] Could not connect to debugging client. Tried: host.docker.internal:9003 (fallback through xdebug.client_host/xdebug.client_port).
!!  Xdebug: [Step Debug] Could not connect to debugging client. Tried: host.docker.internal:9003 (fallback through xdebug.client_host/xdebug.client_port).
!!  
Script @auto-scripts was called via post-update-cmd
@mainick mainick self-assigned this Sep 14, 2024
@mainick mainick added the invalid This doesn't seem right label Sep 14, 2024
@mainick
Copy link
Owner

mainick commented Sep 14, 2024

According to the instructions in the "Configuration" chapter of the README on GitHub, you must create the mainick_keycloak_client.yaml file before proceeding with the installation. There is an open issue #1 to automate the file creation using Symfony Flex.

@mainick mainick closed this as completed Sep 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

2 participants