You are not logged in.
I have setup local copy of arch repository. Strange things happening after kernel update (4.4.1-2).
It works like this:
pacman -> lo -> nginx -> files
Appropriate configs:
cat /etc/hosts
#
# /etc/hosts: static lookup table for host names
#
#<ip-address> <hostname.domain.org> <hostname>
127.0.0.1 localhost.localdomain localhost
::1 localhost.localdomain localhost
192.168.0.100 avi9526.lan
# End of filecat /etc/pacman.d/mirrorlist | grep avi9526
Server = http://avi9526.lan/archlinux/$repo/os/$archIt did work for two weeks without problems, until now. Problem appears with pacman, and wget as well:
wget http://avi9526.lan/archlinux/extra/os/x … pkg.tar.xz
--2016-02-05 22:11:12-- http://avi9526.lan/archlinux/extra/os/x86_64/libreoffice-fresh-5.0.4-4-x86_64.pkg.tar.xz
Resolving avi9526.lan (avi9526.lan)... 192.168.0.100
Connecting to avi9526.lan (avi9526.lan)|192.168.0.100|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 93645772 (89M) [application/octet-stream]
--2016-02-05 22:11:13-- http://avi9526.lan/archlinux/extra/os/x86_64/libreoffice-fresh-5.0.4-4-x86_64.pkg.tar.xz
Reusing existing connection to avi9526.lan:80.
HTTP request sent, awaiting response... 200 OK
Length: 93645772 (89M) [application/octet-stream]
Saving to: ‘libreoffice-fresh-5.0.4-4-x86_64.pkg.tar.xz’
libreoffice-fresh-5. 81%[===================> ] 73.21M --.-KB/s in 30s
2016-02-05 22:11:43 (2.45 MB/s) - Read error at byte 76771328/93645772 (Connection reset by peer). Retrying.
--2016-02-05 22:11:44-- (try: 2) http://avi9526.lan/archlinux/extra/os/x86_64/libreoffice-fresh-5.0.4-4-x86_64.pkg.tar.xz
Connecting to avi9526.lan (avi9526.lan)|192.168.0.100|:80... connected.
HTTP request sent, awaiting response... 206 Partial Content
Length: 93645772 (89M), 16874444 (16M) remaining [application/octet-stream]
Saving to: ‘libreoffice-fresh-5.0.4-4-x86_64.pkg.tar.xz’
libreoffice-fresh-5. 100%[++++++++++++++++++++====>] 89.31M --.-KB/s in 0.1s
2016-02-05 22:11:44 (154 MB/s) - ‘libreoffice-fresh-5.0.4-4-x86_64.pkg.tar.xz’ saved [93645772/93645772]I don't know if it's bug or my misconfiguration. What can I do to investigate it any further?
Offline
How often does it happen? Does it happen only with HTTP traffic? Try transferring stuff between your local machine and avi9526.lan using something like NFS or SFTP.
Also, which OS are you running on avi9526.lan?
Offline
Sry, didn't mention, it's all is on one machine - my home PC, and lo interface is loopback interface
Last edited by avi9526 (2016-02-06 11:23:08)
Offline
Why are you using http for the local repo? Use the file:// syntax instead.
Post your pacman.conf
Offline
I use http because I just playing around making local copy of repo and sharing it with http.
The problem is not with repo, the problem is that http file transfer through loopback interface suddenly hangs. It's seems to be not a pacman issue, since it happens with wget as well (see first post). It looks like there is no such problem with LTS kernel (can't say for sure since problem is quite random)
Offline
Well, in any case, it is not through the lo interface. You are specifying 192.168.0.100 for the repo hostname. So traffic is going through that. Confirm that everything is working reliably for the interface associated with that IP.
Offline
It goes through lo interface, I have checked this with wireshark, and it's oblious, since download speed goes over 150MBytes/s (see first post), my connection to router is 12MBytes/s (router says 100M FDX)…
Offline
While the trafic never physically leaves your machine it's not routed through the loopback channel.
nginx transmits the data to your ethernetcard outgoing internet port.
your card sees the destination is your incoming internet port and transfers it to that one .
the card then transmits the data from your incoming ethernet port to the requesting program (pacman) .
If you want to use the loopback channel with http , try
Server = http://localhost/archlinux/$repo/os/$archThat traffic will not go through the outgoing/incoming internet ports, but over the loopback interface.
Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
clean chroot building not flexible enough ?
Try clean chroot manager by graysky
Offline
Same thing, I think it kernel problem, it doesn't happen with LTS kernel
wget http://localhost/archlinux/community/os/x86_64/go-2:1.5.3-3-x86_64.pkg.tar.xz
--2016-02-06 20:43:26-- http://localhost/archlinux/community/os/x86_64/go-2:1.5.3-3-x86_64.pkg.tar.xz
Resolving localhost (localhost)... ::1, 127.0.0.1
Connecting to localhost (localhost)|::1|:80... failed: Connection refused.
Connecting to localhost (localhost)|127.0.0.1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 30424884 (29M) [application/octet-stream]
--2016-02-06 20:43:27-- http://localhost/archlinux/community/os/x86_64/go-2:1.5.3-3-x86_64.pkg.tar.xz
Reusing existing connection to localhost:80.
HTTP request sent, awaiting response... 200 OK
Length: 30424884 (29M) [application/octet-stream]
Saving to: ‘go-2:1.5.3-3-x86_64.pkg.tar.xz’
go-2:1.5.3-3-x86_64. 33%[=======> ] 9.62M --.-KB/s in 30s
2016-02-06 20:43:57 (330 KB/s) - Read error at byte 10092544/30424884 (Connection reset by peer). Retrying.
--2016-02-06 20:43:58-- (try: 2) http://localhost/archlinux/community/os/x86_64/go-2:1.5.3-3-x86_64.pkg.tar.xz
Connecting to localhost (localhost)|127.0.0.1|:80... connected.
HTTP request sent, awaiting response... 206 Partial Content
Length: 30424884 (29M), 20332340 (19M) remaining [application/octet-stream]
Saving to: ‘go-2:1.5.3-3-x86_64.pkg.tar.xz’
go-2:1.5.3-3-x86_64. 95%[++++++++==============> ] 27.75M --.-KB/s in 30s
2016-02-06 20:44:28 (620 KB/s) - Read error at byte 29097984/30424884 (Connection reset by peer). Retrying.
--2016-02-06 20:44:30-- (try: 3) http://localhost/archlinux/community/os/x86_64/go-2:1.5.3-3-x86_64.pkg.tar.xz
Connecting to localhost (localhost)|127.0.0.1|:80... connected.
HTTP request sent, awaiting response... 206 Partial Content
Length: 30424884 (29M), 1326900 (1.3M) remaining [application/octet-stream]
Saving to: ‘go-2:1.5.3-3-x86_64.pkg.tar.xz’
go-2:1.5.3-3-x86_64. 100%[+++++++++++++++++++++++=>] 29.01M --.-KB/s in 0.02s
2016-02-06 20:44:30 (66.6 MB/s) - ‘go-2:1.5.3-3-x86_64.pkg.tar.xz’ saved [30424884/30424884]Offline
Can you reproduce it with apache or any other web server?
Offline
ok, yes, it looks like this only happening with nginx, apache is ok
Last edited by avi9526 (2016-02-07 10:45:09)
Offline
It's seems that problem is with nginx working with new kernel.
Parameter in config:
timer_resolution 100ms;if I set it to 500ms - download will freeze after ~500ms, if 10ms - download stop after ~10ms.
Will ask on nginx forum
Thnx
Offline