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

PermissionError: [Errno 13] error while attempting to bind on address ('0.0.0.0', 80): permission denied #20

Closed
entangledothers opened this issue Jun 5, 2020 · 3 comments
Labels
duplicate This issue or pull request already exists

Comments

@entangledothers
Copy link

Just tried out Airshare, but ran into this error after a successful pip install.

command run: airshare name filename.png

error message:
Traceback (most recent call last):
File "/home/gleam/anaconda3/bin/airshare", line 10, in
sys.exit(main())
File "/home/gleam/anaconda3/lib/python3.7/site-packages/click/core.py", line 764, in call
return self.main(*args, **kwargs)
File "/home/gleam/anaconda3/lib/python3.7/site-packages/click/core.py", line 717, in main
rv = self.invoke(ctx)
File "/home/gleam/anaconda3/lib/python3.7/site-packages/click/core.py", line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/gleam/anaconda3/lib/python3.7/site-packages/click/core.py", line 555, in invoke
return callback(*args, **kwargs)
File "/home/gleam/anaconda3/lib/python3.7/site-packages/airshare/cli.py", line 73, in main
send_server(code=code, file=files, port=port)
File "/home/gleam/anaconda3/lib/python3.7/site-packages/airshare/sender.py", line 216, in send_server
loop.run_until_complete(site.start())
File "/home/gleam/anaconda3/lib/python3.7/asyncio/base_events.py", line 579, in run_until_complete
return future.result()
File "/home/gleam/anaconda3/lib/python3.7/site-packages/aiohttp/web_runner.py", line 104, in start
reuse_port=self._reuse_port)
File "/home/gleam/anaconda3/lib/python3.7/asyncio/base_events.py", line 1374, in create_server
% (sa, err.strerror.lower())) from None
PermissionError: [Errno 13] error while attempting to bind on address ('0.0.0.0', 80): permission denied

setup:
pop os 20.04
conda 4.8.3

@nandahkrishna
Copy link
Member

nandahkrishna commented Jun 5, 2020

Duplicate of #5. Ensure that nothing else is running on port 80, or try unblocking the port if it's blocked (check ufw if you're on Linux). Otherwise, you can use any other ports as suggested by @mohanpierce99.

@nandahkrishna nandahkrishna added the duplicate This issue or pull request already exists label Jun 5, 2020
@entangledothers
Copy link
Author

That was the ticket, thanks! Nothing visibly running on port 80, so I'll dive into what might be blocking it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

3 participants
@entangledothers @nandahkrishna and others