View Issue Details

IDProjectCategoryView StatusLast Update
0008577CentOS-7yumpublic2020-05-17 08:00
Reportermohammad_eghlima 
PrioritynormalSeverityminorReproducibilityhave not tried
Status newResolutionopen 
PlatformOSOS Version7
Product Version 
Target VersionFixed in Version 
Summary0008577: [abrt] yum: yumRepo.py:706:_dirSetupMkdir_p:RepoError: Error making cache directory: /var/cache/yum/x86_64/7/base error was: ...
DescriptionDescription of problem:
it is python and privilege to create cache on yum that is not granted!

Version-Release number of selected component:
yum-3.4.3-125.el7.centos

Truncated backtrace:
yumRepo.py:706:_dirSetupMkdir_p:RepoError: Error making cache directory: /var/cache/yum/x86_64/7/base error was: [Errno 13] Permission denied: '/var/cache/yum/x86_64'

Traceback (most recent call last):
  File "/usr/share/yum-cli/completion-helper.py", line 95, in <module>
    main(sys.argv[1:])
  File "/usr/share/yum-cli/completion-helper.py", line 83, in main
    base.getOptionsConfig(args)
  File "/usr/share/yum-cli/cli.py", line 352, in getOptionsConfig
    self.parseCommands() # before we return check over the base command + args
  File "/usr/share/yum-cli/cli.py", line 394, in parseCommands
    self._set_repos_cache_req()
  File "/usr/share/yum-cli/cli.py", line 416, in _set_repos_cache_req
    if not os.path.exists(repo.metadata_cookie):
  File "/usr/lib/python2.7/site-packages/yum/yumRepo.py", line 778, in <lambda>
    metadata_cookie = property(lambda self: self._dirGetAttr('metadata_cookie'))
  File "/usr/lib/python2.7/site-packages/yum/yumRepo.py", line 750, in _dirGetAttr
    self.dirSetup()
  File "/usr/lib/python2.7/site-packages/yum/yumRepo.py", line 729, in dirSetup
    self._dirSetupMkdir_p(dir)
  File "/usr/lib/python2.7/site-packages/yum/yumRepo.py", line 706, in _dirSetupMkdir_p
    raise Errors.RepoError, msg
RepoError: Error making cache directory: /var/cache/yum/x86_64/7/base error was: [Errno 13] Permission denied: '/var/cache/yum/x86_64'

Local variables in innermost frame:
msg: "Error making cache directory: /var/cache/yum/x86_64/7/base error was: [Errno 13] Permission denied: '/var/cache/yum/x86_64'"
dpath: '/var/cache/yum/x86_64/7/base'
self: <yum.yumRepo.YumRepository object at 0x1134310>
e: OSError(13, 'Permission denied')
Additional Informationreporter: libreport-2.1.11
cmdline: /usr/bin/python -t /usr/share/yum-cli/completion-helper.py -d 0 -C list available fus
executable: /usr/share/yum-cli/completion-helper.py
kernel: 3.10.0-229.el7.x86_64
runlevel: N 5
type: Python
uid: 1000
TagsNo tags attached.
abrt_hashf847b63b2b96e51174ca354c485aebccd0a7ac20
URLhttps://retrace.fedoraproject.org/faf/reports/bthash/80fc96b209c9b38474f9f742872ecfdf7226cc75

Activities

mohammad_eghlima

mohammad_eghlima

2015-04-29 06:32

reporter  

backtrace (1,681 bytes)
yumRepo.py:706:_dirSetupMkdir_p:RepoError: Error making cache directory: /var/cache/yum/x86_64/7/base error was: [Errno 13] Permission denied: '/var/cache/yum/x86_64'

