Summary: | app-admin/sabayon-2.30.0 crashes when trying to "edit" any profile | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Christian Asseburg <christian> |
Component: | New packages | Assignee: | Gentoo Linux Gnome Desktop Team <gnome> |
Status: | RESOLVED INVALID | ||
Severity: | normal | ||
Priority: | High | ||
Version: | unspecified | ||
Hardware: | AMD64 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Christian Asseburg
2010-12-12 11:36:56 UTC
hum, this is a bit light for debug information. Could you start it from a terminal and attach the output of the full run when it crashes ? ca@puolukka ~ $ sudo sabayon Password: MainThread 2010/12/14 17:10:53.8365 (admin-tool): Creating profiles dialog MainThread 2010/12/14 17:10:54.1280 (admin-tool): Starting main loop MainThread 2010/12/14 17:10:56.6958 (USER): Starting to edit profile 'Default' MainThread 2010/12/14 17:10:57.5383 (sabayon-session): Starting session window for profile_name='Default', profile_path='/tmp/profile-sabayon-admin-GnLSZC.zip', display_number='1' MainThread 2010/12/14 17:10:57.7940 (proto-session): Running sabayon-apply: ['/usr/sbin/sabayon-apply', '-s', 'Default', '--admin-log-config=/etc/sabayon/sabayon-debug-log.conf', '--readable-log-config=/tmp/tmp1ZYuW4'] MainThread 2010/12/14 17:10:58.0996 (sabayon-apply): Applying profile 'Default' for user 'sabayon-admin' MainThread 2010/12/14 17:10:58.1459 (sabayon-apply): Fatal exception! Exiting abnormally. MainThread 2010/12/14 17:10:58.1542 (sabayon-apply): Traceback (most recent call last): File "/usr/sbin/sabayon-apply", line 165, in <module> profile.apply (is_sabayon_session) File "/usr/lib64/python2.6/site-packages/sabayon/userprofile.py", line 392, in apply s.apply (is_sabayon_session) File "/usr/lib64/python2.6/site-packages/sabayon/sources/gconfsource.py", line 306, in apply storage_contents = self.storage.list (self.name) File "/usr/lib64/python2.6/site-packages/sabayon/storage.py", line 585, in list self.foreach (listify, retval, source) File "/usr/lib64/python2.6/site-packages/sabayon/storage.py", line 617, in foreach self.__read_metadata () File "/usr/lib64/python2.6/site-packages/sabayon/storage.py", line 174, in __read_metadata (self.path, sys.exc_info()[1])) ProfileStorageException: Failed to read file '/etc/sabayon/profiles/Default.zip': [Errno 13] Permission denied: '/etc/sabayon/profiles/Default.zip' ===== BEGIN MILESTONES (/usr/sbin/sabayon-apply) ===== MainThread 2010/12/14 17:10:58.0996 (sabayon-apply): Applying profile 'Default' for user 'sabayon-admin' MainThread 2010/12/14 17:10:58.1459 (sabayon-apply): Fatal exception! Exiting abnormally. MainThread 2010/12/14 17:10:58.1542 (sabayon-apply): Traceback (most recent call last): File "/usr/sbin/sabayon-apply", line 165, in <module> profile.apply (is_sabayon_session) File "/usr/lib64/python2.6/site-packages/sabayon/userprofile.py", line 392, in apply s.apply (is_sabayon_session) File "/usr/lib64/python2.6/site-packages/sabayon/sources/gconfsource.py", line 306, in apply storage_contents = self.storage.list (self.name) File "/usr/lib64/python2.6/site-packages/sabayon/storage.py", line 585, in list self.foreach (listify, retval, source) File "/usr/lib64/python2.6/site-packages/sabayon/storage.py", line 617, in foreach self.__read_metadata () File "/usr/lib64/python2.6/site-packages/sabayon/storage.py", line 174, in __read_metadata (self.path, sys.exc_info()[1])) ProfileStorageException: Failed to read file '/etc/sabayon/profiles/Default.zip': [Errno 13] Permission denied: '/etc/sabayon/profiles/Default.zip' ===== END MILESTONES (/usr/sbin/sabayon-apply) ===== ===== BEGIN RING BUFFER (/usr/sbin/sabayon-apply) ===== MainThread 2010/12/14 17:10:58.0996 (sabayon-apply): Applying profile 'Default' for user 'sabayon-admin' MainThread 2010/12/14 17:10:58.1459 (sabayon-apply): Fatal exception! Exiting abnormally. MainThread 2010/12/14 17:10:58.1542 (sabayon-apply): Traceback (most recent call last): File "/usr/sbin/sabayon-apply", line 165, in <module> profile.apply (is_sabayon_session) File "/usr/lib64/python2.6/site-packages/sabayon/userprofile.py", line 392, in apply s.apply (is_sabayon_session) File "/usr/lib64/python2.6/site-packages/sabayon/sources/gconfsource.py", line 306, in apply storage_contents = self.storage.list (self.name) File "/usr/lib64/python2.6/site-packages/sabayon/storage.py", line 585, in list self.foreach (listify, retval, source) File "/usr/lib64/python2.6/site-packages/sabayon/storage.py", line 617, in foreach self.__read_metadata () File "/usr/lib64/python2.6/site-packages/sabayon/storage.py", line 174, in __read_metadata (self.path, sys.exc_info()[1])) ProfileStorageException: Failed to read file '/etc/sabayon/profiles/Default.zip': [Errno 13] Permission denied: '/etc/sabayon/profiles/Default.zip' ===== END RING BUFFER (/usr/sbin/sabayon-apply) ===== This configuration for the debug log can be re-created by putting the following in /etc/sabayon/sabayon-debug-log.conf (use ';' to separate domain names): [debug log] max lines = 1000 MainThread 2010/12/14 17:10:58.1881 (proto-session): Finished running sabayon-apply with FATAL exit status MainThread 2010/12/14 17:10:58.1883 (sabayon-session): Fatal exception! Exiting abnormally. MainThread 2010/12/14 17:10:58.1938 (sabayon-session): Traceback (most recent call last): File "/usr/libexec/sabayon-session", line 75, in <module> window = sessionwindow.SessionWindow (profile_name, profile_path, display_number) File "/usr/lib64/python2.6/site-packages/sabayon/sessionwindow.py", line 167, in __init__ self.__setup_session () File "/usr/lib64/python2.6/site-packages/sabayon/sessionwindow.py", line 337, in __setup_session self.session.apply_profile () File "/usr/lib64/python2.6/site-packages/sabayon/protosession.py", line 486, in apply_profile "user profile from '%s'.") % self.profile_file) FatalApplyErrorException: There was a fatal error while applying the user profile from 'Default'. ===== BEGIN MILESTONES (/usr/libexec/sabayon-session) ===== MainThread 2010/12/14 17:10:57.5383 (sabayon-session): Starting session window for profile_name='Default', profile_path='/tmp/profile-sabayon-admin-GnLSZC.zip', display_number='1' MainThread 2010/12/14 17:10:57.7940 (proto-session): Running sabayon-apply: ['/usr/sbin/sabayon-apply', '-s', 'Default', '--admin-log-config=/etc/sabayon/sabayon-debug-log.conf', '--readable-log-config=/tmp/tmp1ZYuW4'] MainThread 2010/12/14 17:10:58.1881 (proto-session): Finished running sabayon-apply with FATAL exit status MainThread 2010/12/14 17:10:58.1883 (sabayon-session): Fatal exception! Exiting abnormally. MainThread 2010/12/14 17:10:58.1938 (sabayon-session): Traceback (most recent call last): File "/usr/libexec/sabayon-session", line 75, in <module> window = sessionwindow.SessionWindow (profile_name, profile_path, display_number) File "/usr/lib64/python2.6/site-packages/sabayon/sessionwindow.py", line 167, in __init__ self.__setup_session () File "/usr/lib64/python2.6/site-packages/sabayon/sessionwindow.py", line 337, in __setup_session self.session.apply_profile () File "/usr/lib64/python2.6/site-packages/sabayon/protosession.py", line 486, in apply_profile "user profile from '%s'.") % self.profile_file) FatalApplyErrorException: There was a fatal error while applying the user profile from 'Default'. ===== END MILESTONES (/usr/libexec/sabayon-session) ===== ===== BEGIN RING BUFFER (/usr/libexec/sabayon-session) ===== MainThread 2010/12/14 17:10:57.5383 (sabayon-session): Starting session window for profile_name='Default', profile_path='/tmp/profile-sabayon-admin-GnLSZC.zip', display_number='1' MainThread 2010/12/14 17:10:57.7940 (proto-session): Running sabayon-apply: ['/usr/sbin/sabayon-apply', '-s', 'Default', '--admin-log-config=/etc/sabayon/sabayon-debug-log.conf', '--readable-log-config=/tmp/tmp1ZYuW4'] MainThread 2010/12/14 17:10:58.1881 (proto-session): Finished running sabayon-apply with FATAL exit status MainThread 2010/12/14 17:10:58.1883 (sabayon-session): Fatal exception! Exiting abnormally. MainThread 2010/12/14 17:10:58.1938 (sabayon-session): Traceback (most recent call last): File "/usr/libexec/sabayon-session", line 75, in <module> window = sessionwindow.SessionWindow (profile_name, profile_path, display_number) File "/usr/lib64/python2.6/site-packages/sabayon/sessionwindow.py", line 167, in __init__ self.__setup_session () File "/usr/lib64/python2.6/site-packages/sabayon/sessionwindow.py", line 337, in __setup_session self.session.apply_profile () File "/usr/lib64/python2.6/site-packages/sabayon/protosession.py", line 486, in apply_profile "user profile from '%s'.") % self.profile_file) FatalApplyErrorException: There was a fatal error while applying the user profile from 'Default'. ===== END RING BUFFER (/usr/libexec/sabayon-session) ===== This configuration for the debug log can be re-created by putting the following in /etc/sabayon/sabayon-debug-log.conf (use ';' to separate domain names): [debug log] max lines = 1000 MainThread 2010/12/14 17:10:58.2256 (admin-tool): Got fatal error: sabayon-session exited with a FATAL ERROR (exit code 1) MainThread 2010/12/14 17:10:58.4128 (USER): Finishing editing profile MainThread 2010/12/14 17:10:58.4133 (admin-tool): Terminating main loop MainThread 2010/12/14 17:10:58.4134 (admin-tool): Exiting abnormally; dumping log due to a fatal error (The contents of the log are in the first post.) Looks like even you running sabayon using sudo, it cannot write to /etc/sabayon/profiles/Default.zip (In reply to comment #3) > Looks like even you running sabayon using sudo, it cannot write to > /etc/sabayon/profiles/Default.zip > Could you check its permissions? This looks to me like a permissions problem related with sudo not being able to touch needed files (maybe you don't have sudo configured properly) Hi! Permissions are below. I am now running sabayon-2.30.1 and the same error occurs. ls -l /etc/sabayon/profiles total 1 -rw------- 1 root root 198 Dec 12 13:23 Default.zip Something is wrong then in your sudo setup as it's not allowing you to read that required file (maybe giving it read access to all user would also solve this: chmod a+r Default.zip ; but I don't know if it's supposed to be done...) I've never used sabayon on this machine yet and creating a new profile gives this: $ ls -l /etc/sabayon/profiles/ total 4 -rw-r--r-- 1 root root 198 26 févr. 16:44 Defaut.zip I've set on my system UMASK=0077 so that new files are created by default with no read permissions for group and other. Could the problem be related to that? Yes, it's wrong So does sabayon require that UMASK is set as 0022? It needs to be able to read /etc/sabayon/profiles/Default.zip ;-) OK then maybe there is a bug. It should then create the file as readable (i.e. make sure the permissions are set to "read" for group and other). After all, it created the file. So if it needs the file to be readable it should create it in that way too. Having system set to UMASK=0077 doesn't look to me like a "normal" situation :-| |