View previous topic :: View next topic |
Author |
Message |
lo-jay l33t
Joined: 27 Feb 2005 Posts: 862
|
Posted: Fri Sep 27, 2013 9:32 pm Post subject: Suddenly can't sync anymore? |
|
|
Quote: | # eix-sync
* Running emerge --sync
>>> Synchronization of repository 'gentoo' located in '/usr/portage'...
>>> Starting rsync with rsync://91.186.30.235/gentoo-portage...
>>> Checking server timestamp ...
Welcome to boobie.gentoo.org / rsync.gentoo.org
Server Address : 91.186.30.235
Contact Name : mirror-admin@gentoo.org
Hardware : 2 x Intel(R) Xeon(R) CPU 3050 @ 2.13GHz, 3958MB RAM
Sponsor : EUKhost, Maidenhead, England
Please note: common gentoo-netiquette says you should not sync more
than once a day. Users who abuse the rsync.gentoo.org rotation
may be added to a temporary ban list.
MOTD autogenerated by update-rsync-motd on Sun Apr 1 01:05:34 UTC 2012
receiving incremental file list
rsync: ERROR: cannot stat destination "/var/tmp/tmpG75zo3": Permission denied (13)
rsync error: errors selecting input/output files, dirs (code 3) at main.c(565) [Receiver=3.0.9]
* Rsync has not successfully finished. It is recommended that you keep
* trying or that you use the 'emerge-webrsync' option if you are unable
* to use rsync due to firewall or other restrictions. This should be a
* temporary problem unless complications exist with your network
* (and possibly your system's filesystem) configuration.
* emerge --sync failed
* Time statistics:
1 seconds for syncing
1 seconds total
|
what's that about?
tried , didn't change a thing?
cheers! _________________ lo-jay
The mechanic "One of 'em Dodge Chargers - let him go by."
The driver "Not today!"
taken from "Two Lane Blacktop" |
|
Back to top |
|
|
eccerr0r Watchman
Joined: 01 Jul 2004 Posts: 9677 Location: almost Mile High in the USA
|
Posted: Sat Sep 28, 2013 12:10 am Post subject: |
|
|
Is there something wrong with your /var/tmp/ directory? can you write in it as root? Are you using root to sync?
Are you using a VM with this mounted somewhere else? _________________ Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching? |
|
Back to top |
|
|
Jaglover Watchman
Joined: 29 May 2005 Posts: 8291 Location: Saint Amant, Acadiana
|
|
Back to top |
|
|
Hu Moderator
Joined: 06 Mar 2007 Posts: 21607
|
Posted: Sat Sep 28, 2013 3:38 am Post subject: |
|
|
As eccerr0r says, it looks like the permissions on /var/tmp are wrong. If you use FEATURES=usersync, which you should, then you need proper permissions on the temporary directory. |
|
Back to top |
|
|
lo-jay l33t
Joined: 27 Feb 2005 Posts: 862
|
Posted: Sat Sep 28, 2013 8:06 am Post subject: |
|
|
gives Quote: | drwx------ 4 root root 4096 Sep 27 23:29 tmp
|
Code: | tmp # ls -al
total 16
drwx------ 4 root root 4096 Sep 27 23:29 .
drwxr-xr-x 12 root root 4096 Jan 26 2013 ..
drwx------ 2 root root 4096 Jan 14 2013 kdecache-root
drwxrwxr-x 4 portage portage 4096 Sep 27 23:29 portage
|
how should i chmod the directory? and yes, i do sync as root!
cheers again!
ps: what is this Quote: | /var/tmp/tmpG75zo3 | about? _________________ lo-jay
The mechanic "One of 'em Dodge Chargers - let him go by."
The driver "Not today!"
taken from "Two Lane Blacktop" |
|
Back to top |
|
|
lo-jay l33t
Joined: 27 Feb 2005 Posts: 862
|
Posted: Sat Sep 28, 2013 1:04 pm Post subject: |
|
|
and my
looks like this:
Code: |
CFLAGS="-march=k8 -pipe -O2"
CHOST="x86_64-pc-linux-gnu"
CXXFLAGS="${CFLAGS}"
MAKEOPTS="-j3"
USE="bluetooth mmx sse sse2 X qt3 qt4 kde dvd alsa cdr cjk icu"
INPUT_DEVICES="keyboard mouse evdev"
VIDEO_CARDS="nv nvidia"
LINGUAS="en de zh_CN"
ACCEPT_LICENSE="* skype-eula"
PORTDIR_OVERLAY=/usr/local/portage
EMERGE_DEFAULT_OPTS="--autounmask=n"
PORTDIR_OVERLAY="/usr/local/portage"
# Set PORTDIR for backward compatibility with various tools:
# gentoo-bashcomp - bug #478444
# euse - bug #474574
# euses and ufed - bug #478318
PORTDIR="/usr/portage"
|
_________________ lo-jay
The mechanic "One of 'em Dodge Chargers - let him go by."
The driver "Not today!"
taken from "Two Lane Blacktop" |
|
Back to top |
|
|
Hu Moderator
Joined: 06 Mar 2007 Posts: 21607
|
Posted: Sat Sep 28, 2013 3:11 pm Post subject: |
|
|
Code: |
drwxr-xr-x root root /var/
drwxrwxrwt root root /var/tmp/
drwxr-xr-x portage portage /var/tmp/portage/ |
|
|
Back to top |
|
|
lo-jay l33t
Joined: 27 Feb 2005 Posts: 862
|
Posted: Sat Sep 28, 2013 3:49 pm Post subject: |
|
|
yeah, that helped ( did chmod 777 on the three directories ).
still strange how the permissions got changed in the first place?
thanks a lot _________________ lo-jay
The mechanic "One of 'em Dodge Chargers - let him go by."
The driver "Not today!"
taken from "Two Lane Blacktop" |
|
Back to top |
|
|
figueroa Advocate
Joined: 14 Aug 2005 Posts: 2961 Location: Edge of marsh USA
|
Posted: Sat Sep 28, 2013 4:33 pm Post subject: |
|
|
This bit me too. Changing the portage temp directory to 777 fixed it, but none of my other machines have had this issue and their portage temp directory is 775. I'm fixed, but stumped. _________________ Andy Figueroa
hp pavilion hpe h8-1260t/2AB5; spinning rust x3
i7-2600 @ 3.40GHz; 16 gb; Radeon HD 7570
amd64/23.0/split-usr/desktop (stable), OpenRC, -systemd -pulseaudio -uefi |
|
Back to top |
|
|
Hu Moderator
Joined: 06 Mar 2007 Posts: 21607
|
Posted: Sat Sep 28, 2013 9:06 pm Post subject: |
|
|
As shown by the output I posted, neither 777 nor 775 is correct. Generally, you should not set a directory to 777. |
|
Back to top |
|
|
Clad in Sky l33t
Joined: 04 May 2007 Posts: 887 Location: Germany
|
Posted: Sun Sep 29, 2013 7:02 am Post subject: |
|
|
Hah, I had this issue, too.
I'm not very familar with chmod - how would I set my tempdir (/home/tmp because I have more space left there) set to "portage".
While chmod 777 seems to work, it seems not to be the correct solution.
Or does chown portage do the trick?
Edit:
Well, it does. Not sure if this is the correct way, though. _________________ Kali Ma
Now it's autumn of the aeons
Dance with your sword
Now it's time for the harvest |
|
Back to top |
|
|
Jaglover Watchman
Joined: 29 May 2005 Posts: 8291 Location: Saint Amant, Acadiana
|
Posted: Sun Sep 29, 2013 12:07 pm Post subject: |
|
|
Hu wrote: | Code: |
drwxr-xr-x root root /var/
drwxrwxrwt root root /var/tmp/
drwxr-xr-x portage portage /var/tmp/portage/ |
|
I was getting rsync: mkstemp "/home/portagetmp/.tmpwfg42k.eIb3j9" failed: Permission denied (13) and went easy way with -usersync. (My / is on SSD and /home is a regular HDD). Of course, Hu is correct, usersync should be enabled, had to fix permissions on portagetmp ... _________________ My Gentoo installation notes.
Please learn how to denote units correctly! |
|
Back to top |
|
|
Hu Moderator
Joined: 06 Mar 2007 Posts: 21607
|
Posted: Sun Sep 29, 2013 3:42 pm Post subject: |
|
|
Use chown to change the user. Use chmod to change permissions, including the sticky flag. |
|
Back to top |
|
|
|