Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] rsync: mkstemp (file) permission denied?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
palantir
Tux's lil' helper
Tux's lil' helper


Joined: 28 Nov 2003
Posts: 142
Location: Trento, Italia

PostPosted: Fri Jan 16, 2009 8:04 am    Post subject: [SOLVED] rsync: mkstemp (file) permission denied? Reply with quote

Hi there!

Using Portage 2.2_rc21

Since a few days, whenever I launch an emerge --sync, I get sporadic errors like these:

Code:

...
net-print/xfprint/
rsync: failed to set times on "/usr/portage/net-wireless/wireless-regdb": Operation not permitted (1)
net-voip/telepathy-sofiasip/
rsync: mkstemp "/usr/portage/net-voip/telepathy-sofiasip/.ChangeLog.khoGiD" failed: Permission denied (13)
rsync: mkstemp "/usr/portage/net-voip/telepathy-sofiasip/.Manifest.gxCyeP" failed: Permission denied (13)
rsync: mkstemp "/usr/portage/net-voip/telepathy-sofiasip/.telepathy-sofiasip-0.5.14.ebuild.AHqgb1" failed: Permission denied (13)
net-wireless/crda/
net-wireless/iw/
rsync: mkstemp "/usr/portage/net-wireless/iw/.ChangeLog.X5oSJd" failed: Permission denied (13)
rsync: mkstemp "/usr/portage/net-wireless/iw/.Manifest.9K5Mjq" failed: Permission denied (13)
rsync: mkstemp "/usr/portage/net-wireless/iw/.iw-0.9.7.ebuild.Jt5UaD" failed: Permission denied (13)
rsync: failed to set times on "/usr/portage/perl-core/Module-Build": Operation not permitted (1)
net-wireless/wireless-regdb/
rsync: mkstemp "/usr/portage/net-wireless/wireless-regdb/.ChangeLog.JAUQaQ" failed: Permission denied (13)
rsync: mkstemp "/usr/portage/net-wireless/wireless-regdb/.Manifest.bm3Ma3" failed: Permission denied (13)
rsync: mkstemp "/usr/portage/net-wireless/wireless-regdb/.metadata.xml.QekHbg" failed: Permission denied (13)
...
rsync: delete_file: unlink(app-portage/porticron/porticron-0.2.ebuild) failed: Permission denied (13)


It used to work flawlessly until some days ago...

Is this a problem? Should I report a bug?

Palantir

Code:

Portage 2.2_rc21 (default/linux/x86/2008.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.24-gentoo-r8 i686)
=================================================================
System uname: Linux-2.6.24-gentoo-r8-i686-Intel-R-_Core-TM-2_Quad_CPU_Q9300_@_2.50GHz-with-glibc2.0
Timestamp of tree: Fri, 16 Jan 2009 07:30:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7-r1, 2.1.6-r1
dev-lang/python:     2.5.2-r7
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.6.2
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/4.1/env /usr/kde/4.1/share/config /usr/kde/4.1/shutdown /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks fixpackages nostrip parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LDFLAGS="-Wl,-O1"
LINGUAS="en it"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acl acpi aiglx akode alsa apache2 artswrappersuid avi berkdb bzip2 cdr cli cracklib crypt cups curl divx dri dvd dvdr exif expat fam ffmpeg flac foomaticdb fortran gcj gd gdbm gif gpm gstreamer hal iconv imlibsql iproute2 ipv6 isdnlog japper java jpeg kde kdeprefix lcms mad mhash midi mng mp3 mudflap mysql ncurses nls nptl nptlonly ntpl ntplonly opengl openmp oss pam pcre pdf perl php png ppds pppd python qt qt3 qt4 readline reflection ruby samba session spl sqlite ssl subversion svg sysfs tcltk tcpd tetex tiff unicode win32codecs wxgtk x86 xcomposite xine xinerama xorg xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en it" USERLAND="GNU" VIDEO_CARDS="vesa nv nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


Last edited by palantir on Fri Jan 16, 2009 12:40 pm; edited 1 time in total
Back to top
View user's profile Send private message
pholthau
Guru
Guru


Joined: 27 Nov 2005
Posts: 361
Location: Bielefeld, Germany

