You are not logged in.

#201 2009-04-24 21:09:13

smartboyathome
Member
From: $HOME
Registered: 2007-12-23
Posts: 334
Website

Re: Powerpill - A wrapper and download accelerator for Pacman

Xyne wrote:

What options are you passing to reflector in powerpill.conf?

I am parsing "-l 25". I just modified what you said above and used the top 25 mirrors.

Offline

#202 2009-04-24 22:23:10

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,963
Website

Re: Powerpill - A wrapper and download accelerator for Pacman

I think I've fixed it. If the problem persists, let me know in the reflector thread;

*edit*
haha, look at the end of that sentence... proof that I've been coding too much! lol

Last edited by Xyne (2009-04-24 22:24:25)


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#203 2009-04-25 06:32:56

sva_h4cky0
Member
From: Surabaya, Indonesia
Registered: 2009-03-25
Posts: 110
Website

Re: Powerpill - A wrapper and download accelerator for Pacman

hy Xyne

last day i was try generate metalink but it fail

powerpill -Syu --get-metalink /home/user/update.metalink

i dont have idea whats wrong. any advice??

thx,


"Am I not good enough for you?"

Offline

#204 2009-04-25 06:53:38

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,963
Website

Re: Powerpill - A wrapper and download accelerator for Pacman

In what way did it fail? Did it display an error message or did it simply not generate a metalink?

If you saw an error message, please post it otherwise it would be very difficult to figure out what happened.

If you saw nothing, it's probably because you had nothing to download.

*edit*
I just reread your post and noticed the syntax of your command ("powerpill -Syu --get-metalink /home/user/update.metalink"). Try this instead:

powerpill -Syu --get-metalink >/home/user/update.metalink

Some options changed with the release of 16.0. You can check the current options with "man powerpill".

Last edited by Xyne (2009-04-25 07:18:23)


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#205 2009-04-28 17:23:34

MindTooth
Member
From: Norway
Registered: 2008-11-11
Posts: 331

Re: Powerpill - A wrapper and download accelerator for Pacman

Xyne wrote:

I'm glad that the problem went away but why are you using so few mirrors?

Those three is my nearest ones. Thats why. Should I add more you say?

Birger smile

Offline

#206 2009-04-28 22:07:23

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,963
Website

Re: Powerpill - A wrapper and download accelerator for Pacman

MindTooth wrote:

Those three is my nearest ones. Thats why. Should I add more you say?

That depends. If you've set the maximum number of connection in the aria2c section of powerpill to more than 3, then yes, otherwise no. In general though the whole point of powerpill is to use multiple mirrors to pull everything in very quickly. I use servers from the other side of the planet and all it does it speed up the overall download. If you're worried about slow servers you can set the minimum speed limit.


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#207 2009-04-30 18:53:38

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,963
Website

Re: Powerpill - A wrapper and download accelerator for Pacman

*edit*
Nvm, updated the version comparison function... let me know if Powerpill misses any downloads.

Last edited by Xyne (2009-04-30 20:26:47)


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#208 2009-05-03 01:39:50

archlinuxsagi
Member
Registered: 2008-09-12
Posts: 259

Re: Powerpill - A wrapper and download accelerator for Pacman

Do I need to clear my config at root when using powerpill 16.0?
I am facing issue such that powerpill is ignoring my ignore command and there is readline error message too.

My ignore command is:
powerpill -Syu -ignore tcl --ignore tk --ignore amsn --ignore kernel26 --ignore kernel26-firmware
It will still show:
[core]
    kernel26
  [extra]
    tcl tk
  [community]
    amsn.

My error message is:
readline() on closed filehandle $fh at /usr/share/perl5/vendor_perl/Xyne/Arch/Pacman.pm line 1178.
Use of uninitialized value $file_contents in split at /usr/share/perl5/vendor_perl/Xyne/Arch/Pacman.pm line 1181.

Last edited by archlinuxsagi (2009-05-03 01:41:12)

Offline

#209 2009-05-03 02:22:40

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,963
Website

Re: Powerpill - A wrapper and download accelerator for Pacman

@archlinuxsagi
Yes. As the upgrade messages states,  you need to remove all of your pre-16.0 configuration files. The file format has changed completely.

I've fixed the "--ignore" error as of perl-xyne-arch-0.51. Please test the latest version.

I don't know why you receive that error message. I've added a line to Pacman.pm that should provide more information if you get it again, but it may be connected to the old configuration files. Please remove those and then try again.


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#210 2009-05-05 05:45:59

blasse
Member
From: Poland
Registered: 2008-04-24
Posts: 303

Re: Powerpill - A wrapper and download accelerator for Pacman

