Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
emerge fails[solved, NFS shared portage tree was dead]
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
drizzt
Guru
Guru


Joined: 21 Jul 2002
Posts: 428

PostPosted: Tue May 20, 2014 8:57 pm    Post subject: emerge fails[solved, NFS shared portage tree was dead] Reply with quote

I need urgent help. Emerge fails with any command i do except
Code:
--help

e.g.
Code:
emerge --info
Traceback (most recent call last):
  File "/usr/bin/emerge", line 50, in <module>
    retval = emerge_main()
  File "/usr/lib64/portage/pym/_emerge/main.py", line 1022, in emerge_main
    action=myaction, args=myfiles, opts=myopts)
  File "/usr/lib64/portage/pym/portage/proxy/objectproxy.py", line 31, in __call__
    return result(*args, **kwargs)
  File "/usr/lib64/portage/pym/_emerge/actions.py", line 3226, in load_emerge_config
    **portage._native_kwargs(kwargs))
  File "/usr/lib64/portage/pym/portage/__init__.py", line 582, in create_trees
    env=env, eprefix=eprefix)
  File "/usr/lib64/portage/pym/portage/package/ebuild/config.py", line 517, in __init__
    self.repositories = load_repository_config(self)
  File "/usr/lib64/portage/pym/portage/repository/config.py", line 956, in load_repository_config
    return RepoConfigLoader(repoconfigpaths, settings)
  File "/usr/lib64/portage/pym/portage/repository/config.py", line 599, in __init__
    portdir)
  File "/usr/lib64/portage/pym/portage/repository/config.py", line 551, in _parse
    repo = RepoConfig(sname, optdict, local_config=local_config)
  File "/usr/lib64/portage/pym/portage/repository/config.py", line 215, in __init__
    layout_data = parse_layout_conf(self.location, self.name)[0]
  File "/usr/lib64/portage/pym/portage/repository/config.py", line 971, in parse_layout_conf
    layout_data, layout_errors = layout_file.load()
  File "/usr/lib64/portage/pym/portage/env/loaders.py", line 159, in load
    lines = f.readlines()
OSError: [Errno 5] Input/output error


Code:
eselect python list
Available Python interpreters:
  [1]   python2.7
  [2]   python3.3 *
  [3]   python3.4


Anybody any ideas how to fix this ?
_________________
People don't have to earn my respect. I offer my respect to them, but be careful to lose my respect...


Last edited by drizzt on Wed May 21, 2014 6:51 pm; edited 1 time in total
Back to top
View user's profile Send private message
kurisu
Apprentice
Apprentice


Joined: 19 Jan 2011
Posts: 159
Location: Munich, Germany

PostPosted: Tue May 20, 2014 9:41 pm    Post subject: Reply with quote

A conservative, yet working approach might be using Python 2.7 as main interpreter:
Code:
eselect python set 1 && python-updater
Back to top
View user's profile Send private message
drizzt
Guru
Guru


Joined: 21 Jul 2002
Posts: 428

PostPosted: Wed May 21, 2014 4:24 am    Post subject: Reply with quote

Unfortunately this doesn't help:
Code:
eselect python list
Available Python interpreters:
  [1]   python2.7 *
  [2]   python3.3
  [3]   python3.4

emerge --info
Traceback (most recent call last):
  File "/usr/bin/emerge", line 50, in <module>
    retval = emerge_main()
  File "/usr/lib64/portage/pym/_emerge/main.py", line 1022, in emerge_main
    action=myaction, args=myfiles, opts=myopts)
  File "/usr/lib64/portage/pym/portage/proxy/objectproxy.py", line 31, in __call__
    return result(*args, **kwargs)
  File "/usr/lib64/portage/pym/_emerge/actions.py", line 3226, in load_emerge_config
    **portage._native_kwargs(kwargs))
  File "/usr/lib64/portage/pym/portage/__init__.py", line 582, in create_trees
    env=env, eprefix=eprefix)
  File "/usr/lib64/portage/pym/portage/package/ebuild/config.py", line 517, in __init__
    self.repositories = load_repository_config(self)
  File "/usr/lib64/portage/pym/portage/repository/config.py", line 956, in load_repository_config
    return RepoConfigLoader(repoconfigpaths, settings)                                                                                                           
  File "/usr/lib64/portage/pym/portage/repository/config.py", line 599, in __init__
    portdir)
  File "/usr/lib64/portage/pym/portage/repository/config.py", line 551, in _parse
    repo = RepoConfig(sname, optdict, local_config=local_config)
  File "/usr/lib64/portage/pym/portage/repository/config.py", line 215, in __init__
    layout_data = parse_layout_conf(self.location, self.name)[0]
  File "/usr/lib64/portage/pym/portage/repository/config.py", line 971, in parse_layout_conf
    layout_data, layout_errors = layout_file.load()
  File "/usr/lib64/portage/pym/portage/env/loaders.py", line 159, in load
    lines = f.readlines()
OSError: [Errno 5] Input/output error

_________________
People don't have to earn my respect. I offer my respect to them, but be careful to lose my respect...
Back to top
View user's profile Send private message
gotyaoi
Tux's lil' helper
Tux's lil' helper


Joined: 01 Apr 2013
Posts: 137

PostPosted: Wed May 21, 2014 5:28 am    Post subject: Reply with quote

I/O errors suggest something has gone wrong with your filesystem. Please post the output of "ls -Fhn /usr/portage/layout.conf".
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 7470

PostPosted: Wed May 21, 2014 7:01 am    Post subject: Reply with quote

Time to fsck your system
Back to top
View user's profile Send private message
drizzt
Guru
Guru


Joined: 21 Jul 2002
Posts: 428

PostPosted: Wed May 21, 2014 7:37 am    Post subject: Reply with quote

Thanks for your help.
I'll check as soon as I am at home.
_________________
People don't have to earn my respect. I offer my respect to them, but be careful to lose my respect...
Back to top
View user's profile Send private message
gienah
Developer
Developer


Joined: 24 Nov 2010
Posts: 212
Location: AU

PostPosted: Wed May 21, 2014 8:08 am    Post subject: Reply with quote

Some things you could try: you can check the sys-apps/portage package files:

Code:
equery check sys-apps/portage

Maybe ebuild might still work. For example, if the above command found errors, and you wanted to
try building portage again using ebuild:

Code:
ebuild /usr/portage/sys-apps/portage/portage-2.2.10.ebuild merge

Or another idea is you could try running strace and look for the file open that
fails with the Errno 5 (looking in the output file strace-emerge.out):

Code:
strace -f -o strace-emerge.out emerge --info
Back to top
View user's profile Send private message
drizzt
Guru
Guru


Joined: 21 Jul 2002
Posts: 428

PostPosted: Wed May 21, 2014 6:35 pm    Post subject: Reply with quote

Thank you all for your help.
I found the problem:

My server's system-hdd which shares it's portage tree over NFS died. Although access of most files still worked flawlessly, some files of the portage tree were inaccessible. The strace command did reveal these files and as I tried to `cat` those files I got I/O-Error in the shell, too.

As I tried to login to my server it died with a kernel panic.

At the moment I restore my last backup of the system disc to a new hdd and I think I'm good to go :D

Update
Restore complete, Server up and running again. I love gentoo. :D :D :D :D :D :D :D :D :D
_________________
People don't have to earn my respect. I offer my respect to them, but be careful to lose my respect...
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