-
Notifications
You must be signed in to change notification settings - Fork 5
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
Error 503 When requesting REST API endpoints #48
Comments
Hi Gabriel, would you try the mariadb image with the tag 20200308
<https://hub.docker.com/layers/rubinlab/mariadb/20200308/images/sha256-6785309e2fb510ec5cdc4f65e2043417715039bf4ebd12ebe5a5ff7b18ed59a7?context=explore>,
rubinlab/mariadb:20200308. You will need to edit it in docker-compose.yml
file which is in your epad_lite_dist folder. After that please run the
commands below;
1.docker-compose down
2. docker-compose build --no-cache mymariadb
3. docker-compose up -d
to run the commands above you need to be in your epad_lite_dist folder.
Please let me know how it goes. We can do it together.
Best Regards
|
Thank you @acavit I'll try your suggestion and let you know if it resolved the issue. If I'm still getting errors maybe we can look at it together as you said. |
@acavit Thank you for the suggestion, I updated the docker-compose.yml file to use the |
Hi Gabriel, you are welcome. If I am not wrong you set localhost as the
server name for epad. Am I right ? If it is the case please change it to a
valid hostname or a valid ip. You can test the validity by pinging the
name/ip (ping ip or ping hostname) . Please don't use localhost or
127.0.0.1 .
Let me know please if this doesn't work we can set a zoom meeting.
Regards.
…On Mon, Feb 14, 2022, 4:52 PM Gabriel Benavidez ***@***.***> wrote:
@acavit <https://github.com/acavit> Thank you for the suggestion, I
updated the docker-compose.yml file to use the rubinlab/mariadb:20200308
image. This resolved the first error I was getting from the mariadb
container stating: Access denied for user 'admin'@'localhost' (using
password: YES). I performed steps 1 and 3 from your suggestion and
skipped step 2 because the docker-compose.yml is set to use an image rather
than build an image from mariadb/Dockerfile. I still seem to be getting
the second and third error in my original post which is the epad_lite
container cannot connect to mariadb, and the epad_js container is
returning a 503 for API requests. Please let me know if you have any
suggestions as how I can resolve the epad_lite to mariadb connection issue.
I am also available to video chat sometime soon if we're still having
trouble resolving the errors.
Thank you again.
—
Reply to this email directly, view it on GitHub
<#48 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACFUAUV4D6EXZ3MJTVXSEW3U3GPVBANCNFSM5N32MZ4Q>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
@acavit After trying your last suggestion I'm still having trouble getting the ePAD server running properly. I changed the host parameter in the epad.yml file from "localhost" to my actual IP address and regenerated the epad_lite_dist directory. I also tried adding a hostname to my etc/hosts file called "indiana" (which points to my IP address) and using that hostname. Could you please clarify if this is along the lines of what you suggested in your last message. Note: I also tried using the "thick" mode and changing epadlite and epadjs to use tag v0.5 instead of master as suggested from a closed issue thread for this repo by a user who get their ePAD server working making these changes, but I didn't have much luck with this. Here's a Gist link to my docker-compose.yml file incase it can be of help: |
Hi @gabrielbenavidez, it seems like you couldn't resolve the issue. could we have a zoom call? please reach out to me at ealkim@stanford.edu with your availabilities |
Hi,
I'm having some trouble getting my ePAD lite server started and I would really appreciate some feedback as to what may be causing the issues as well as how I may go about resolving it.
My issue seems to be similar if not the same as issue number 5 from https://github.com/RubinLab/epad-dist/issues/26#issuecomment-959420948
Environment
WSL Ubuntu (20.04.1)
Latest epad-dist version
Steps to reproduce
git clone https://github.com/RubinLab/epad-dist.git
./configure_epad.sh ../epad_lite_dist ./epad.yml
docker-compose up
Errors
1. mariaDB
Error
Access denied for user 'admin'@'localhost' (using password: YES)
Fix
CREATE USER 'admin'@'localhost' IDENTIFIED BY 'manager'
GRANT ALL PRIVILEGES ON *.* TO 'admin'@'localhost'; FLUSH PRIVELEGES;
2. epad_lite
Error
"Cannot connect to mariadb (err:afterDBReady. Error: Lite2thick data migration. Error: Cannot parse '( )': Encountered \" \")\" \") \"\" at line 1, column 2.\nWas expecting one of:\n <NOT> ...\n \"+\" ...\n \"-\" ...\n <BAREOPER> ...\n \"(\" ...\n \"*\" ...\n <QUOTED> ...\n <TERM> ...\n <PREFIXTERM> ...\n <WILDTERM> ...\n <REGEXPTERM> ...\n \"[\" ...\n \"{\" ...\n <NUMBER> ...\n <TERM> ...\n \"*\" ...\n ), shutting down the server"}
Fix
N/A: Not sure if this error has any significance.
3. epad_js
Error
"GET /api/users/admin HTTP/1.1" 503 80 "http://localhost/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.99 Safari/537.36" "
Fix
If
REACT_APP_API_URL
environmental variable in thedocker-compose.yml
file is changed fromhttp://localhost/api
tohttp://localhost
then the request request doesn't fail and returns a 200 OK.So far this only fixes the login error but I'm still not able to perform any other tasks such as uploading DCM files.
Thank you in advance
Gabriel Benavidez
The text was updated successfully, but these errors were encountered: