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

Cannot create application with Open ID Connect authentication #301

Open
a-mroz opened this issue Nov 12, 2022 · 2 comments
Open

Cannot create application with Open ID Connect authentication #301

a-mroz opened this issue Nov 12, 2022 · 2 comments

Comments

@a-mroz
Copy link

a-mroz commented Nov 12, 2022

Creating a new application usign 'Open ID Connect Authentication' option fails in the latest (8.3.0) docker image.

Logs:

fiware-keyrock  | 2022-11-12T20:08:02.484Z idm:web-application_controller --> create                                   
fiware-keyrock  | 2022-11-12T20:08:02.486Z idm:web-application_controller --> generate_app_certificates                                                                                                                                       fiware-keyrock  | 2022-11-12T20:08:02.526Z idm:web-application_controller Error:  Error: spawn /bin/sh ENOENT                                                                                                                                 fiware-keyrock  |     at Process.ChildProcess._handle.onexit (internal/child_process.js:274:19)                                                                                                                                               
fiware-keyrock  |     at onErrorNT (internal/child_process.js:469:16)                                                                                                                                                                         
fiware-keyrock  |     at processTicksAndRejections (internal/process/task_queues.js:82:21) {                                                                                                                                                  fiware-keyrock  |   errno: -2,                                                                                                                                                                                                                fiware-keyrock  |   code: 'ENOENT',                                                                                                                                                                                                           
fiware-keyrock  |   syscall: 'spawn /bin/sh',                                                                                                                                                                                                 
fiware-keyrock  |   path: '/bin/sh',                                                                                                                                                                                                          
fiware-keyrock  |   spawnargs: [                                                                                                                                                                                                              
fiware-keyrock  |     '-c',                                                                                                                                                                                                                   
fiware-keyrock  |     'openssl genrsa -out certs/applications/c9f898bf-322f-43dc-b455-90d0afda1c06-oidc-key.pem 2048 && openssl req -new -sha256 -key certs/applications/c9f898bf-322f-43dc-b455-90d0afda1c06-oidc-key.pem -out certs/applicat
ions/c9f898bf-322f-43dc-b455-90d0afda1c06-oidc-csr.pem -subj "/C=IK/ST=World/L=World/O=Frontier Test/OU=Frontier Test/CN=http" && openssl x509 -days 365 -req -in certs/applications/c9f898bf-322f-43dc-b455-90d0afda1c06-oidc-csr.pem -signkey certs/applications/c9f898bf-322f-43dc-b455-90d0afda1c06-oidc-key.pem -out certs/applications/c9f898bf-322f-43dc-b455-90d0afda1c06-oidc-cert.pem'                                                                                            
fiware-keyrock  |   ],                                                                                                                                                                                                                        
fiware-keyrock  |   cmd: 'openssl genrsa -out certs/applications/c9f898bf-322f-43dc-b455-90d0afda1c06-oidc-key.pem 2048 && openssl req -new -sha256 -key certs/applications/c9f898bf-322f-43dc-b455-90d0afda1c06-oidc-key.pem -out certs/appli
cations/c9f898bf-322f-43dc-b455-90d0afda1c06-oidc-csr.pem -subj "/C=IK/ST=World/L=World/O=Frontier Test/OU=Frontier Test/CN=http" && openssl x509 -days 365 -req -in certs/applications/c9f898bf-322f-43dc-b455-90d0afda1c06-oidc-csr.pem -sig
nkey certs/applications/c9f898bf-322f-43dc-b455-90d0afda1c06-oidc-key.pem -out certs/applications/c9f898bf-322f-43dc-b455-90d0afda1c06-oidc-cert.pem'                                                                                         
fiware-keyrock  | }                                                                                                                                                                                                                           
fiware-keyrock  | (node:1) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'length' of undefined                                                                                                                            
fiware-keyrock  |     at /opt/fiware-idm/controllers/web/applications.js:483:26                                                                                                                                                               
fiware-keyrock  |     at processTicksAndRejections (internal/process/task_queues.js:95:5)                                                                                                                                                     
fiware-keyrock  | (Use `node --trace-warnings ...` to show where the warning was created)                                                                                                                                                     
fiware-keyrock  | (node:1) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .ca
tch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)                                  
fiware-keyrock  | (node:1) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
@nikosft
Copy link
Contributor

nikosft commented Jan 24, 2023

I had a similar issue with 8.3.2 and the problem was that openssl was not installed in the container. See #314

@andrii482
Copy link
Contributor

same issue still exist in v.8.3.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants