You are not logged in.

#1 2014-01-19 13:18:09

rokemaster
Member
Registered: 2013-08-24
Posts: 12

curl error: Couldn't connect to server

Since 2 weeks ago I could not install packages from AUR with yaourt.

always i get curl "curl error: Couldn't connect to server" and sometimes (1/10 attemps) when show me the list of packages i'm looking for, when i going to install i get

curl error: Couldn't connect to server
error: database not found: aur

i can find the error. the website aur.archlinux.org is ok. the https://aur.archlinux.org/rpc.php is ok. i dont have troubles with my internet service. even I've tried on my office and home (same trouble) i have 2 laptops with Arch both with the same trouble.

can help me?

Offline

#2 2014-01-19 14:03:46

karol
Archivist
Registered: 2009-05-06
Posts: 25,428

Re: curl error: Couldn't connect to server

Have you tried using some other AUR helper?

Offline

#3 2014-01-19 14:20:40

rokemaster
Member
Registered: 2013-08-24
Posts: 12

Re: curl error: Couldn't connect to server

yes pacaur, cower and packer, the first two have the same problem the last one show the the list of packages but when i'm going to install, iget errors like:

tar: This does not look like a tar archive

gzip: stdin: unexpected end of file
tar: Child returned status 1
tar: Error is not recoverable: exiting now

Sample:

09:21 $ packer workbench
 
0 aur/mysql-workbench 6.0.8-2 (249)
    A cross-platform, visual database design tool developed by MySQL
1 aur/mysql-workbench-gpl 6.0.4-1 (94)
    A cross-platform, visual database design tool developed by MySQL (Ubuntu precompiled binary).
2 aur/workbench 1.6.8-2 (18)
    Subversion client written in python.
3 aur/sql-workbench 114-1 (13)
    SQL Workbench/J is a free, DBMS-independent, cross-platform SQL query tool.
4 aur/amiwm 0.21pl2-1 (6)
    An X window manager with an Amiga Workbench (R) screen look and feel
5 aur/knime-desktop 2.9.1-1 (1)
    A user-friendly graphical workbench for the entire data analysis process

Type numbers to install. Separate each number with a space.
Numbers: 1

Aur Targets    (1): mysql-workbench-gpl

Proceed with installation? [Y/n]

tar: This does not look like a tar archive

gzip: stdin: unexpected end of file
tar: Child returned status 1
tar: Error is not recoverable: exiting now
warning: x86_64 missing from arch array
No PKGBUILD found in directory.

Offline

#4 2014-01-20 12:28:37

Pse
Member
Registered: 2008-03-15
Posts: 383

Re: curl error: Couldn't connect to server

I am experiencing similar issues, both with yaourt and aura. I haven't had the time to investigate yet. I thought AUR was experiencing downtime.

Offline

#5 2014-01-20 16:04:44

ondoheer
Member
From: Lima
Registered: 2011-03-13
Posts: 16

Re: curl error: Couldn't connect to server

yes, same has been happening to me the past few days, with yaourt, packer and meric.


Archlinux KDE user.

Offline

#6 2014-01-20 16:13:05

karol
Archivist
Registered: 2009-05-06
Posts: 25,428

Re: curl error: Couldn't connect to server

Works fine with cower.

Offline

#7 2014-01-20 16:45:45

rokemaster
Member
Registered: 2013-08-24
Posts: 12

Re: curl error: Couldn't connect to server

karol wrote:

Works fine with cower.

Hi Karol with cower i get the same error

11:48 $ cower -s workbench
error: [workbench]: Couldn't connect to server

Last edited by rokemaster (2014-01-20 16:46:03)

Offline

#8 2014-01-20 21:26:04

Pse
Member
Registered: 2008-03-15
Posts: 383

Re: curl error: Couldn't connect to server

I don't know if this is related or not, but I now remember I had a very similar problem with git's HTTPS interface recently (for a project hosted on bitbucket). I switched to SSH and forgot about it. Does git use curl for HTTP requests?

Last edited by Pse (2014-01-20 21:27:05)

Offline

#9 2014-01-21 13:48:36

Pse
Member
Registered: 2008-03-15
Posts: 383

Re: curl error: Couldn't connect to server

Offline

#10 2014-01-21 14:04:07

rokemaster
Member
Registered: 2013-08-24
Posts: 12

Re: curl error: Couldn't connect to server

Pse wrote:

I think no. there is other problem. I did the following:

- ping aur.archlinux.org
- The resulting IP write in the /etc/hosts

<IP> aur.archlinux.org

yaourt working after that. this is not a complete solution

Offline

#11 2014-01-21 14:08:19

Pse
Member
Registered: 2008-03-15
Posts: 383

Re: curl error: Couldn't connect to server

rokemaster wrote:
Pse wrote:

I think no. there is other problem. I did the following:

- ping aur.archlinux.org
- The resulting IP write in the /etc/hosts

<IP> aur.archlinux.org

yaourt working after that. this is not a complete solution

DNS problems would explain the erratic behavior I've been experiencing (a couple of requests succeed, most fail). I'm using Google's public DNS servers (8.8.8.8 and 8.8.4.4).

Last edited by Pse (2014-01-21 14:08:48)

Offline

#12 2014-01-22 12:40:39

rokemaster
Member
Registered: 2013-08-24
Posts: 12

Re: curl error: Couldn't connect to server

apparently the problem is due to the configuration of the default kernel has enabled ipv6. this is the reason that  force the use of ipv4 in the /etc/hosts file.

today i disable the ipv6 support (My ISP does not provide me an ipv6 address). and apparently everything works fine

Offline

#13 2014-01-22 15:57:01

ondoheer
Member
From: Lima
Registered: 2011-03-13
Posts: 16

Re: curl error: Couldn't connect to server

It just started working for me on any AUR helper since yesterday, just wanted to say in case it happenns again someone can read it got solved (without doing anything)


Archlinux KDE user.

Offline

#14 2014-01-23 22:16:07

Pse
Member
Registered: 2008-03-15
Posts: 383

Re: curl error: Couldn't connect to server

ondoheer wrote:

It just started working for me on any AUR helper since yesterday, just wanted to say in case it happenns again someone can read it got solved (without doing anything)

Not for me, it's still failing.

sad

Offline

#15 2014-02-03 05:52:16

fhdrin
Member
Registered: 2012-05-10
Posts: 23

Re: curl error: Couldn't connect to server

rokemaster's fix works for me, must be a dns issue.  no longer keep getting ..curl error..

thanks rokemaster

Last edited by fhdrin (2014-02-03 05:52:41)

Offline

#16 2014-02-03 16:17:43

Pse
Member
Registered: 2008-03-15
Posts: 383

Re: curl error: Couldn't connect to server

I can confirm that ipv6 was indeed the problem. In my case, I just set up an ipv6 tunnel broker and everything is now fine.

Last edited by Pse (2014-02-03 16:17:57)

Offline

#17 2014-04-16 16:02:55

ondoheer
Member
From: Lima
Registered: 2011-03-13
Posts: 16

Re: curl error: Couldn't connect to server

rokemaster wrote:
Pse wrote:

I think no. there is other problem. I did the following:

- ping aur.archlinux.org
- The resulting IP write in the /etc/hosts

<IP> aur.archlinux.org

yaourt working after that. this is not a complete solution


This actually did it for me, I tried disabling the ipv6 kernel parameter with the APPEND method and it didin't work.
I was too lazy to setup the full ipv6 tunnel broker...


Archlinux KDE user.

Offline

Board footer

Powered by FluxBB