label-studio icon indicating copy to clipboard operation
label-studio copied to clipboard

Error: [WinError 10013] An attempt was made to access a socket in a way forbidden by its access permissions

Open bit-scientist opened this issue 3 years ago • 5 comments

I have newly installed label-studio in new conda env as recommended in the docs. However, when I run label-studio start it outputs:

Current platform is win32, apply sqlite fix
Can't load sqlite3.dll from current directory
=> Database and media directory: C:\Users\user\AppData\Local\label-studio\label-studio
=> Static URL is set to: /static/
Starting new HTTPS connection (1): pypi.org:443
https://pypi.org:443 "GET /pypi/label-studio/json HTTP/1.1" 200 49869
Performing system checks...

System check identified no issues (1 silenced).
June 28, 2022 - 12:25:31
Django version 3.1.14, using settings 'label_studio.core.settings.label_studio'
Starting development server at http://0.0.0.0:8080/
Quit the server with CTRL-BREAK.
Error: [WinError 10013] An attempt was made to access a socket in a way forbidden by its access permissions

I assumed it was because 8080 port was being used for other tasks. To find out I ran netstat -ano | find ":8080", but didn't result in anything. Also, I saw someone had changed 8080 to 8090 in some related .py file. If that's case here too, which file contains the port info?

Thank you.

bit-scientist avatar Jun 28 '22 03:06 bit-scientist

Try to run LS this way:

 label-studio --port 8090

makseq avatar Jun 30 '22 00:06 makseq

@makseq , didn't help, same error.

bit-scientist avatar Jun 30 '22 00:06 bit-scientist

Another idea - you firewall blocks the connection. Try to run terminal as administrator, then run LS.

makseq avatar Jun 30 '22 08:06 makseq

@makseq unfortunately, I have been doing this as admin all along, still no luck.

bit-scientist avatar Jun 30 '22 09:06 bit-scientist

@bit-scientist can you share log from this command?

label-studio --port 9090

triklozoid avatar Jul 01 '22 12:07 triklozoid