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] Aquarium-local has port issue #2

Open
ruobinLiu opened this issue Apr 15, 2021 · 4 comments
Open

[BUG] Aquarium-local has port issue #2

ruobinLiu opened this issue Apr 15, 2021 · 4 comments

Comments

@ruobinLiu
Copy link

Describe the bug
Aquarium-local has port issue: bind for 0.0.0.80 failed as the port 80 is already allocated.

To Reproduce
I followed the instruction to install the aquarium from https://aquariumbio.github.io/aquarium-local/, and
./aquarium.sh up
gives me the error.

Expected behavior
I would expect to install it without any error.

Screenshots
If applicable, add screenshots to help explain your problem.
MicrosoftTeams-image (2)

Computer/Device (please complete the following information):

  • OS: [ macOS Big Sur]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

@bjkeller bjkeller transferred this issue from aquariumbio/aquarium Apr 15, 2021
@bjkeller
Copy link
Member

I've moved this to aquarium-local because this is set in the aquarium-local scripts.

This error happens b/c you have something running that is using port 80 on your machine.
This could be a previously running instance of aquarium-local if you did not run aquarium.sh down.
Or, it could be another service running that is using the port -- it is whatever you get when you visit localhost in your browser.

In this second case, the best we can do is make it easier for you to change which port aquarium-local is using.
For instance, if we changed it to port 81, you would open localhost:81 with your browser.

@ruobinLiu can you confirm whether you have a different service running?

@ruobinLiu
Copy link
Author

ruobinLiu commented Apr 16, 2021

I've confirmed that Docker is using port 80 because I followed a tutorial on how to use Docker before I tried aquarium.
I would like to switch to port 81 for aquarium as you suggested since I may need to refer back to the tutorial in the future.
Thank you so much @bjkeller

@ruobinLiu
Copy link
Author

I've tried aquarium with port 80, I have to say I like aquarium and would be very likely to use it for my project! But it would be very helpful to have aquarium switched to port 81 in a long term. I wonder if you could please help me with that? Thank you!

@bjkeller
Copy link
Member

bjkeller commented May 20, 2021

The aquarium.sh script manages a .env text file in the directory that has this set.
A quick strategy is to edit that file and change the value on the line

APP_PUBLIC_PORT=80

As is, the script will not change values set in the .env file.

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

2 participants