Traceback (most recent call last):
  File "/usr/share/yum-cli/completion-helper.py", line 95, in <module>
    main(sys.argv[1:])
  File "/usr/share/yum-cli/completion-helper.py", line 83, in main
    base.getOptionsConfig(args)
  File "/usr/share/yum-cli/cli.py", line 352, in getOptionsConfig
    self.parseCommands() # before we return check over the base command + args
  File "/usr/share/yum-cli/cli.py", line 394, in parseCommands
    self._set_repos_cache_req()
  File "/usr/share/yum-cli/cli.py", line 416, in _set_repos_cache_req
    if not os.path.exists(repo.metadata_cookie):
  File "/usr/lib/python2.7/site-packages/yum/yumRepo.py", line 778, in <lambda>
    metadata_cookie = property(lambda self: self._dirGetAttr('metadata_cookie'))
  File "/usr/lib/python2.7/site-packages/yum/yumRepo.py", line 750, in _dirGetAttr
    self.dirSetup()
  File "/usr/lib/python2.7/site-packages/yum/yumRepo.py", line 729, in dirSetup
    self._dirSetupMkdir_p(dir)
  File "/usr/lib/python2.7/site-packages/yum/yumRepo.py", line 706, in _dirSetupMkdir_p
    raise Errors.RepoError, msg
RepoError: Error making cache directory: /var/cache/yum/x86_64/7/base error was: [Errno 13] Permission denied: '/var/cache/yum/x86_64'

