Errors from /usr/bin/zgrep during zypper dup

I’ve searched bugzilla, the forums, and DuckDuckGo for this error, with no luck. For some time now, I’ve been getting these two errors whenever I run zypper dup.

# /usr/bin/zgrep: line 271: /usr/bin/gzip: Permission denied
# /usr/bin/zgrep: line 286: /usr/bin/grep: Permission denied

/usr/bin/zgrep is a bash shell script, so here are the two relevant lines:

# awk 'NR==271 || NR==286' /usr/bin/zgrep
  r=$?
  fi && res=$r

I can post the contents of that script, or you can just check the file /usr/bin/zgrep with less or an editor.

Thanks for any info,
Gene

What’s the output of ls -l /usr/bin/gzip and ls -l /usr/bin/grep?

Normal, as far as I can tell. And I can run them as a user or root.

gene@Mobile-PC:~> ls -l /usr/bin/{gzip,grep}
-rwxr-xr-x 1 root root 145808 Oct  9 00:41 /usr/bin/grep
-rwxr-xr-x 1 root root  89240 Oct 27 13:31 /usr/bin/gzip

Gene

I hope this is just a silly question, but just in case …

You ARE running zypper dup as root, right?

Since zypper won’t run as a user, the answer is yes, I always run zypper as root. It’s a part of the the gzip package, so I checked /var/log/zypp/history and found this:

> sudo grep gzip /var/log/zypp/history
2022-04-22 15:23:31|install|gzip|1.12-1.1|x86_64||openSUSE-20220420-0|2d9870f249193da4ce85b65b2d6e6677d7184f0a9f72b913878b2823bd8a21f9|
2022-05-03 14:40:42|install|gzip|1.12-2.1|x86_64||download.opensuse.org-oss|5ed7ea8f1331bd39b28fa873cbd4a631f236b8dbde62705d2a913c8a6d4f54bd|
2022-05-13 09:39:33|install|gzip|1.12-2.3|x86_64||download.opensuse.org-oss|6e749bcc93f308a64477958803fc10207c60ae37f0de32bf80b313f91c89483b|
2022-05-14 08:47:20|install|gzip|1.12-2.4|x86_64||download.opensuse.org-oss|523ef2e10a2fc0651c9c89da5d05240813aea12caec6a4f01034dbf5286a8069|
2022-06-16 14:12:55|install|gzip|1.12-2.5|x86_64||Sabrent-Samsung||
2022-09-02 11:31:33|install|gzip|1.12-2.7|x86_64||Sabrent-Samsung||
2023-01-08 17:29:55|install|gzip|1.12-3.1|x86_64||Sabrent-Samsung||
2023-03-22 12:40:22|install|gzip|1.12-3.2|x86_64||download.opensuse.org-oss|cab4aa681a566ff28bdf424ee33ee46f8258a46a6510d49e5d66877415c3d05f155e8ca1c57e2884f2cd83834bf59ad534f5b99b9d7961a39f93915081aa3c8d|
2023-06-17 09:02:30|install|gzip|1.12-3.3|x86_64||download.opensuse.org-oss|730c7f6a1ebcac2280ac8fcc3cf932553134477d8980c13827057b4339803588f5d05e5666784dfc912bcb21708c036483bbd970f578d92f4755b52e577cad07|
2023-08-14 11:21:23|install|gzip|1.12-3.5|x86_64||download.opensuse.org-oss|0ca9a9b236801530cb993f7222905271f8c042d696be42809796b5f49e59405fcc555671f338e0e2163f05a1af938c5f5f714d1d4cdd66533299977d84f53eed|
2023-09-03 23:26:32|install|gzip|1.13-1.1|x86_64||download.opensuse.org-oss|91e3c2f8cfa9436b3c1a6ebefab341af3b12bfafa2c859c164473c0632a5e161f4e9f6dc3f8513b478a8d919f3e6ad9691c71305bb61af37576971fefef3d227|
2023-10-10 12:38:52|install|gzip|1.13-1.2|x86_64||download.opensuse.org-oss|830407fb609526606f1f5a5d925b725956ec869ea72cfd3113d59357dff71144e2924e2964e14ae19c4569310fd5fcab1743609e6042270f590c399f801f787d|
2023-10-30 12:41:21|install|gzip|1.13-2.1|x86_64||download.opensuse.org-oss|2284610bc3d9c602a7123aee4dc1cf90c67076f06c6a5d4db97ce763d7e0006c8ed3a6ba3c1078749b2e5f04196cc50a86dde80df27605a49a500532b267a367|
# /usr/bin/zgrep: line 271: /usr/bin/gzip: Permission denied
# /usr/bin/zgrep: line 271: /usr/bin/gzip: Permission denied
# /usr/bin/zgrep: line 271: /usr/bin/gzip: Permission denied
# /usr/bin/zgrep: line 271: /usr/bin/gzip: Permission denied
# /usr/bin/zgrep: line 271: /usr/bin/gzip: Permission denied
# /usr/bin/zgrep: line 271: /usr/bin/gzip: Permission denied
# /usr/bin/zgrep: line 271: /usr/bin/gzip: Permission denied
# /usr/bin/zgrep: line 271: /usr/bin/gzip: Permission denied
# /bin/zgrep: line 271: /bin/gzip: Permission denied
# /usr/bin/zgrep: line 271: /usr/bin/gzip: Permission denied
# /usr/bin/zgrep: line 271: /usr/bin/gzip: Permission denied
# /bin/zgrep: line 271: /bin/gzip: Permission denied
# /usr/bin/zgrep: line 271: /usr/bin/gzip: Permission denied
# /usr/bin/zgrep: line 271: /usr/bin/gzip: Permission denied
# /usr/bin/zgrep: line 271: /usr/bin/gzip: Permission denied
# /usr/bin/zgrep: line 271: /usr/bin/gzip: Permission denied
# /usr/bin/zgrep: line 271: /usr/bin/gzip: Permission denied
# /usr/bin/zgrep: line 271: /usr/bin/gzip: Permission denied
# /usr/bin/zgrep: line 271: /usr/bin/gzip: Permission denied
# /usr/bin/zgrep: line 271: /usr/bin/gzip: Permission denied
# /bin/zgrep: line 271: /bin/gzip: Permission denied
# /usr/bin/zgrep: line 271: /usr/bin/gzip: Permission denied
# /usr/bin/zgrep: line 271: /usr/bin/gzip: Permission denied
# /usr/bin/zgrep: line 271: /usr/bin/gzip: Permission denied
# /usr/bin/zgrep: line 271: /usr/bin/gzip: Permission denied
# /usr/bin/zgrep: line 271: /usr/bin/gzip: Permission denied
# /usr/bin/zgrep: line 271: /usr/bin/gzip: Permission denied
# /usr/bin/zgrep: line 271: /usr/bin/gzip: Permission denied
# /usr/bin/zgrep: line 271: /usr/bin/gzip: Permission denied
# /usr/bin/zgrep: line 271: /usr/bin/gzip: Permission denied
# /usr/bin/zgrep: line 271: /usr/bin/gzip: Permission denied

