BlenderKit / BlenderKit

Official BlenderKit add-on for Blender 3D. Documentation: https://github.com/BlenderKit/blenderkit/wiki
https://www.blenderkit.com
GNU General Public License v2.0
141 stars 22 forks source link

Failed to start Client server on 127.0.0.1:62485: listen tcp 127.0.0.1:62485: bind: An attempt was made to access a socket in a way forbidden by its access permissions #1256

Closed punx93 closed 1 month ago

punx93 commented 1 month ago

Bug Description

After starting blender, the addon doesn't work properly. The program throws errors alternately: "Cannot search, Client is not accessible. [search.py:935]" blad2 "Client is not running, add-on will not work. Error(0): BlenderKit-Client process exited with code 0. Please report a bug and paste the content of log C:\Users..." blad1

Yesterday I tried changing ports in the settings. The add-on worked for a while, but today the problem returned and nothing helps. I also tried with other versions of the plugin and on the older version of Blender 4.1.1.

Environment Information - Bug happens on:

Error Logs

⬡ 2024/07/25 09:29:55 BlenderKit-Client v1.1.2 starting from add-on v3.12.2.240712 port=62485 server=https://www.blenderkit.com proxy_which=SYSTEM proxy_address= trusted_ca_certs= ssl_context=ENABLED ⬡ 2024/07/25 09:29:55 ✅ Using proxy settings from system network settings 2024/07/25 09:29:55 [proxy.Provider.readWinHttpProxy] No proxy discovered via AutoDetect: winapi error #12180 ⬡ 2024/07/25 09:29:55 🔒 SSL verification is enabled ⬡ 2024/07/25 09:29:55 ⚠️ Failed to start Client server on localhost:62485: listen tcp 127.0.0.1:62485: bind: Tylko jedno użycie każdego adresu gniazda (protokół/adres sieciowy/port) jest normalnie dozwolone. ⬡ 2024/07/25 09:29:55 ❌ Failed to start Client server on 127.0.0.1:62485: listen tcp 127.0.0.1:62485: bind: Tylko jedno użycie każdego adresu gniazda (protokół/adres sieciowy/port) jest normalnie dozwolone.

Steps to Reproduce

  1. Start Blender
  2. Im waiting, the message "Waiting for Client" pops up
  3. I get errors [search.py.935], Error(0).
agajdosi commented 1 month ago

Hello @punx93, looks like there is already something running on port 62485. You can choose different port in the add-on settings.

punx93 commented 1 month ago

Thank you for your response.

Strange situation. Example situation: changing the port to 49452 helps, the add-on works but after some time it stops working. I restart the program, change the port to another and the errors return, and the add-on stops working. Yesterday I had a similar situation only with a different port, after some time it stopped working.

Is it possible that access to the ports is blocked by my IT department? I have never had such problems, the problems started recently.

agajdosi commented 1 month ago

@punx93 It is possible that there is some software on the computer which blocks/closes the port. If you have a local IT dept, it would be much easier for them to debug with local access than for me remotely. Let them know and if they need any information, they can ask here. We can work together on a fix, if anything is needed I would be more than happy to assist/implement.

punx93 commented 1 month ago

Thanks for your support @agajdosi

Today I updated Win 10 on my work computer and the problem was solved. Apparently the system was blocking the ports in a strange way.

agajdosi commented 1 month ago

@punx93 Thank you for the info. I am glad it works for you now. Miłego dnia!