Local variables in innermost frame:
msg: "Error making cache directory: /var/cache/yum/x86_64/7/base error was: [Errno 13] Permission denied: '/var/cache/yum/x86_64'"
dpath: '/var/cache/yum/x86_64/7/base'
self: <yum.yumRepo.YumRepository object at 0x1134310>
e: OSError(13, 'Permission denied')
backtrace (1,681 bytes)
environ (3,095 bytes)
GNOME_DESKTOP_SESSION_ID=this-is-deprecated
GJS_DEBUG_OUTPUT=stderr
LESSOPEN=||/usr/bin/lesspipe.sh %s
QT_IM_MODULE=ibus
LOGNAME=mohammad
USER=mohammad
PATH=/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:/home/mohammad/.local/bin:/home/mohammad/bin:/sbin:/usr/sbin:/usr/local/sbin
XDG_VTNR=1
GNOME_KEYRING_CONTROL=/run/user/1000/keyring-1ilTx7
WINDOWPATH=1
SSH_AGENT_PID=1614
LANG=en_US.utf8
TERM=xterm-256color
SHELL=/bin/bash
XAUTHORITY=/run/gdm/auth-for-mohammad-GZbS8p/database
SESSION_MANAGER=local/unix:@/tmp/.ICE-unix/1462,unix/unix:/tmp/.ICE-unix/1462
SHLVL=2
HISTSIZE=1000
WINDOWID=25165830
IMSETTINGS_INTEGRATE_DESKTOP=yes
GPG_AGENT_INFO=/run/user/1000/keyring-1ilTx7/gpg:0:1
HOME=/home/mohammad
USERNAME=mohammad
IMSETTINGS_MODULE=none
XDG_RUNTIME_DIR=/run/user/1000
SSH_AUTH_SOCK=/run/user/1000/keyring-1ilTx7/ssh
VTE_VERSION=3406
GDMSESSION=gnome-classic
XMODIFIERS=@im=ibus
GNOME_SHELL_SESSION_MODE=classic
MAIL=/var/spool/mail/mohammad
XDG_SESSION_ID=1
DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-lOSP9hBA6q,guid=9eea0192b9640dd9f210e9a75540af4d
_=/usr/share/yum-cli/completion-helper.py
DESKTOP_SESSION=gnome-classic
DISPLAY=:0
GNOME_KEYRING_PID=1460
HOSTNAME=localhost.localdomain
GDM_LANG=en_US.utf8
HISTCONTROL=ignoredups
PWD=/home/mohammad
COLORTERM=gnome-terminal
XDG_MENU_PREFIX=gnome-
LS_COLORS=rs=0:di=38;5;27:ln=38;5;51:mh=44;38;5;15:pi=40;38;5;11:so=38;5;13:do=38;5;5:bd=48;5;232;38;5;11:cd=48;5;232;38;5;3:or=48;5;232;38;5;9:mi=05;48;5;232;38;5;15:su=48;5;196;38;5;15:sg=48;5;11;38;5;16:ca=48;5;196;38;5;226:tw=48;5;10;38;5;16:ow=48;5;10;38;5;21:st=48;5;21;38;5;15:ex=38;5;34:*.tar=38;5;9:*.tgz=38;5;9:*.arc=38;5;9:*.arj=38;5;9:*.taz=38;5;9:*.lha=38;5;9:*.lz4=38;5;9:*.lzh=38;5;9:*.lzma=38;5;9:*.tlz=38;5;9:*.txz=38;5;9:*.tzo=38;5;9:*.t7z=38;5;9:*.zip=38;5;9:*.z=38;5;9:*.Z=38;5;9:*.dz=38;5;9:*.gz=38;5;9:*.lrz=38;5;9:*.lz=38;5;9:*.lzo=38;5;9:*.xz=38;5;9:*.bz2=38;5;9:*.bz=38;5;9:*.tbz=38;5;9:*.tbz2=38;5;9:*.tz=38;5;9:*.deb=38;5;9:*.rpm=38;5;9:*.jar=38;5;9:*.war=38;5;9:*.ear=38;5;9:*.sar=38;5;9:*.rar=38;5;9:*.alz=38;5;9:*.ace=38;5;9:*.zoo=38;5;9:*.cpio=38;5;9:*.7z=38;5;9:*.rz=38;5;9:*.cab=38;5;9:*.jpg=38;5;13:*.jpeg=38;5;13:*.gif=38;5;13:*.bmp=38;5;13:*.pbm=38;5;13:*.pgm=38;5;13:*.ppm=38;5;13:*.tga=38;5;13:*.xbm=38;5;13:*.xpm=38;5;13:*.tif=38;5;13:*.tiff=38;5;13:*.png=38;5;13:*.svg=38;5;13:*.svgz=38;5;13:*.mng=38;5;13:*.pcx=38;5;13:*.mov=38;5;13:*.mpg=38;5;13:*.mpeg=38;5;13:*.m2v=38;5;13:*.mkv=38;5;13:*.webm=38;5;13:*.ogm=38;5;13:*.mp4=38;5;13:*.m4v=38;5;13:*.mp4v=38;5;13:*.vob=38;5;13:*.qt=38;5;13:*.nuv=38;5;13:*.wmv=38;5;13:*.asf=38;5;13:*.rm=38;5;13:*.rmvb=38;5;13:*.flc=38;5;13:*.avi=38;5;13:*.fli=38;5;13:*.flv=38;5;13:*.gl=38;5;13:*.dl=38;5;13:*.xcf=38;5;13:*.xwd=38;5;13:*.yuv=38;5;13:*.cgm=38;5;13:*.emf=38;5;13:*.axv=38;5;13:*.anx=38;5;13:*.ogv=38;5;13:*.ogx=38;5;13:*.aac=38;5;45:*.au=38;5;45:*.flac=38;5;45:*.mid=38;5;45:*.midi=38;5;45:*.mka=38;5;45:*.mp3=38;5;45:*.mpc=38;5;45:*.ogg=38;5;45:*.ra=38;5;45:*.wav=38;5;45:*.axa=38;5;45:*.oga=38;5;45:*.spx=38;5;45:*.xspf=38;5;45:
GJS_DEBUG_TOPICS=JS ERROR;JS LOG
XDG_SEAT=seat0
environ (3,095 bytes)
mohammad_eghlima

mohammad_eghlima

2015-04-29 06:32

reporter  

machineid (135 bytes)
systemd=449ff413bea843d8a81e41b1c7586697
sosreport_uploader-dmidecode=00cc3aeceac9ab93edc079f3deda27e67323b3614ab4debbc8daea10b17f998d
machineid (135 bytes)
nunocunha

nunocunha

2016-07-01 00:04

reporter   ~0027004

Another user experienced a similar problem:

Open terminal
Try to auto complete "yum install fon"
Error occurred

