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: raptor not found #63

Closed
fabiangabel opened this issue Aug 7, 2021 · 5 comments
Closed

Bug: raptor not found #63

fabiangabel opened this issue Aug 7, 2021 · 5 comments

Comments

@fabiangabel
Copy link
Contributor

Description of Bug

After starting the container, the application in the web browser is not accessible but the error message raptor not found. shows up, see the screenshot below

Steps to Reproduce

Use the current repository on Linux Mint 20.2 and carry out the docker installation instructions as provided in README.md.

Further Infos

I used git bisect to find the commit that may have broken the app:

6307b7123cd61bdbdccd43716cff5d65ab9e34e8 is the first bad commit
commit 6307b7123cd61bdbdccd43716cff5d65ab9e34e8
Author: K. Andrew Parker <kparker@citytech.cuny.edu>
Date:   Thu Jul 15 16:03:51 2021 -0400

    minimal access in production mode

 lib/RenderApp.pm                       | 48 ++++++++++++--------
 lib/RenderApp/Controller/Render.pm     | 80 ++++++++++++++++++----------------
 templates/exception.production.html.ep | 27 ++++++++++++
 3 files changed, 100 insertions(+), 55 deletions(-)
 create mode 100644 templates/exception.production.html.ep

Here ist the complete trajectory of my git bisect

container$ git bisect log
git bisect start
# bad: [d2d844efa2f7a2a651b1ba91cfb49e5ff48a84a1] Merge pull request #62 from drdrew42/feature/strict-production-mode
git bisect bad d2d844efa2f7a2a651b1ba91cfb49e5ff48a84a1
# good: [cb433f7607965c4f0a9c6c9b97be0a4e17ddaf9c] add jwt/jwe-generator endpoints
git bisect good cb433f7607965c4f0a9c6c9b97be0a4e17ddaf9c
# good: [084fec0860edc4f83dd6d5c3b58d246fda7c4dc0] Merge pull request #60 from pstaabp/update-install-instructions
git bisect good 084fec0860edc4f83dd6d5c3b58d246fda7c4dc0
# bad: [6307b7123cd61bdbdccd43716cff5d65ab9e34e8] minimal access in production mode
git bisect bad 6307b7123cd61bdbdccd43716cff5d65ab9e34e8
# good: [7fc2e5cf40d5cf8d51df7a8b4796e82968fd915b] Merge pull request #61 from drdrew42/feature/jwt-jwe-api
git bisect good 7fc2e5cf40d5cf8d51df7a8b4796e82968fd915b
# first bad commit: [6307b7123cd61bdbdccd43716cff5d65ab9e34e8] minimal access in production mode

image

@fabiangabel fabiangabel changed the title raptor not found Bug: raptor not found Aug 7, 2021
@taniwallach
Copy link
Contributor

PR #62 was intended to make the development features (such as the editor page and far more) only available when MOJO_MODE is set to development, as well as to require using a problemJWT when making requests in production mode.

The Dockerfile currently sets MOJO_MODE=production which us what breaks the access to the local editor on localhost:3000 .

There was a change in the PR which was supposed to use the render_app.conf.dist or render_app.conf file to set the MOJO_MODE, but it apparently does not work as @drdrew42 intended, at least not for Docker setups.

I think that the simplest fix to get back the editor for now is to edit Dockerfile and to replace the line

ENV MOJO_MODE=production

with

ENV MOJO_MODE=development

and then to rebuild the container. That seems to work around the issue for now.

@fabiangabel
Copy link
Contributor Author

Yes, I confirm that this fixed the issue for me.

@Miniland1333
Copy link
Contributor

Could you please confirm if #72 closes this issue or if you think that additional work needs to be done?

@fabiangabel
Copy link
Contributor Author

Yes, #72 solves the issue for me.

@Miniland1333
Copy link
Contributor

Closed by #72

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