Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fail to start anisette_server with error curl: (7) #12

Open
PaPerseller opened this issue Jul 21, 2023 · 10 comments
Open

fail to start anisette_server with error curl: (7) #12

PaPerseller opened this issue Jul 21, 2023 · 10 comments
Labels
bug Something isn't working

Comments

@PaPerseller
Copy link

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

@Melon512
Copy link

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.

@kirito-wl
Copy link

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

@qeff4
Copy link

qeff4 commented Aug 10, 2023

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.

@mgdapm
Copy link

mgdapm commented Aug 23, 2023

@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

@martinprad0
Copy link

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

@NekoRectifier
Copy link

NekoRectifier commented Dec 25, 2023

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.

@fireshaper
Copy link

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

@vyvir
Copy link
Owner

vyvir commented Jul 19, 2024

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

@vyvir vyvir added the bug Something isn't working label Aug 2, 2024
@saintlits
Copy link

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

@vyvir
Copy link
Owner

vyvir commented Sep 22, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

10 participants