Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
eix-update fails
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
herr_tichy
n00b
n00b


Joined: 09 Aug 2012
Posts: 11
Location: NRW, Germany

PostPosted: Thu Aug 09, 2012 5:44 am    Post subject: eix-update fails Reply with quote

Hi,

I have installed Gentoo on btrfs as root. When I attempt to run eix-update it fails like this:

Quote:
Writing database file /var/cache/eix/portage.eix ..
open("/var/cache/eix/portage.eix", O_WRONLY|O_CREAT|O_TRUNC, 0666) = -1 EACCES (Permission denied)
void update(const char*, CacheTable&, PortageSettings&, bool, const std::vector<RepoName>&, const std::vector<std::basic_string<char> >&, Statusline&): Can't open the database file '/var/cache/eix/portage.eix' for writing (mode = 'wb')
+++ exited with 1 +++


When I mount a tmpfs to /var/cache/eix/ (to eliminate btrfs as the culprit) the same error still occurs. I'm all out of ideas, suggestions?
Back to top
View user's profile Send private message
mv
Watchman
Watchman


Joined: 20 Apr 2005
Posts: 6281

PostPosted: Thu Aug 09, 2012 6:34 am    Post subject: Reply with quote

eix-update attempts to drop its permissions to those of EIX_USER:EIX_GROUP resp. EIX_UID:EIX_GID (which defaults to portage:portage or 250:250 respectively).
Either make the directory/file writable for this user/group or set these variables appropriately (in /etc/eixrc or ~/.eixrc or in the environment).
Back to top
View user's profile Send private message
herr_tichy
n00b
n00b


Joined: 09 Aug 2012
Posts: 11
Location: NRW, Germany

PostPosted: Thu Aug 09, 2012 9:00 am    Post subject: Reply with quote

Good call, however, that wasn't it:

Quote:
tablette ~ # chmod -R 777 /var/cache/eix/
tablette ~ # eix-update
Reading Portage settings ..
Building database (/var/cache/eix/portage.eix) ..
[0] "gentoo" /usr/portage/ (cache: metadata-md5-or-flat)
Reading category 156|156 (100%) Finished
Applying masks ..
Calculating hash tables ..
Writing database file /var/cache/eix/portage.eix ..
void update(const char*, CacheTable&, PortageSettings&, bool, const std::vector<RepoName>&, const std::vector<std::basic_string<char> >&, Statusline&): Can't open the database file '/var/cache/eix/portage.eix' for writing (mode = 'wb')
Back to top
View user's profile Send private message
Elessar1991
n00b
n00b


Joined: 11 Jul 2012
Posts: 6

PostPosted: Thu Aug 09, 2012 1:00 pm    Post subject: Reply with quote

Could it be possible that the portage.eix is corrupt maybe?

Did you try doing a backup of that file and deleting it from there and then run eix-update again?
Could be worth a try.
Back to top
View user's profile Send private message
herr_tichy
n00b
n00b


Joined: 09 Aug 2012
Posts: 11
Location: NRW, Germany

PostPosted: Fri Aug 10, 2012 5:26 am    Post subject: Reply with quote

Yep, thought about that too, but the file doesn't even exist.
Back to top
View user's profile Send private message
mv
Watchman
Watchman


Joined: 20 Apr 2005
Posts: 6281

PostPosted: Fri Aug 10, 2012 6:45 am    Post subject: Reply with quote

There might be other permission obstacles like ACL or filesystem mounted readonly etc. Does
Code:
/bin/su -c ":>/var/cache/eix/portage.eix" -s /bin/sh portage
really generate the file (with portage:portage 644 permissions)? (The quotes in this command are essential!)
If yes, then how about
Code:
eix-drop-permissions /bin/sh -c ":>/var/cache/eix/test"
Back to top
View user's profile Send private message
BillWho
Veteran
Veteran


Joined: 03 Mar 2012
Posts: 1600
Location: US

PostPosted: Fri Aug 10, 2012 3:48 pm    Post subject: Reply with quote

herr_tichy,

Check if this gives you anything different for an error:

Code:
strace -e trace=desc eix-update 2>&1 | grep portage.eix


You might have to emerge dev-util/strace
_________________
Good luck :wink:

Since installing gentoo, my life has become one long emerge :)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo 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