[Bug 1203327] New: zypper as -f $URI openSUSE - specified path is not a directory
http://bugzilla.opensuse.org/show_bug.cgi?id=1203327 Bug ID: 1203327 Summary: zypper as -f $URI openSUSE - specified path is not a directory Classification: openSUSE Product: openSUSE Distribution Version: Leap 15.4 Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: libzypp Assignee: zypp-maintainers@suse.de Reporter: lubos.kocman@suse.com QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- Hello I was experimeting with "zypper as" (add service) as part of https://code.opensuse.org/leap/features/issue/91 The initial experiment with a short service definition from ma@ worked. <repoindex ttl="0" disturl="https://download.opensuse.org" distsub="leap/" distver="${releasever}" debugenable="false" sourceenable="false"> <repo url="%{disturl}/distribution/%{distsub}%{distver}/repo/oss" alias="repo-oss" name="%{alias} (%{distver})" enabled="true" autorefresh="true"/> <repo url="%{disturl}/distribution/%{distsub}%{distver}/repo/non-oss" alias="repo-non-oss" name="%{alias} (%{distver})" enabled="true" autorefresh="true"/> <repo url="%{disturl}/update/%{distsub}%{distver}/oss" alias="update-oss" name="%{alias} (%{distver})" enabled="true" autorefresh="true"/> <repoindex/> However since I've altered the repoindex.xml by adding remaining repos (then tried to refresh, later remove/re-add) I was never able to get it working again. The error that I'm getting as part of zypper ref -s (force service refresh is) lkocman@lkocman:/etc/zypp/repos.d> sudo zypper rs openSUSE Removing service 'openSUSE': lkocman@lkocman:/etc/zypp/repos.d> sudo zypper as -f /Local/Service/repo/repoindex.xml openSUSE Setting new service openSUSEindeterminate true Service 'openSUSE' has been successfully added. lkocman@lkocman:/etc/zypp/repos.d> sudo zypper ref Repository 'AMDGPU 22.20 repository' is up to date. Repository 'Ruby base project (15.4)' is up to date. Retrieving repository 'Ruby Extensions (15.4)' metadata ................................................................................................[done] Building repository 'Ruby Extensions (15.4)' cache .....................................................................................................[done] Repository 'google-chrome' is up to date. Repository 'Branch project for package patterns-microos (15.4)' is up to date. Repository 'ROCm 5.2 repository' is up to date. Repository 'Software for Scientists and Engineers (15.4)' is up to date. All repositories have been refreshed. lkocman@lkocman:/etc/zypp/repos.d> sudo zypper ref -s Refreshing service 'leap'. Specified path '/Local/Service/repo/repoindex.xml' is not a directory: dir:/Local/Service/repo/repoindex.xml (content of file is attached) lkocman@lkocman:/etc/zypp/repos.d> ls -la /Local/Service/repo total 8 drwxr-xr-x 1 root root 26 Sep 11 22:37 . drwxr-xr-x 1 root root 8 Sep 11 16:08 .. -rw-r--r-- 1 root root 2658 Sep 11 22:37 repoindex.xml -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1203327 http://bugzilla.opensuse.org/show_bug.cgi?id=1203327#c1 --- Comment #1 from Lubos Kocman <lubos.kocman@suse.com> --- Created attachment 861417 --> http://bugzilla.opensuse.org/attachment.cgi?id=861417&action=edit zypper.log -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1203327 http://bugzilla.opensuse.org/show_bug.cgi?id=1203327#c2 --- Comment #2 from Lubos Kocman <lubos.kocman@suse.com> --- Found the issue (there was some old service entry that I experimented with, that blocked remaining steps) (removed openSUSE, trying to add it as "os" a different alias) lkocman@lkocman:/etc/zypp/repos.d> sudo zypper as /Local/Service os Setting new service osindeterminate indeterminate Service 'os' has been successfully added. (please notice the refreshing service leap ... which is not visible in the lr, but blocks any further refresh, even if ignored) localhost:/etc/zypp/repos.d # zypper ref -s Refreshing service 'leap'. Specified path '/Local/Service/repo/repoindex.xml' is not a directory: dir:/Local/Service/repo/repoindex.xml Abort, retry, ignore? [a/r/i/...? shows all options] (a): ^Clocalhost:/etc/zypp/repos.d # zy^C localhost:/etc/zypp/repos.d # zypper ref -s Refreshing service 'leap'. Specified path '/Local/Service/repo/repoindex.xml' is not a directory: dir:/Local/Service/repo/repoindex.xml Abort, retry, ignore? [a/r/i/...? shows all options] (a): r Specified path '/Local/Service/repo/repoindex.xml' is not a directory: dir:/Local/Service/repo/repoindex.xml Abort, retry, ignore? [a/r/i/...? shows all options] (a): i Unexpected exception. Unknown error reading from 'dir:/Local/Service/repo/repoindex.xml' History: - SKIP request: User-requested skipping of a file - Specified path '/Local/Service/repo/repoindex.xml' is not a directory: dir:/Local/Service/repo/repoindex.xml Please file a bug report about this. See http://en.opensuse.org/Zypper/Troubleshooting for instructions. localhost:/etc/zypp/repos.d # zypper ref localhost:/etc/zypp/repos.d # sudo zypper lr Repository priorities are without effect. All enabled repositories share the same priority. # | Alias | Name | Enabled | GPG Check | Refresh --+---------------------------------+----------------------------------------------------+---------+-----------+-------- 1 | amdgpu | AMDGPU 22.20 repository | Yes | (r ) Yes | No 2 | amdgpu-proprietary | AMDGPU 22.20 Proprietary repository | No | ---- | ---- 3 | amdgpu-src | AMDGPU 22.20 repository | No | ---- | ---- 4 | devel_languages_ruby | Ruby base project (15.4) | Yes | (r ) Yes | No 5 | devel_languages_ruby_extensions | Ruby Extensions (15.4) | Yes | (r ) Yes | No 6 | google-chrome | google-chrome | Yes | (r ) Yes | Yes 7 | home_dfaggioli_microos-desktop | Branch project for package patterns-microos (15.4) | Yes | (r ) Yes | No 8 | rocm | ROCm 5.2 repository | Yes | (r ) Yes | No 9 | science | Software for Scientists and Engineers (15.4) | Yes | (r ) Yes | No localhost:/etc/zypp/repos.d # zypper rs leap Removing service 'leap': Service 'leap' has been removed. localhost:/etc/zypp/repos.d # zypper ref -s Refreshing service 'os'. Adding repository 'repo-oss (15.4)' ....................................................................................................................[done] Adding repository 'repo-oss-debug (15.4)' ..............................................................................................................[done] Adding repository 'repo-oss-source (15.4)' .............................................................................................................[done] Adding repository 'repo-non-oss (15.4)' ................................................................................................................[done] Adding repository 'repo-non-oss-debug (15.4)' ..........................................................................................................[done] Adding repository 'update-oss (15.4)' ..................................................................................................................[done] Adding repository 'update-oss-debug (15.4)' ............................................................................................................[done] Adding repository 'update-non-oss (15.4)' ..............................................................................................................[done] Adding repository 'update-non-oss-debug (15.4)' ........................................................................................................[done] Adding repository 'update-backports (15.4)' ............................................................................................................[done] Adding repository 'update-backports-debug (15.4)' ......................................................................................................[done] Adding repository 'update-sle (15.4)' ..................................................................................................................[done] Adding repository 'update-sle-debug (15.4)' ............................................................................................................[done] All services have been refreshed. Repository 'AMDGPU 22.20 repository' is up to date. Repository 'Ruby base project (15.4)' is up to date. Repository 'Ruby Extensions (15.4)' is up to date. Repository 'google-chrome' is up to date. Repository 'Branch project for package patterns-microos (15.4)' is up to date. Retrieving repository 'repo-non-oss (15.4)' metadata ...................................................................................................[done] Building repository 'repo-non-oss (15.4)' cache ........................................................................................................[done] Retrieving repository 'repo-oss (15.4)' metadata .......................................................................................................[done] Building repository 'repo-oss (15.4)' cache ---------------------------------------------------------------------------------------------------------------[\] -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1203327 http://bugzilla.opensuse.org/show_bug.cgi?id=1203327#c3 --- Comment #3 from Lubos Kocman <lubos.kocman@suse.com> --- My suggestion is not to exit in zypper ref, but rather raise the error and proceed with refreshing repos for remaining services. User will realize that there is some old broken service, while seeing this error on each refresh. Exit masks the issue a bit in my opinion. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1203327 Lubos Kocman <lubos.kocman@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P5 - None |P3 - Medium -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@suse.com