View previous topic :: View next topic |
Author |
Message |
drizzt Guru
Joined: 21 Jul 2002 Posts: 428
|
Posted: Tue May 20, 2014 8:57 pm Post subject: emerge fails[solved, NFS shared portage tree was dead] |
|
|
I need urgent help. Emerge fails with any command i do except
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 |
|
|
kurisu Apprentice
Joined: 19 Jan 2011 Posts: 159 Location: Munich, Germany
|
Posted: Tue May 20, 2014 9:41 pm Post subject: |
|
|
A conservative, yet working approach might be using Python 2.7 as main interpreter:
Code: | eselect python set 1 && python-updater |
|
|
Back to top |
|
|
drizzt Guru
Joined: 21 Jul 2002 Posts: 428
|
Posted: Wed May 21, 2014 4:24 am Post subject: |
|
|
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 |
|
|
gotyaoi Tux's lil' helper
Joined: 01 Apr 2013 Posts: 137
|
Posted: Wed May 21, 2014 5:28 am Post subject: |
|
|
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 |
|
|
krinn Watchman
Joined: 02 May 2003 Posts: 7470
|
Posted: Wed May 21, 2014 7:01 am Post subject: |
|
|
Time to fsck your system |
|
Back to top |
|
|
drizzt Guru
Joined: 21 Jul 2002 Posts: 428
|
Posted: Wed May 21, 2014 7:37 am Post subject: |
|
|
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 |
|
|
gienah Developer
Joined: 24 Nov 2010 Posts: 212 Location: AU
|
Posted: Wed May 21, 2014 8:08 am Post subject: |
|
|
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 |
|
|
drizzt Guru
Joined: 21 Jul 2002 Posts: 428
|
Posted: Wed May 21, 2014 6:35 pm Post subject: |
|
|
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
Update
Restore complete, Server up and running again. I love gentoo. _________________ People don't have to earn my respect. I offer my respect to them, but be careful to lose my respect... |
|
Back to top |
|
|
|
|
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
|
|