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

Problems taking too long to load #8

Open
k3n3nna opened this issue Nov 1, 2024 · 10 comments
Open

Problems taking too long to load #8

k3n3nna opened this issue Nov 1, 2024 · 10 comments
Labels
bug Something isn't working

Comments

@k3n3nna
Copy link

k3n3nna commented Nov 1, 2024

I'm able to access Zillacode but when I try and open a problem, the problem remains in the process of loading but never actually loads up.

@davidzajac1
Copy link
Owner

I'm able to access Zillacode but when I try and open a problem, the problem remains in the process of loading but never actually loads up.

@k3n3nna this is usually a port issue. Make sure nothing is running one the ports 5000, 5173, 8001, 8002 and 8003 then run docker-compose up again.

If that doesn't work then please check the Network tab in Chrome and check for any requests that returned errors.

@AlanDataPortfolio
Copy link

Im running on Macos, there are a few processes running in port 5000. Even if I kill them, they will reopen under a different PID in the same port 5000.

@davidzajac1
Copy link
Owner

Im running on Macos, there are a few processes running in port 5000. Even if I kill them, they will reopen under a different PID in the same port 5000.

Zillacode needs port 5000 (and a few others to run) so you have to make sure those ports are open or it won't be able to run.

This should work to kill anything running on the ports it needs on Mac. Please let me know if this works:

kill -9 $(lsof -ti:5000,5173,8001,8002,8003)

@AlanDataPortfolio
Copy link

I understand that Zillacode needs port 5000 to work. And I did kill the process running in port 5000, however, the process running in port 5000 seems to be a system managed one, meaning it will reopen itself in port 5000 again after I kill it. Is there a workaround?

@davidzajac1
Copy link
Owner

@AlanDataPortfolio I just made a new branch called uncommon-ports which has the fix that I think should work for you. Can you try cloning that branch then run make up please (might take a few minutes to build all the images)?

git clone -b uncommon-ports https://github.com/davidzajac1/zillacode.git
make up

@AlanDataPortfolio
Copy link

Thanks David! the uncommon-ports branch has fixed the issue on Macos.
Cheers!

@k3n3nna
Copy link
Author

k3n3nna commented Nov 20, 2024

Stll having issues opening up the problems. I'm running the makefile from the new branch. I've checked the network tab and I'm getting the folllowing error: Access to XMLHttpRequest at 'http://localhost:5000/get_problem' from origin 'http://localhost:5173' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.

@davidzajac1 davidzajac1 added the bug Something isn't working label Nov 27, 2024
@davidzajac1
Copy link
Owner

davidzajac1 commented Nov 27, 2024

Stll having issues opening up the problems. I'm running the makefile from the new branch. I've checked the network tab and I'm getting the folllowing error: Access to XMLHttpRequest at 'http://localhost:5000/get_problem' from origin 'http://localhost:5173' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.

@k3n3nna if you open Docker Desktop when this is happening are all of the containers green and seem to be running properly? Can you comment a screenshot of the Network tab for 'http://localhost:5000/get_problem' please?

@vickytechkey
Copy link

image

@vickytechkey
Copy link

im also facing same issue in mac though i tried uncommon branch

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

4 participants