You can see that the error started Immediately after the update of gzip to version 1.13-2.1. This is the current version in the repos:

> sudo zypper se -sx gzip
Loading repository data...
Reading installed packages...

S | Name | Type    | Version  | Arch   | Repository
--+------+---------+----------+--------+----------------------
i | gzip | package | 1.13-2.1 | x86_64 | Main Repository (OSS)

So it looks like a regression crept into gzip-1.13-2.1. I’ll report that regression in bugzilla, unless someone has another idea.

Thanks for the help,
Gene

@Gene_S So what Tumbleweed release are you on (cat /etc/os-release)?

No issues here (On snapshot 20240126) , I suspect if there was an issue with gzip 1.13 lots of folks would be having an issue…

cat /etc/os-release
NAME=“openSUSE Tumbleweed”

VERSION=“20240125”

ID=“opensuse-tumbleweed”
ID_LIKE=“opensuse suse”
VERSION_ID=“20240125”
PRETTY_NAME=“openSUSE Tumbleweed”
ANSI_COLOR=“0;32”
CPE_NAME=“cpe:/o:opensuse:tumbleweed:20240125”
BUG_REPORT_URL=“https://bugzilla.opensuse.org
SUPPORT_URL=“https://bugs.opensuse.org
HOME_URL=“https://www.opensuse.org
DOCUMENTATION_URL=“Portal:Tumbleweed - openSUSE Wiki
LOGO=“distributor-logo-Tumbleweed”

I’m one version behind, I’ll post back after a zypper dup.

Gene

Interesting, it only occurs when dracut is called from zypper for the i18n module. The occurences are identical, so I’ll just post the first one.

dracut[I]: *** Including module: rngd ***
dracut[I]: *** Including module: i18n ***
/usr/bin/zgrep: line 271: /usr/bin/gzip: Permission denied
/usr/bin/zgrep: line 286: /usr/bin/grep: Permission denied
/usr/bin/zgrep: line 271: /usr/bin/gzip: Permission denied
/usr/bin/zgrep: line 286: /usr/bin/grep: Permission denied
dracut[I]: *** Including module: btrfs ***
dracut[I]: *** Including module: kernel-modules ***

Any ideas?

Gene

That was during the update from VERSION_ID=“20240125” to VERSION_ID=“20240126”, but I’m betting it will happen again on my next zypper dup.

Gene

@Gene_S Something specific on your system… I don’t see that here…

dracut[I]: *** Including module: systemd-initrd ***
dracut[I]: *** Including module: i18n ***
dracut[I]: *** Including module: btrfs ***

Your on the 6.7.1-2-default kernel?

1 Like

Great minds think alike! I’m running from Kernel_HEAD, and they started immediatly after the transition from vmlinuz-6.7.0-12.g020caa6-default to vmlinuz-6.8.0-rc1-1.gc2014a1-default. Where does that lead us? Both of the kernels came from Kernel_HEAD repository.

Gene

1 Like

@Gene_S You probably need to bisect kernels to figure that out… Maybe a post on the Kernel Mailing List https://lists.opensuse.org/archives/list/kernel@lists.opensuse.org/

Is that link for Kernel_HEAD issues as well as stock kernels? Also, no kernels before the first 6.8 release candidate, 6.8.0-rc1-1.gc2014a1-default and all kernels after that produce the bug. Is that sufficiently bisected?

Gene

@Gene_S Yes, post your issue there and see what the openSUSE kernel devs have to say…

Done! Thanks as always, Malcolm.

Regards,
Gene

I got an e-mail from a kernel dev. Apparently my problem is related to this issue. It should be resolved in v6.8-rc2.

Regards,
Gene

1 Like

Version 6.8-rc2 popped up ahead of schedule yesterday, and all the errors are gone. Thank you devs!

Gene

3 Likes