AltLinux icon indicating copy to clipboard operation
AltLinux copied to clipboard

fail to start anisette_server with error curl: (7)

Open PaPerseller opened this issue 2 years ago • 10 comments

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".

PaPerseller avatar Jul 21 '23 06:07 PaPerseller

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.

Melon512 avatar Jul 22 '23 22:07 Melon512

Same on Ubuntu 22.04 Tried disabling ufw and editing the hosts file but no avail

kirito-wl avatar Aug 02 '23 17:08 kirito-wl

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 avatar Aug 10 '23 05:08 qeff4

@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

mgdapm avatar Aug 23 '23 23:08 mgdapm

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

martinprad0 avatar Sep 16 '23 17:09 martinprad0

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 avatar Dec 25 '23 16:12 nekorectifier

@NekoRectifier This fixed the problem for me too. The link needs to be updated in the code.

fireshaper avatar May 19 '24 21:05 fireshaper

Hi! Try the latest version of AltLinux and report if the issue still persists.

vyvir avatar Jul 19 '24 09:07 vyvir

still returning this: curl: (7) Failed to connect to 127.0.0.1 port 6969: 拒绝连接

saintlits avatar Sep 05 '24 08:09 saintlits

Hi, try the latest version to see if the issue persists

vyvir avatar Sep 22 '24 13:09 vyvir