fail to start anisette_server with error curl: (7)
Manjaro system no matter run AltLinux by command python3 main.py or install AltLinux-git from aur, nerver start anisette_server successful with error "curl: (7) Failed to connect to 127.0.0.1 port 6969 after 0 ms: Couldn't connect to server".
Not just Manjaro/Arch. I'm also getting the same issue on Fedora 38.
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
curl: (7) Failed to connect to 127.0.0.1 port 6969 after 0 ms: Couldn't connect to server
./anisette_server: line 1: Not: command not found
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
curl: (7) Failed to connect to 127.0.0.1 port 6969 after 0 ms: Couldn't connect to server
(AltLinux:6530): Gtk-CRITICAL **: 23:48:23.025: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
curl: (7) Failed to connect to 127.0.0.1 port 6969 after 0 ms: Couldn't connect to server
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
curl: (7) Failed to connect to 127.0.0.1 port 6969 after 0 ms: Couldn't connect to server
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
curl: (7) Failed to connect to 127.0.0.1 port 6969 after 0 ms: Couldn't connect to server
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
It just repeats over, and over again.
Same on Ubuntu 22.04 Tried disabling ufw and editing the hosts file but no avail
Same on Ubuntu 22.04 Tried disabling ufw and editing the hosts file but no avail
You need to change the port to open in main.py.
The open port can be found using nmap with the command nmap -sT -O localhost
in main.py, you need to replace port 6969 with yours with any editor.
@qeff4 nmap returns multiple ports, how to know wich one to use?
139/tcp open netbios-ssn 445/tcp open microsoft-ds 631/tcp open ipp
running the same command when my iphone is connected and usb thethering is on (changing localhost to my phones ip)
21/tcp open ftp 53/tcp open domain 49152/tcp open unknown 62078/tcp open iphone-sync
Another problem rises when changing to an open port. I changed the code from 6969 to 8000 and it just refuses to start the server. I'm also on Fedora 38
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 2262 100 2262 0 0 3155k 0 --:--:-- --:--:-- --:--:-- 2208k
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 2262 100 2262 0 0 3462k 0 --:--:-- --:--:-- --:--:-- 2208k
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 2262 100 2262 0 0 3393k 0 --:--:-- --:--:-- --:--:-- 2208k
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 2262 100 2262 0 0 3182k 0 --:--:-- --:--:-- --:--:-- 2208k
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 2262 100 2262 0 0 3296k 0 --:--:-- --:--:-- --:--:-- 2208k
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 2262 100 2262 0 0 3456k 0 --:--:-- --:--:-- --:--:-- 2208k
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 2262 100 2262 0 0 3346k 0 --:--:-- --:--:-- --:--:-- 2208k
In my case, the anisette server was never actually started. Because the download link that hard coded in main.py line 307 is:
r = requests.get(
"https://github.com/Dadoum/Provision/releases/download/2.1.0/anisette_server-x86_64",
allow_redirects=True,
)
that link has a typo (the valid link is https://github.com/Dadoum/Provision/releases/download/2.1.0/anisette-server-x86_64)
and that will download a "Not found" in ~/.local/share/altserver/anisette_server which further caused the anisette server can't start and no activity on port 6969.
@NekoRectifier This fixed the problem for me too. The link needs to be updated in the code.
Hi! Try the latest version of AltLinux and report if the issue still persists.
still returning this: curl: (7) Failed to connect to 127.0.0.1 port 6969: 拒绝连接
Hi, try the latest version to see if the issue persists