Hi! I've got the
Can't use an undefined value as a HASH reference at /usr/share/perl5/vendor_perl/Xyne/Arch/Pacman.pm line 576.
error.

Config file was deleted when updating to version 16. I've also tried to delete it again, but error still occurs.


Proud ex-maintainer of firefox-pgo

Offline

#211 2009-05-05 16:24:09

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,963
Website

Re: Powerpill - A wrapper and download accelerator for Pacman

Someone else posted about the same problem on the bug tracker. It should be fixed now. Let me know if it isn't.


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#212 2009-05-06 17:51:08

itti
Member
Registered: 2007-06-01
Posts: 77

Re: Powerpill - A wrapper and download accelerator for Pacman

i have the same error message, and yes i used a new clean configuration...

Offline

#213 2009-05-06 18:06:55

blasse
Member
From: Poland
Registered: 2008-04-24
Posts: 303

Re: Powerpill - A wrapper and download accelerator for Pacman

After last update of perl-xyne-arch (only one I had from your repo) problem still occurs.

Last edited by blasse (2009-05-07 11:56:21)


Proud ex-maintainer of firefox-pgo

Offline

#214 2009-05-06 23:03:07

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,963
Website

Re: Powerpill - A wrapper and download accelerator for Pacman

I've updated perl-xyne-arch again. Please try the latest version (>=0.54).

If the problem persists, post which version of perl-xyne-arch you have, the current error message (which should no longer refer to line 576) and the contents of /etc/pacman.conf.


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#215 2009-05-07 05:20:06

blasse
Member
From: Poland
Registered: 2008-04-24
Posts: 303

Re: Powerpill - A wrapper and download accelerator for Pacman

Error message:

Can't use an undefined value as a HASH reference at /usr/share/perl5/vendor_perl/Xyne/Arch/Pacman.pm line 582.

Version:

[sigma@blasse-laptop ~]$ powerpill -Qi perl-xyne-arch
Nazwa          : perl-xyne-arch
Wersja         : 0.54-1

pacman.conf:

#
# /etc/pacman.conf
#
# See the pacman manpage for option directives

#
# GENERAL OPTIONS
#
[options]
# The following paths are commented out with their default values listed.
# If you wish to use different paths, uncomment and update the paths.
#RootDir     = /
#DBPath      = /var/lib/pacman/
#CacheDir    = /var/cache/pacman/pkg/
#LogFile     = /var/log/pacman.log
HoldPkg      = pacman glibc
#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
IgnorePkg    = webkitgtk-svn

#
# REPOSITORIES
#   - can be defined here or included from another file
#   - pacman will search repositories in the order defined here
#   - local/custom mirrors can be added here or in separate files
#   - repositories listed first will take precedence when packages
#     have identical names, regardless of version number
#
# Repository entries are of the format:
#       [repo-name]
#       Server = ServerName
#       Include = IncludePath
#
# The header [repo-name] is crucial - it must be present and
# uncommented to enable the repo.
#

# Testing is disabled by default.  To enable, uncomment the following
# two lines.  You can add preferred servers immediately after the header,
# and they will be used before the default mirrors.
[testing]
Include = /etc/pacman.d/mirrorlist

[core]
# Add your preferred servers here, they will be used first
Include = /etc/pacman.d/mirrorlist

[extra]
# Add your preferred servers here, they will be used first
Include = /etc/pacman.d/mirrorlist

[community]
# Add your preferred servers here, they will be used first
Include = /etc/pacman.d/mirrorlist

[archlinuxfr]
Server = http://repo.archlinux.fr/x86_64
[archlinux.pl]
Server = http://unix.net.pl/arch/x86_64
[xyne-any]
Server = http://xyne.archlinux.ca/repos/any/


Proud ex-maintainer of firefox-pgo

Offline

#216 2009-05-07 06:35:25

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,963
Website

Re: Powerpill - A wrapper and download accelerator for Pacman

This one is confusing. There are only two calls to the function that's generating the error and the last update added checks to that one (which involved the SyncFirst array, which you don't even use), so it should be in the system upgrade call, but I really don't see how that could generate the error unless you have something strange in your local db. I can't reproduce the problem here so this is proving difficult to solve.

Upgrade to the latest version of perl-xyne-any, then open /usr/share/perl5/vendor_perl/Xyne/Arch/Pacman.pm, go to line 803 and insert the line

print "checking $pkg\n";

so that you change the code from this:

    next if grep {$self->is_in_sync_db_group($pkg,$_)} @ignored_groups;
    my $local_ver = $self->get_local_db_ver($pkg);

to this:

    next if grep {$self->is_in_sync_db_group($pkg,$_)} @ignored_groups;
    print "checking $pkg\n";
    my $local_ver = $self->get_local_db_ver($pkg);

