Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Suddenly can't sync anymore?
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
lo-jay
l33t
l33t


Joined: 27 Feb 2005
Posts: 862

PostPosted: Fri Sep 27, 2013 9:32 pm    Post subject: Suddenly can't sync anymore? Reply with quote

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
Code:
emerge-webrsync
, 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
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 9677
Location: almost Mile High in the USA

PostPosted: Sat Sep 28, 2013 12:10 am    Post subject: Reply with quote

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
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Sat Sep 28, 2013 12:17 am    Post subject: Reply with quote

I experienced the same problem. I have PORTAGE_TMPDIR in a non-standard location. FEATURES="-usersync" is a workaround.
_________________
My Gentoo installation notes.
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21593

PostPosted: Sat Sep 28, 2013 3:38 am    Post subject: Reply with quote

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
View user's profile Send private message
lo-jay
l33t
l33t


Joined: 27 Feb 2005
Posts: 862

PostPosted: Sat Sep 28, 2013 8:06 am    Post subject: Reply with quote

Code:
ls -al


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
View user's profile Send private message
lo-jay
l33t
l33t


Joined: 27 Feb 2005
Posts: 862

PostPosted: Sat Sep 28, 2013 1:04 pm    Post subject: Reply with quote

and my
Quote:
/etc/make.conf


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
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21593

PostPosted: Sat Sep 28, 2013 3:11 pm    Post subject: Reply with quote

Code:

drwxr-xr-x root    root    /var/
drwxrwxrwt root    root    /var/tmp/
drwxr-xr-x portage portage /var/tmp/portage/
Back to top
View user's profile Send private message
lo-jay
l33t
l33t


Joined: 27 Feb 2005
Posts: 862

PostPosted: Sat Sep 28, 2013 3:49 pm    Post subject: Reply with quote

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
View user's profile Send private message
figueroa
Advocate
Advocate


Joined: 14 Aug 2005
Posts: 2956
Location: Edge of marsh USA

PostPosted: Sat Sep 28, 2013 4:33 pm    Post subject: Reply with quote

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
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21593

PostPosted: Sat Sep 28, 2013 9:06 pm    Post subject: Reply with quote

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
View user's profile Send private message
Clad in Sky
l33t
l33t


Joined: 04 May 2007
Posts: 887
Location: Germany

PostPosted: Sun Sep 29, 2013 7:02 am    Post subject: Reply with quote

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
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Sun Sep 29, 2013 12:07 pm    Post subject: Reply with quote

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. :oops: (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
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21593

PostPosted: Sun Sep 29, 2013 3:42 pm    Post subject: Reply with quote

Use chown to change the user. Use chmod to change permissions, including the sticky flag.
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