reporter: libreport-2.1.11
cmdline: /usr/bin/python -t /usr/share/yum-cli/completion-helper.py -d 0 -C list available fon
executable: /usr/share/yum-cli/completion-helper.py
kernel: 3.10.0-327.el7.x86_64
package: yum-3.4.3-132.el7.centos.0.1
reason: yumRepo.py:706:_dirSetupMkdir_p:RepoError: Error making cache directory: /var/cache/yum/x86_64/7/base error was: [Errno 13] Permission denied: '/var/cache/yum/x86_64'
runlevel: N 5
type: Python
uid: 1000
t3kK4m

t3kK4m

2016-10-16 15:43

reporter   ~0027722

Another user experienced a similar problem:

I run an unprivileged yum command

reporter: libreport-2.1.11
cmdline: /usr/bin/python -t /usr/share/yum-cli/completion-helper.py -d 0 -C list available yum-
executable: /usr/share/yum-cli/completion-helper.py
kernel: 3.10.0-327.el7.x86_64
package: yum-3.4.3-132.el7.centos.0.1
reason: yumRepo.py:706:_dirSetupMkdir_p:RepoError: Error making cache directory: /var/cache/yum/x86_64/7/base error was: [Errno 13] Permission denied: '/var/cache/yum/x86_64'
runlevel: N 5
type: Python
uid: 1000
vivacuba

vivacuba

2016-10-20 01:25

reporter   ~0027755

Another user experienced a similar problem:

Just heat TAB 3 times when typing sudo yum install snapp

reporter: libreport-2.1.11
cmdline: /usr/bin/python -t /usr/share/yum-cli/completion-helper.py -d 0 -C list available snapp
executable: /usr/share/yum-cli/completion-helper.py
kernel: 3.10.0-327.el7.x86_64
package: yum-3.4.3-132.el7.centos.0.1
reason: yumRepo.py:706:_dirSetupMkdir_p:RepoError: Error making cache directory: /var/cache/yum/x86_64/7/base error was: [Errno 13] Permission denied: '/var/cache/yum/x86_64'
runlevel: N 5
type: Python
uid: 1000
Jacekszw

Jacekszw

2017-09-03 12:51

reporter   ~0029984

Another user experienced a similar problem:

1 min after copy backup file from mounted 2TB - ntfs HDD.

reporter: libreport-2.1.11.1
cmdline: /usr/bin/python -t /usr/share/yum-cli/completion-helper.py -d 0 -C list available kmo
executable: /usr/share/yum-cli/completion-helper.py
kernel: 3.10.0-327.el7.x86_64
package: yum-3.4.3-132.el7.centos.0.1
reason: yumRepo.py:706:_dirSetupMkdir_p:RepoError: Error making cache directory: /var/cache/yum/x86_64/7/base error was: [Errno 13] Permission denied: '/var/cache/yum/x86_64'
reproducible: Not sure how to reproduce the problem
runlevel: N 5
type: Python
uid: 1000
rajin2c

rajin2c

2020-05-17 08:00

reporter   ~0036948

Another user experienced a similar problem:

Recently reinstalled centos 7 and got this error

reporter: libreport-2.1.11
cmdline: /usr/bin/python -t /usr/share/yum-cli/completion-helper.py -d 0 -C list available ep
executable: /usr/share/yum-cli/completion-helper.py
kernel: 3.10.0-327.el7.x86_64
package: yum-3.4.3-132.el7.centos.0.1
reason: yumRepo.py:706:_dirSetupMkdir_p:RepoError: Error making cache directory: /var/cache/yum/x86_64/7/base error was: [Errno 13] Permission denied: '/var/cache/yum/x86_64'
runlevel: N 5
type: Python
uid: 1000

Issue History

Date Modified Username Field Change
2015-04-29 06:32 mohammad_eghlima New Issue
2015-04-29 06:32 mohammad_eghlima File Added: backtrace
2015-04-29 06:32 mohammad_eghlima File Added: environ
2015-04-29 06:32 mohammad_eghlima File Added: machineid
2016-07-01 00:04 nunocunha Note Added: 0027004
2016-10-16 15:43 t3kK4m Note Added: 0027722
2016-10-20 01:25 vivacuba Note Added: 0027755
2017-09-03 12:51 Jacekszw Note Added: 0029984
2020-05-17 08:00 rajin2c Note Added: 0036948