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]: Local Docker Install Ubuntu 22.04 LTS #647

Open
3 tasks done
sesscon opened this issue Apr 25, 2024 · 8 comments
Open
3 tasks done

[Bug]: Local Docker Install Ubuntu 22.04 LTS #647

sesscon opened this issue Apr 25, 2024 · 8 comments
Assignees
Labels
bug Something isn't working

Comments

@sesscon
Copy link

sesscon commented Apr 25, 2024

Issue Description

Followed all instructions including modifying the .env file. However, when the site renders I can see the favicon but nothing is rendered for the site.

Here is a local curl:

<!doctype html><title>OpenSign™</title><script defer="defer" src="http://localhost:3000/static/js/main.f9098c68.js"></script>You need to enable JavaScript to run this app.

Expected Behavior

OpenSign site is rendered and ready for use.

Current Behavior

No webpage is being rendered.

Steps to reproduce

Followed Instructions, confirmed each step.

Screenshots of the issue(optional)

No response

Operating System [e.g. MacOS Sonoma 14.1, Windows 11]

Ubuntu 22.04

What browsers are you seeing the problem on?

Chrome, Firefox, Microsoft Edge

What version of OpenSign™ are you seeing this issue on? [e.g. 1.0.6]

Latest Release

What environment are you seeing the problem on?

Dev (localhost or vercel)

Please check the boxes that apply to this issue report.

  • I have searched the existing issues & discussions to make sure that this is not a duplicate.

Code of Conduct

  • I agree to follow this project's Code of Conduct
  • I have searched the existing issues & discussions to make sure that this is not a duplicate.
@sesscon
Copy link
Author

sesscon commented Apr 25, 2024

Screenshot 2024-04-25 144835

@jebob28
Copy link

jebob28 commented May 3, 2024

Estou com mesmo problema

@Zathiel
Copy link
Collaborator

Zathiel commented Jun 2, 2024

Hey @sesscon

Are you still facing issues with the last release ?

If not i will mark this issue as solved

@cube-one-gxp-lifescience-partner

Same issue here. Logs show a successful connection as in @sesscon 's logs.

@cube-one-gxp-lifescience-partner
Copy link

cube-one-gxp-lifescience-partner commented Jun 12, 2024

Maybe this could help. It's not a ubuntu specific issue. On other devices the JS files are requested from localhost instead of the IP:

grafik

@cube-one-gxp-lifescience-partner

Found a workaround. I don't know if some of these steps aren't neccessary.

  1. make build
  2. Stop the docker containers
  3. sed -i 's#http://localhost:8080#https://your-domain-to-api.com#g' ./path-to-file for /apps/OpenSignServer/index.js, apps/OpenSignServer/runmigrate.js, apps/OpenSign/build/static/js/main.b9b562fb.js, apps/OpenSign/.env and .env
  4. sed -i 's#http://localhost:3000#https://your-domain.com#g' ./path-to-file for apps/OpenSign/build/static/js/main.b9b562fb.js, apps/OpenSign/.env and .env
  5. Delete the docker containers and images
  6. docker compose up -d

@sesscon
Copy link
Author

sesscon commented Jun 13, 2024 via email

@minyak1
Copy link

minyak1 commented Aug 10, 2024

I wasn't able to replicate the workaround.

Steps and Actions Taken

Change API and service references in the OpenSign application from localhost to 127.0.0.1 for local development, and ensure everything functions correctly using Docker and Nginx as a reverse proxy.

Modifications Using sed:
Attempted to replace http://localhost with http://127.0.0.1 in configuration files to ensure proper referencing in a local context. Specific changes included:

sed -i 's#http://localhost:8080#http://127.0.0.1:8080#g' ./apps/OpenSignServer/index.js
sed -i 's#http://localhost:3000#http://127.0.0.1:3000#g' ./apps/OpenSign/build/static/js/main.131345f3.js
sed -i 's#http://localhost:3000#http://127.0.0.1:3000#g' ./apps/OpenSign/.env

Stopped and removed the running Docker containers with:

Cleared Docker images associated with the application to eliminate any outdated versions:

docker compose down --rmi all

docker compose up -d

--

Still have the same problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants