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

Playbook dev HEAD has Gemini HTTP 500 error #1744

Closed
kayakr opened this issue Jan 26, 2021 · 8 comments
Closed

Playbook dev HEAD has Gemini HTTP 500 error #1744

kayakr opened this issue Jan 26, 2021 · 8 comments
Labels
Type: documentation provides documentation or asks for documentation. Type: question asks for support (asks a question)

Comments

@kayakr
Copy link
Contributor

kayakr commented Jan 26, 2021

If I spin up a fresh Playbook VM using dev branch (755f9d1 (HEAD -> refs/heads/dev, refs/remotes/origin/dev, refs/remotes/origin/HEAD) d9 build (#196)) the system builds and I can log in as admin, but on adding node/1 (Model=Collection) I get "The website encountered an unexpected error. Please try again later." and watchdog shows
GuzzleHttp\Exception\ServerException: Server error: GET http://127.0.0.1:8000/gemini/35282c65-f955-4cc6-bc03-632127311583` resulted in a 500 Internal Server Error response: <meta name="robots" content="noindex,nofollow (truncated...) in GuzzleHttp\Exception\RequestException::create() (line 113 of /var/www/html/drupal/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php).`

Also, the playbook now defaults to a Drupal 9.x build, but it would be good to document what's needed to build to 8.9.x instead; is inventory/vagrant/group_vars/webserver/drupal.yml the only place that Drupal core version needs to specified?

^ @dannylamb

@kayakr
Copy link
Contributor Author

kayakr commented Jan 26, 2021

Building from b4d6ac6 Update Tomcat groups_vars for Cantaloupe 4+ (#194) seems to work ok.

@kayakr
Copy link
Contributor Author

kayakr commented Jan 26, 2021

Rebuilt using commit 613f1ca but similar outcome. Looking at gemini.log:

[2021-01-26 16:25:04] app.INFO: Matched route "{route}". {"route":"GET_uuid","route_parameters":{"_controller":"gemini.controller:get","uuid":"876edd9c-8a32-4a8d-a340-3773f7958887","_route":"GET_uuid"},"request_uri":"http://127.0.0.1:8000/gemini/876edd9c-8a32-4a8d-a340-3773f7958887","method":"GET"} []
[2021-01-26 16:25:04] app.DEBUG: Checking for guard authentication credentials. {"firewall_key":"default","authenticators":1} []
[2021-01-26 16:25:04] app.DEBUG: Checking support on guard authenticator. {"firewall_key":"default","authenticator":"Islandora\\Crayfish\\Commons\\Syn\\JwtAuthenticator"} []
[2021-01-26 16:25:04] app.DEBUG: Calling getCredentials() on guard authenticator. {"firewall_key":"default","authenticator":"Islandora\\Crayfish\\Commons\\Syn\\JwtAuthenticator"} []
[2021-01-26 16:25:04] crayfish.syn.jwt_authentication.DEBUG: Token: eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJpYXQiOjE2MTE2OTk3NTYsImV4cCI6MTYxMTcwNjk1NiwiZHJ1cGFsIjp7InVpZCI6IjEifSwid2ViaWQiOiIxIiwiaXNzIjoiaHR0cHM6XC9cL2xvY2FsaG9zdDo4MDAwIiwic3ViIjoiYWRtaW4iLCJyb2xlcyI6WyJhdXRoZW50aWNhdGVkIiwiYWRtaW5pc3RyYXRvciIsImZlZG9yYWFkbWluIl19.HJI_u4wQdFaoi2hE0VAY1YpkDTMvviWTc6whTQ2AThksM8ej2ggIraJ615Y9MvBBsQl9XnbK434MTFekRsZiKY7t7MmvkD2qUabQuyCrNXt2XezjHw8DgFkyRw9L7ZeADkpL46l8oAnuJGRkvcbdJC4CxFRF7bCy10SlZY4JpDq8T6byMQ7wD5ImkWq-gXegCBJJP5eVgxKkqxrF5DTYgF7sMfzyoALgm3QVZTs_ciZRcRy3hWebOkGQ39LwwMPk9I0WkBzW4ZuV5zbEq9pNxGkLj9mKmN-SxK_Tzxg0D3zhiHYNND2lJWaErEQQy9_erx4xdYpd1QISykWJ3Mf2bA [] []
[2021-01-26 16:25:04] app.DEBUG: Passing guard token information to the GuardAuthenticationProvider {"firewall_key":"default","authenticator":"Islandora\\Crayfish\\Commons\\Syn\\JwtAuthenticator"} []
[2021-01-26 16:25:04] app.INFO: Guard authentication successful! {"token":"[object] (Symfony\\Component\\Security\\Guard\\Token\\PostAuthenticationGuardToken: PostAuthenticationGuardToken(user=\"admin\", authenticated=true, roles=\"authenticated, administrator, fedoraadmin\"))","authenticator":"Islandora\\Crayfish\\Commons\\Syn\\JwtAuthenticator"} []
[2021-01-26 16:25:04] app.DEBUG: Guard authenticator set no success response: request continues. {"authenticator":"Islandora\\Crayfish\\Commons\\Syn\\JwtAuthenticator"} []
[2021-01-26 16:25:04] app.DEBUG: Remember me skipped: it is not configured for the firewall. {"authenticator":"Islandora\\Crayfish\\Commons\\Syn\\JwtAuthenticator"} []
[2021-01-26 16:25:04] app.DEBUG: > GET /gemini/876edd9c-8a32-4a8d-a340-3773f7958887 [] []
[2021-01-26 16:25:04] app.CRITICAL: Pimple\Exception\UnknownIdentifierException: Identifier "crayfish.drupal_domain" is not defined. (uncaught exception) at /var/www/html/Crayfish/Gemini/vendor/pimple/pimple/src/Pimple/Container.php line 101 {"exception":"[object] (Pimple\\Exception\\UnknownIdentifierException(code: 0): Identifier \"crayfish.drupal_domain\" is not defined. at /var/www/html/Crayfish/Gemini/vendor/pimple/pimple/src/Pimple/Container.php:101)"} []
[2021-01-26 16:25:04] app.DEBUG: < 500 [] []

@dannylamb
Copy link
Contributor

dannylamb commented Jan 27, 2021

Ah, that's some config that was added to Gemini to make it so you could port your data between domains (e.g. stage.example.org to prod.example.org).

To make it work now, you need to add these two empty variables to your config.yaml

drupal_domain: 
fcrepo_domain:

But this is only happening because I was sloppy and am not providing a default value. I can add a try/catch block a la https://github.com/Islandora/Crayfish/blob/dev/Milliner/src/app.php#L23-L30 and provide those for you so you're not forced to add it to your config.

@wgilling
Copy link
Contributor

Do you remember which config yml file this is exactly?

To make it work now, you need to add these two empty variables to your config.yaml

drupal_domain: 
fcrepo_domain:

@elizoller
Copy link
Member

its in the gemini config at /var/www/html/Crayfish/Gemini/cfg/config.yaml

@wgilling
Copy link
Contributor

thank you --- I just found it because I assumed the file extension was a typo so I was searching for "config.yml", but yaml is the same as yml.

@elizoller
Copy link
Member

Also I think its fedora_domain not fcrepo_domain ?

@kstapelfeldt kstapelfeldt added Type: documentation provides documentation or asks for documentation. Type: question asks for support (asks a question) and removed documentation labels Sep 25, 2021
@kstapelfeldt
Copy link
Member

Hello! We are no longer using Gemini. Please update Islandora and you should no longer experience this issue. If you are still encountering an issue, please feel free to open or resubmit your issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: documentation provides documentation or asks for documentation. Type: question asks for support (asks a question)
Projects
None yet
Development

No branches or pull requests

5 participants