Jump to content
Read the Funtoo Newsletter: Summer 2023 ×
  • 0

[Solved]eix can't create the database file


donjames

Question

eix installs until it gets down to the last line and then:

Writing database file /var/cache/eix/portage.eix...

cannon open database file /var/cache/eix/portage.eix for writing (mode =  'wb')

How can I fix this?

Thanks,

donjames

Solution:

cd /var/cache

chown root:portage eix

emerge eix

###### end of solution #######

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

Hi,

please check if directory `/var/cache/eix/` exists and it has there right permissions.

At my Funtoo box I have

box-fenix ~ # stat /var/cache/eix/

  File: /var/cache/eix/
  Size: 4096            Blocks: 8          IO Block: 4096   directory
Device: fe01h/65025d    Inode: 562362      Links: 2
Access: (0755/drwxr-xr-x)  Uid: (  250/ portage)   Gid: (  250/ portage)
Access: 2018-08-03 23:46:48.804008384 +0300
Modify: 2018-09-07 17:40:44.768927828 +0300
Change: 2018-09-07 17:40:45.736941231 +0300
 Birth: -

and

box-fenix ~ # stat /var/cache/eix/portage.eix 

  File: /var/cache/eix/portage.eix
  Size: 8152103         Blocks: 15928      IO Block: 4096   regular file
Device: fe01h/65025d    Inode: 562982      Links: 1
Access: (0664/-rw-rw-r--)  Uid: (  250/ portage)   Gid: (  250/ portage)
Access: 2018-08-04 00:13:01.220015984 +0300
Modify: 2018-10-05 08:06:43.164145881 +0300
Change: 2018-10-05 08:06:43.164145881 +0300
 Birth: -

Also I'm running `eix-update` as "root".

--

Saulius

Link to comment
Share on other sites

  • 0

The directory, /var/cache/eix, has the permissions:

drwxr-xr-x

I ran eix-update as root.

I changed the permissions to:

drwxrwxrwx 

and it worked.  Then I changed the permissions back to:

drwxr-xr-x

I hope I didn't break anything.

Please let me know if this is a proper solution.

Thanks,

donjames

Edited by donjames
Send more data.
Link to comment
Share on other sites

  • 0

The owner is root:root for the eix directory.

root:portage for the edb directory.

I changed the owner in the eix directory to:

root:portage

and now eix-update runs without a hitch.

donjames

Edited by donjames
Send more data.
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...