StarLabs
TelegramChatGitHub
  • 👋Welcome
  • Software
    • CampNetwork
      • RU
      • ENG
    • Somnia
      • RU
      • ENG
    • MegaETH
      • RU
      • ENG
    • 0G
      • RU
      • ENG
  • Monad
    • RU
    • ENG
  • Discord
    • RU
    • ENG
  • Twitter
    • RU
    • ENG
  • 👀Other
    • ⚠️Common errors + fixes
Powered by GitBook
On this page
  • Microsoft Visual C++ 14.0 required
  • Aiodns needs a SelectorEventLoop
  • SSL Certificate Verify Failed
  • Too many open files
  1. Other

Common errors + fixes

PreviousENG

Last updated 1 month ago

Microsoft Visual C++ 14.0 required

Wait for the installation process and then restart your computer. Done.

Aiodns needs a SelectorEventLoop


The Aiodns problem has been fixed, follow the instructions below.

  1. Download the new version from GitHub

  2. Open the console in the bot's repository and enter the following:

python -m venv venv
venv\Scripts\activate 
pip install -r requirements.txt

Restart the PC (IMPORTANT!)

venv\Scripts\activate
python main.py

SSL Certificate Verify Failed

ERROR: Cannot connect to host some.host:443 ssl:True [SSLCertVerificationError: (5, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1028)')]


SOLUTION FOR WINDOWS

Open powershell and paste these commands:

certutil -generateSSTFromWU roots.sst
certutil -addstore -f root roots.sst

SOLUTION FOR LINUX

Open terminal and paste these commands:

sudo apt update
sudo apt install -y openssl ca-certificates
wget -O roots.pem https://curl.se/ca/cacert.pem
sudo cp roots.pem /usr/local/share/ca-certificates/roots.crt
sudo update-ca-certificates

Too many open files

[Errno 24] Too many open files: ... Open powershell and paste these commands:

ulimit -n 1000000

Open file with this command:

nano /etc/sysctl.conf

Copy and paste there this code

fs.inotify.max_user_instances=25650
fs.file-max = 9223372036854775807
net.core.rmem_max=2500000
net.core.rmem_max=2500000
net.core.rmem_max=67108864
fs.inotify.max_user_watches = 524288
kernel.pid_max=65536
net.ipv4.tcp_fastopen=3
vm.max_map_count = 1000000
net.core.rmem_default = 134217728
net.core.rmem_max = 134217728
net.core.wmem_default = 134217728
net.core.wmem_max = 134217728
net.ipv4.conf.all.accept_redirects=0
net.ipv4.conf.all.secure_redirects=0
net.ipv4.conf.all.send_redirects=0
net.ipv4.tcp_fin_timeout=7
net.ipv4.icmp_ignore_bogus_error_responses=1

Open file with this command:

nano /etc/systemd/system.conf

Copy and paste there this code

DefaultLimitNOFILE=1000000

Go to and download Visual Studio 2022. Install it and open the app. When the program opens, in the main menu you need to select the item as they are displayed on the screenshot below. The most important part is Visual C++ build tools at the top left. Check all the required boxes and click Install.

👀
⚠️
https://visualstudio.microsoft.com/downloads/?q=build+tools
Console log