WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Backup Errors on Exit after Chromium install  (Read 4670 times)

Offline tclfan

  • Sr. Member
  • ****
  • Posts: 286
Backup Errors on Exit after Chromium install
« on: January 10, 2010, 04:10:21 PM »
I am not sure if this belongs here or in TCE section:
On TCL 2.7 booted from usb: After installation of Chromium browser TC no longer shuts down or reboots with 'Backup'. When 'Backup' option is checked, it results in error message indicating errors and invalid backup device. USB stick is freshly configured with 'usbinstall' of TCL, to eliminate some corruption. If another browser is installed, but Chromium not installed then all seems fine - TCL 'backup' option on reboot or shutdown appears to work fine.
Now, although this problem appears to be related to Chromium, should this not be considered a TCL issue, not being able to back up on exit?
Anyone else experienced this? Is there any solution?

Offline Arslan S.

  • Hero Member
  • *****
  • Posts: 825
Re: Backup Errors on Exit after Chromium install
« Reply #1 on: January 10, 2010, 04:24:43 PM »
what is the output of "filetool.sh backup" ?

Offline Arslan S.

  • Hero Member
  • *****
  • Posts: 825
Re: Backup Errors on Exit after Chromium install
« Reply #2 on: January 10, 2010, 04:28:22 PM »
the problem might be ~/.config/chromium/SingletonLock and SingletonSocket
if so add them to your .xfiletool.lst

Offline tclfan

  • Sr. Member
  • ****
  • Posts: 286
Re: Backup Errors on Exit after Chromium install
« Reply #3 on: January 10, 2010, 04:35:00 PM »
Arslan, thank you for quick response. I will try this.

Offline jur

  • Hero Member
  • *****
  • Posts: 863
    • cycling photo essays
Re: Backup Errors on Exit after Chromium install
« Reply #4 on: January 10, 2010, 05:17:16 PM »
the problem might be ~/.config/chromium/SingletonLock and SingletonSocket
if so add them to your .xfiletool.lst
I have trouble with SingletonSocket - and nothing worked. Does not work to have them listed in xfiletool.lst. My workaround is to manually delete these items with a script when I close Chromium just before shutdown. It means I can't perform a backup while chromium is still open.

Offline roberts

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 7361
  • Founder Emeritus
Re: Backup Errors on Exit after Chromium install
« Reply #5 on: January 10, 2010, 06:03:12 PM »
Browsers are now putting sockets in user's home directories, ugh.

Another work around is to sed out the ignores in /tmp/backup_status in /usr/bin/filetool.sh at line 104
Code: [Select]
   [ -s /tmp/backup_status ] && sed -i '/socket ignored/d' /tmp/backup_status 2>/dev/null                                             
   [ -s /tmp/backup_status ] && exit 1   
10+ Years Contributing to Linux Open Source Projects.

Offline tclfan

  • Sr. Member
  • ****
  • Posts: 286
Re: Backup Errors on Exit after Chromium install
« Reply #6 on: January 11, 2010, 09:03:41 AM »
Sorry I have not had the time to test these workarounds yet...  After spending half a day yesterday cutting out various combinations of usb sticks trying to narrow down the problem, which appears to be specific to Chromium out of all browser extensions in repository. At first the error message indicates write error and invalid media, so trying different sticks, etc...
However, since it appears this issue may surfice with some other extensions: Is there any across the board solution possible so TC base operation of backup function would not be affected by specifics of extension? In principle, this is a system/data backup function, therefore extensions should not be able to impact this operation? If some data or configuration file is or is not backed up to the extension's liking, then it is up to the extension to work or malfinction in consequence. The base system operation, such as backup, should not be prevented from working.
In a word, the user programs should not be able to prevent base system from correct operation... Is this correct thinking in modular architecture?

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: Backup Errors on Exit after Chromium install
« Reply #7 on: January 11, 2010, 09:40:24 AM »
Tar ignores sockets, and creates a warning message in the process.  And Robert's workaround does work by removing ignored socket warning messages from the output file.  Since tar gives a 0 exit status even in the case of errors, testing for exit status does not work for tar so an output file is more appropriate.

There are other extensions like xine-xvesa that use sockets in the home directory, but those sockets are deleted once the app is closed.  Leaving a socket behind sounds like bad program behavior, though for chromium there may be a reason for it.  

This socket warning message is probably one of the few warnings/errors that can be safely ignored, so it could be easily filtered out in general, or added individually to .xfiletool.lst.


Offline tclfan

  • Sr. Member
  • ****
  • Posts: 286
Re: Backup Errors on Exit after Chromium install
« Reply #8 on: January 11, 2010, 11:34:53 AM »
Jason - thanks for explaining this phenomenon. My 'trying to be organized' testing yesteday confirms the above explanation as it appears backup actually executes. although the error message on backup error indicating invalid media could be confusing to those who do not know the actual cause...
Since the backup function is default exit mode and native part of TCL modus operandi, is there any way to make TCL more immune to such irregular behavior of extensions, perhaps other than testing the execution status code? This would enhance confidence in solid TC base operation in the face of future extensions doing some wild stuff like this...

Offline ^thehatsrule^

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 1726
Re: Backup Errors on Exit after Chromium install
« Reply #9 on: January 12, 2010, 07:52:48 PM »
If you didn't see it, the above test uses -s (which is for stderr iirc)

Offline tclfan

  • Sr. Member
  • ****
  • Posts: 286
Re: Backup Errors on Exit after Chromium install
« Reply #10 on: January 13, 2010, 05:04:54 PM »
Yes, indeed. Thank you.