PostPosted: Fri Jan 16, 2009 8:49 am    Post subject: Reply with quote

I got this, too. Solved it by rm -r /usr/portage (without distfiles that I've unmounted before)
and emerge --sync again. Don't know whether this is the right way, but it works.
_________________
The message is Feierei, alder! The message is Gude Laune, alder! [Sven]
Back to top
View user's profile Send private message
l0l
n00b
n00b


Joined: 10 Jul 2008
Posts: 43

PostPosted: Fri Jan 16, 2009 9:41 am    Post subject: Reply with quote

pholthau wrote:
I got this, too. Solved it by rm -r /usr/portage (without distfiles that I've unmounted before)
and emerge --sync again. Don't know whether this is the right way, but it works.


The same thing here couple of days ago. I did "ls -l /usr/portage" and noticed that some files were owned by root, not by portage.
I only did this: "chown -R portage:portage /usr/portage" and it solved it. ;)
Back to top
View user's profile Send private message
palantir
Tux's lil' helper
Tux's lil' helper


Joined: 28 Nov 2003
Posts: 142
Location: Trento, Italia

PostPosted: Fri Jan 16, 2009 12:39 pm    Post subject: Reply with quote

l0l wrote:
I only did this: "chown -R portage:portage /usr/portage" and it solved it. ;)


That's right, it works. Thanks :) I didn't realize it was just permissions.
Palantir
Back to top
View user's profile Send private message
papapenguin
l33t
l33t


Joined: 20 Sep 2005
Posts: 694
Location: Bellevue

PostPosted: Fri Jan 16, 2009 6:02 pm    Post subject: Reply with quote

Quote:
I only did this: "chown -R portage:portage /usr/portage" and it solved it. ;)

worked for me too...
_________________
--------------
Compaq Presario V6120US
AMD Turion 64X2
------------------------
Back to top
View user's profile Send private message
keenblade
Veteran
Veteran


Joined: 03 Oct 2004
Posts: 1087

PostPosted: Fri Jan 16, 2009 7:04 pm    Post subject: Reply with quote

Updating portage to version 2.2_rc22 fixed it, too
_________________
Anyway it's all the same at the end...
Need help to get it working: "x-fi surround 5.1"
Back to top
View user's profile Send private message
chovy
Guru
Guru


Joined: 03 Dec 2004
Posts: 453

PostPosted: Mon Mar 30, 2009 2:15 pm    Post subject: Reply with quote

papapenguin wrote:
Quote:
I only did this: "chown -R portage:portage /usr/portage" and it solved it. ;)

worked for me too...


works for me too.
_________________
Woof, Woof! Add "[solved]" to the title! Woof, Woof!
Back to top
View user's profile Send private message
jamario
n00b
n00b


Joined: 22 May 2009
Posts: 10

PostPosted: Tue Nov 03, 2009 6:34 pm    Post subject: Reply with quote

huh? Why are there a bunch of folders with uid/gid set to root, and others portage, and they all have the same modification times?

For example, in /usr/portage/virtual/:
Code:
drwxr-xr-x 2 portage portage 4096 2009-10-27 14:07 perl-Params-Check
drwxr-xr-x 2 root    root    4096 2009-10-27 14:07 perl-parent
drwxr-xr-x 2 root    root    4096 2009-10-27 14:07 perl-Parse-CPAN-Meta


and in /usr/portage/dev-db/:
Code:
drwxr-xr-x 3 portage portage 4096 2009-10-22 17:08 tinycdb
drwxr-xr-x 3 root    root    4096 2009-10-27 09:35 tokyocabinet
drwxr-xr-x 3 portage portage 4096 2009-10-27 16:05 tora


*Edit*
Nvm, it's because I enabled usersync a few days ago.
Back to top
View user's profile Send private message
jserink
Veteran
Veteran


Joined: 30 Jan 2004
Posts: 1007

PostPosted: Wed Jul 20, 2016 1:17 am    Post subject: Reply with quote

l0l wrote:
pholthau wrote:
I got this, too. Solved it by rm -r /usr/portage (without distfiles that I've unmounted before)
and emerge --sync again. Don't know whether this is the right way, but it works.


The same thing here couple of days ago. I did "ls -l /usr/portage" and noticed that some files were owned by root, not by portage.
I only did this: "chown -R portage:portage /usr/portage" and it solved it. ;)


