Yay issue "Too many package results"

very strange behaviour of yay on two of my machines (both servers without any graphical interface)… If I type

yay -Qau

I get
→ status 200: Too many package results.

How can I fix that?

Q is query, a is aur and u is upgrades So you are searching for aur packages on your system which need upgrade. On mine yay -Qau | wc -l returns 0. How many AUR packages do you have? pacman -Qm | wc -l

The u means upgrades, not deprecated.

1 Like

Yes you are right. Changed now.

The u for upgrade is deprecated and replaced by Qu, so you should use -Qua to upgrade your aur packages.

But why upgrade only the aur ? Don’t you risk doing a partial upgrade doing so ?
What does yay -Syu ?

Concerning the error, I’m not sure what you can do about it.

https://github.com/Jguer/yay/issues/314

The AUR’s RPC interface only lets you search for one word at a time, It also errors if your search produces too many results.

Just do yay it updates both!

1 Like

pacman -Qm | wc -l shows 190.

I am using yay -Qau to only check which packages can be upgraded from the AURs.

I have created this script to check available updates in repos and AURs:

       echo -e "${GREEN}ermittle den aktuellen Stand aller Pakete:${NC}"
        yay -Sy
        echo -e "\n"
        RESULT=$(pacman -Qu)
        if [[ $RESULT != "" ]]; then
            echo -e "${GREEN}Aus den Standard-Repositories gibt es Updates für folgende Pakete:${NC}"
            echo "Paketname     installiert -> verfügbar"
            echo "--------------------------------------"
            pacman -Qu
        else
            echo -e "${GREEN}Es gibt keine Updates aus den Standard-Repositories!${NC}"
        fi
        echo -e "\n"
        RESULT=$(yay --ignore=webalizer -Qau)
        if [[ $RESULT != "" ]]; then
            echo -e "${GREEN}Aus den AUR (ArchUserRepositories) gibt es Updates für folgende Pakete:${NC}"
            echo "Paketname     installiert -> verfügbar"
            echo "--------------------------------------"
            yay -Qau
        else
            echo -e "${GREEN}Es gibt keine Updates aus den AUR (ArchUserRepositories)!${NC}"
        fi

This is the output of yay -Syu:

:: Paketdatenbanken werden synchronisiert …
 core ist aktuell
 extra ist aktuell
 community                                                                                                          6,0 MiB  39,5 MiB/s 00:00 [---------------------------------------------------------------------------------------] 100%
 multilib ist aktuell
 aur ist aktuell
:: Vollständige Systemaktualisierung wird gestartet …
 Es gibt nichts zu tun
:: Durchsuche Datenbanken für Updates...
:: Durchsuche AUR für Updates...
 -> status 200: Too many package results.

https://wiki.archlinux.org/title/Aurweb_RPC_interface

  • Searches will fail if they contain 5000 or more results.

But how can there be more than 5000 results if I run yay -Syu? I am not sure but it looks like the issue pops up when yay tries to retrieve aur packages that needs to upgrade. And this issue only pops up at my servers - I have running much more machines with endeavourOS and they all do not show this. yay version is the same on all machines.

Please show the output of command

pacman -Qm

pacman -Qm

adduser 1.17-3
aic94xx-firmware 30-9
altermime 0.3.11-0
arc 5.21p-5
autoupdate 3-1
debtap 3.4.2-1
downgrade 11.0.0-1
etherwake 1.09-7
fakepkg 1.42.0-1
fetchmirrors 0.6-4
gconf 3.2.6+11+g07808097-10
js52 52.9.0-4
js60 60.9.0-2
js68 68.12.0-1
kms-cmake-utils 6.13.0-1
kms-jsoncpp 1.6.4-1
kms-jsonrpc 6.13.0-1
kurento-module-creator 6.13.0-1
libdmx 1.1.4-2
libnm-glib 1.18.5dev+12+ga8746f48ca-1
libnss-extrausers 0.6-4
libreport 2.16.0-1
libselinux 3.3-2
libsemanage 3.3-2
libsepol 3.3-1
libxxf86dga 1.1.5-1
megacli 8.07.14-2
mod_perl 2.0.12-1
ncurses5-compat-libs 6.3-1
paho-mqtt-c 1.3.9-1
paru 1.9.2-1
php-uploadprogress 1.1.3-1
php56 5.6.40-2
php56-fpm 5.6.40-2
php56-gd 5.6.40-2
php56-intl 5.6.40-2
php70 7.0.33-9
php70-apache 7.0.33-9
php70-cgi 7.0.33-9
php70-dblib 7.0.33-9
php70-dom 7.0.33-9
php70-embed 7.0.33-9
php70-enchant 7.0.33-9
php70-fpm 7.0.33-9
php70-gd 7.0.33-9
php70-imap 7.0.33-9
php70-intl 7.0.33-9
php70-mcrypt 7.0.33-9
php70-odbc 7.0.33-9
php70-pdo 7.0.33-9
php70-pgsql 7.0.33-9
php70-phpdbg 7.0.33-9
php70-pspell 7.0.33-9
php70-snmp 7.0.33-9
php70-sqlite 7.0.33-9
php70-tidy 7.0.33-9
php70-xml 7.0.33-9
php70-xsl 7.0.33-9
php71 7.1.33-1
php71-apache 7.1.33-1
php71-cgi 7.1.33-1
php71-dblib 7.1.33-1
php71-embed 7.1.33-1
php71-enchant 7.1.33-1
php71-fpm 7.1.33-1
php71-gd 7.1.33-1
php71-imap 7.1.33-1
php71-intl 7.1.33-1
php71-mcrypt 7.1.33-1
php71-odbc 7.1.33-1
php71-pgsql 7.1.33-1
php71-phpdbg 7.1.33-1
php71-pspell 7.1.33-1
php71-snmp 7.1.33-1
php71-sqlite 7.1.33-1
php71-tidy 7.1.33-1
php71-xsl 7.1.33-1
php72 7.2.34-11
php72-fpm 7.2.34-11
php72-gd 7.2.34-11
php72-intl 7.2.34-11
php73 7.3.33-7
php73-fpm 7.3.33-7
php73-gd 7.3.33-7
php73-intl 7.3.33-7
php80 8.0.15-4
php80-apache 8.0.15-4
php80-bcmath 8.0.15-4
php80-bz2 8.0.15-4
php80-cgi 8.0.15-4
php80-cli 8.0.15-4
php80-curl 8.0.15-4
php80-dblib 8.0.15-4
php80-dom 8.0.15-4
php80-embed 8.0.15-4
php80-enchant 8.0.15-4
php80-fileinfo 8.0.15-4
php80-fpm 8.0.15-4
php80-ftp 8.0.15-4
php80-gd 8.0.15-4
php80-gmp 8.0.15-4
php80-iconv 8.0.15-4
php80-igbinary 3.1.6-1
php80-imagick 3.4.4-1
php80-imap 8.0.15-4
php80-intl 8.0.15-4
php80-mbstring 8.0.15-4
php80-mysql 8.0.15-4
php80-odbc 8.0.15-4
php80-opcache 8.0.15-4
php80-openssl 8.0.15-4
php80-pdo 8.0.15-4
php80-pear 8.0.15-4
php80-pecl 8.0.15-4
php80-pgsql 8.0.15-4
php80-phar 8.0.15-4
php80-phpdbg 8.0.15-4
php80-posix 8.0.15-4
php80-pspell 8.0.15-4
php80-redis 5.3.2-1
php80-simplexml 8.0.15-4
php80-snmp 8.0.15-4
php80-sodium 8.0.15-4
php80-sqlite 8.0.15-4
php80-tidy 8.0.15-4
php80-xml 8.0.15-4
php80-xmlreader 8.0.15-4
php80-xmlwriter 8.0.15-4
php80-xsl 8.0.15-4
php80-zip 8.0.15-4
phpsysinfo 3.4.1-1
policycoreutils 3.3-1
powerpanel 1.4.1-1
proftpd 2:1.3.7c-1
python-telegram-send 0.25-2
python2-asn1crypto 1.4.0-3
python2-attrs 21.4.0-1
python2-backports 1.0-3
python2-cachecontrol 0.12.6-5
python2-cffi 1.15.0-1
python2-chardet 4.0.0-2
python2-colorama 0.4.4-3
python2-configparser 4.0.2-2
python2-contextlib2 0.6.0.post1-5
python2-cryptography 3.3.2-1
python2-distlib 0.3.3-1
python2-distro 1.6.0-1
python2-enum34 1.1.10-1
python2-html5lib 1.1-8
python2-importlib-metadata 2.1.1-2
python2-ipaddress 1.0.23-2
python2-lockfile 0.12.2-8
python2-more-itertools 5.0.0-2
python2-msgpack 0.6.2-4
python2-pathlib2 2.3.6-2
python2-pep517 0.11.0-1
python2-pip 20.3.4-1
python2-ply 3.11-7
python2-progress 1.6-1
python2-pycparser 2.20-3
python2-pyopenssl 21.0.0-1
python2-pytoml 0.1.21-3
python2-requests 2.26.0-1
python2-resolvelib 0.5.5-1
python2-retrying 1.3.3-9
python2-scandir 1.10.0-3
python2-toml 0.10.2-5
python2-urllib3 1.26.7-1
python2-webencodings 0.5.1-6
python2-zipp 1:1.1.1-1
pyzor 1.0.0-2
rbenv 1.2.0-1
rbenv-binstubs 1.0.0_76479aa-1
rbenv-vars 1.2.0-2
rc-local 4-1
ripole 0.2.0-1
satyr 0.30-2
setroubleshoot 3.3.23-1
setroubleshoot-server 3.3.23-1
squirrelmail-dev-svn r14846-1
swftools 0.9.2-5
tuptime 4.1.0-1
unrar-free 1:0.1.0-1
upd72020x-fw 20200826-3
wakeonlan 0.41-5
wd719x-firmware 1-7
webalizer 2.23.08-1
xorg-font-utils 7.6-6
yay 11.1.1-1
zoo 2.10-2

Are you sure you need all of them? There are many old versions of the same software…

If you mean the php: yes, I need them all. The users of the server do have software which is not supported on newer php versions so they can select which php version they fit to what domain. So on some servers some php versions are not used and on others they are all used.

1 Like

Have you tried any other AUR helper to see if this is a common issue for all of them?

That hint was kind of very trivial - but I have not tried before.

And you are right:

paru -Sau

answers correctly.

It seems to be the time for yay impacted by external changes…

What if you delete yay package cache?

I can move complete structure within ~/.cache/yay/ to another place so that it is empty. Problem persists. I already have check package integrities using

sudo paccheck --md5sum | grep -v 'all files match'

but there is no problem.

Try the following:

Edit ~/.config/yay/config.json
If the file does not exist yet, create a default config with yay --save

Set value requestsplitn to something lower. E.g. 100

"requestsplitn": 100,

2 Likes

There are no .json files inside this folder: not at the user yay is used with and not at root. If I create such a file and add the line (with or without the “,” at the end) I get an error message

'/root/.config/yay/config.json': json: cannot unmarshal string into Go value of type settings.Configuration