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

Bad gateway error when accessing oralhistory #208

Open
lpwevers opened this issue Dec 1, 2021 · 6 comments
Open

Bad gateway error when accessing oralhistory #208

lpwevers opened this issue Dec 1, 2021 · 6 comments
Assignees
Labels

Comments

@lpwevers
Copy link

lpwevers commented Dec 1, 2021

I've build a LaMachine docker container using this dockerfile:

FROM proycon/lamachine:core
MAINTAINER Maarten van Gompel <[email protected]>
LABEL description="A LaMachine installation with Kaldi NL and Oral History (CLST)"
RUN sudo apt install python3-apt
RUN lamachine-config lm_base_url https://lnx-hrl-269v.pwo.ou.nl
RUN lamachine-config private true
RUN lamachine-add python-core
RUN lamachine-add labirinto
RUN lamachine-add kaldi_nl
RUN lamachine-add oralhistory
RUN lamachine-update
ENTRYPOINT [ "/usr/local/bin/lamachine-start-webserver", "-f" ]

After the build completes without errors, I can access the LaMachine portal page. However, when I try to access "Automatic Transcription of Dutch Speech Recordings" I end up with a 502 Bad Gateway error. The URL it tries to access is
http://lnx-htl-269v.pwo.ou.nl:8080/oralhistory

It was my assumption that with the "lamachine-add oralhistory" command it would have built and configured this. So I guess I'm missing something, but what?

Kind regards,
Louis

@proycon
Copy link
Owner

proycon commented Dec 2, 2021 via email

@proycon proycon self-assigned this Dec 2, 2021
@proycon proycon added the bug label Dec 2, 2021
@proycon
Copy link
Owner

proycon commented Dec 2, 2021 via email

@lpwevers
Copy link
Author

lpwevers commented Dec 2, 2021

The server mentioned in the URL (lnx-hrl-269v.pwo.ou.nl) is the server that runs the docker container. It forwards incoming traffic on port 8080 to port 80 of the LaMachine docker container.

As it's not configured to use HTTPS (yet) contacting that URL directly didn't work. So I tried running a browser from the host server and access the LaMachine from there using normal HTTP. The result was, unfortunately, the same.

I'll rebuild with the force_https true option and see if that fixes the issue.

As for the other, accessing http://lnx-hrl-269v:8080/lamastats/ works. That brings me to a page called "CLAM Webservice Statistical Report". Since nothing is done yet the report is empty, but I guess that's expected.

@proycon
Copy link
Owner

proycon commented Dec 2, 2021 via email

@lpwevers
Copy link
Author

lpwevers commented Dec 2, 2021

I rebuild with lamachine-config force_https true. But alas, that does not configure nginx to actually listen on port 443, so I can't even connect then.

It does rewrite the links on the portal page to https but they don't work.

@proycon
Copy link
Owner

proycon commented Dec 2, 2021

Yes, that is by design, it ensures the links are rewritten properly but LaMachine itself never handles https, your reverse proxy needs to do that, so testing that properly will only work if the reverse proxy is properly set up.

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

No branches or pull requests

2 participants