then rerun "powerpill -Su". It should list all the packages as it check them. The last package before the error might give me an idea of what's causing it.


After that, undo the changes and then change line 776 from

sub get_sysupgrade_download_alt

to

sub get_sysupgrade_download

and change line 789 from

sub get_sysupgrade_download

to

sub get_sysupgrade_download_alt

.

Try "powerpill -Su" again and tell me if the error persists (it shouldn't). If that fixes the error, you can leave those changes for now while I try to figure out the cause.



You could also send me a tarball of your local db if you want so I could do some testing here.


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#217 2009-05-07 06:54:09

blasse
Member
From: Poland
Registered: 2008-04-24
Posts: 303

Re: Powerpill - A wrapper and download accelerator for Pacman

I will do some testing later today - I've got this error with powerpill -Sy and -Syu, but I don't remember if it happen also with powerpill -S


Proud ex-maintainer of firefox-pgo

Offline

#218 2009-05-07 07:10:52

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,963
Website

Re: Powerpill - A wrapper and download accelerator for Pacman

It's very strange if you get the error with "-Sy"... powerpill doesn't actually do anything in that case. *edit* I mean, it uses the pacman binary for database updates and passes control to the pacman binary immediately if there are no packages to download.

Last edited by Xyne (2009-05-07 07:12:07)


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#219 2009-05-07 07:56:49

blasse
Member
From: Poland
Registered: 2008-04-24
Posts: 303

Re: Powerpill - A wrapper and download accelerator for Pacman

It sync to server perfectly, display list of pkg to download, than ask if I want to download them. After that I see an error and powerpill/pacman exits.
I will later chceck pacman logs and tell you which update brings regression.


Proud ex-maintainer of firefox-pgo

Offline

#220 2009-05-07 08:56:54

TiF
Member
Registered: 2009-03-31
Posts: 2

Re: Powerpill - A wrapper and download accelerator for Pacman

Hi,

I have just modified Pacman.pm with your changes:

   * Added print "checking $pkg\n";   . Powerpill prints:
           ... (It's always the same checking message with different packages)
.... 
checking extra/ortp
checking extra/gtk-sharp-2
Can't use an undefined value as a HASH reference at /usr/share/perl5/vendor_perl/Xyne/Arch/Pacman.pm line 582.

   * I've changed   "get_sysupgrade_download..." in lines 776 and 789 and it works!!!

     Thank you for all

Offline

#221 2009-05-07 16:38:55

blasse
Member
From: Poland
Registered: 2008-04-24
Posts: 303

Re: Powerpill - A wrapper and download accelerator for Pacman

If I checked correctly regression started with upgraded perl-xyne-arch from 0.50-1 -> 0.52-2

Error message after suggested changes:

checking core/dbus-core
checking community/powertop
checking extra/gtk-sharp-2
Can't use an undefined value as a HASH reference at /usr/share/perl5/vendor_perl/Xyne/Arch/Pacman.pm line 582.

Last edited by blasse (2009-05-07 21:27:50)


Proud ex-maintainer of firefox-pgo

Offline

#222 2009-05-07 23:49:30

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,963
Website

Re: Powerpill - A wrapper and download accelerator for Pacman

The issue should be fixed in perl-xyne-arch>=0.56 but I may have introduce other bugs due to changes in several functions. Let me know if you notice any.


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#223 2009-05-08 00:30:25

MartinZ
Member
From: Chiloé, Chile
Registered: 2005-06-10
Posts: 379

Re: Powerpill - A wrapper and download accelerator for Pacman

Fixed!


All your base are belong to us

Offline

#224 2009-05-08 05:12:22

blasse
Member
From: Poland
Registered: 2008-04-24
Posts: 303

Re: Powerpill - A wrapper and download accelerator for Pacman

Looks like working fine now. Thx for fast reaction Xyne smile


Proud ex-maintainer of firefox-pgo

Offline

#225 2009-05-09 17:11:33

archlinuxsagi
Member
Registered: 2008-09-12
Posts: 259

Re: Powerpill - A wrapper and download accelerator for Pacman

Xyne wrote:

@archlinuxsagi
Yes. As the upgrade messages states,  you need to remove all of your pre-16.0 configuration files. The file format has changed completely.

I've fixed the "--ignore" error as of perl-xyne-arch-0.51. Please test the latest version.

I don't know why you receive that error message. I've added a line to Pacman.pm that should provide more information if you get it again, but it may be connected to the old configuration files. Please remove those and then try again.

.

Seems like --ignore command is not working as of perl-xyne-arch 0.57-1. Anybody else facing this issue?

Offline

Board footer

Powered by FluxBB