This fixed this problem for me today.

Cheers,
john
Back to top
View user's profile Send private message
baaann
Guru
Guru


Joined: 23 Jan 2006
Posts: 558
Location: uk

PostPosted: Mon Jul 30, 2018 1:39 pm    Post subject: Reply with quote

I have had this problem over the last few days

Code:
emerge --sync -q
timed out
rsync error: received SIGINT, SIGTERM, or SIGHUP (code 20) at rsync.c(642) [Receiver=3.1.3]
>>> Retrying...


>>> Starting retry 1 of 3 with rsync://212.110.161.69/gentoo-portage
rsync: mkstemp "/usr/portage/dev-python/python-netlink/.Manifest.roB6fF" failed: Permission denied (13)
rsync: mkstemp "/usr/portage/dev-python/python-netlink/.python-netlink-0.1.ebuild.y2ylGu" failed: Permission denied (13)
rsync: mkstemp "/usr/portage/dev-python/tappy/.Manifest.Lvvbbk" failed: Permission denied (13)
rsync: mkstemp "/usr/portage/dev-python/tappy/.tappy-2.4.ebuild.hKa2F9" failed: Permission denied (13)
rsync: delete_file: unlink(gnome-extra/gnome-shell-extension-gsconnect/gnome-shell-extension-gsconnect-11.ebuild) failed: Permission denied (13)
rsync: mkstemp "/usr/portage/gnome-extra/gnome-shell-extension-gsconnect/.Manifest.hXTqLZ" failed: Permission denied (13)
rsync: mkstemp "/usr/portage/gnome-extra/gnome-shell-extension-gsconnect/.gnome-shell-extension-gsconnect-11-r1.ebuild.ELAQQP" failed: Permission denied (13)
rsync: mkstemp "/usr/portage/media-libs/woff2/.Manifest.X9zb9K" failed: Permission denied (13)
rsync: mkstemp "/usr/portage/media-libs/woff2/.woff2-1.0.2-r1.ebuild.dGMqGB" failed: Permission denied (13)
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1189) [sender=3.1.3]
boxx2 /home/baa # ls -la /usr/portage/dev-python/python-netlink/
total 72
drwxr-xr-x    2 root    root     4096 Jul 25 08:39 .
drwxr-xr-x 1872 portage portage 53248 Jul 30 12:10 ..
-rw-r--r--    1 root    root      915 Jul 25 03:09 Manifest
-rw-r--r--    1 root    root      351 Jul 25 03:09 metadata.xml
-rw-r--r--    1 root    root      719 Jul 25 03:09 python-netlink-0.1.ebuild


The fix above is trivial but I feel I need to ask the question why has it happened, before fixing it? Not famiiar with the workings of rsync I would be grateful for any suggestions.
Back to top
View user's profile Send private message
dufeu
l33t
l33t


Joined: 30 Aug 2002
Posts: 924
Location: US-FL-EST

PostPosted: Sat Sep 01, 2018 10:33 am    Post subject: Reply with quote

baaann wrote:
I have had this problem over the last few days

The fix above is trivial but I feel I need to ask the question why has it happened, before fixing it? Not famiiar with the workings of rsync I would be grateful for any suggestions.

I've had this issue as well when I recently tried 'emerge -uND @world. I had a number of packages fail because of missing files from their manifest lists. I had missed the 'permission denied' warnings during 'emaint --auto sync'.

I don't think this is an issue with 'rsync'. The latest vesion I have installed is 3.1.3 installed on March 28, 2018. It's still the latest version available.

I'm not a developer and I'm not sure how to check this. I suspect the latest iteration 'portage-2.3.48' I installed on August 31, 2018 is more likely as the source for this or perhaps a related configuration change. Specifically, there have been some security related changes to how portage has become more strict in it's tree updates. This looks like to me as a possible change in the 'rsync' options portage uses when updating the tree though a developer would need to tell us for sure.

There was an 'eselect news' item on 2018-07-11 about portage rsync hardlink support which may be related.
_________________
People whom think M$ is mediocre, don't know the half of it.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum