WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: sce-update doesn't stop if network is down  (Read 355 times)

Offline jls

  • Hero Member
  • *****
  • Posts: 1981
    • Core17
sce-update doesn't stop if network is down
« on: November 18, 2016, 12:50:25 AM »
Hi
during
sce-update -b
I've lost the connectivity during the reimport but the routine didn't stop
thanks
dCore user

Offline Jason W

  • Administrator
  • Hero Member
  • *****
  • Posts: 9204
Re: sce-update doesn't stop if network is down
« Reply #1 on: November 18, 2016, 05:31:17 PM »
If I sce-import with no connection, the debGetEnv fetching of the debinx files exits with failure, and if I use "sce-import -p" option not to update the debinx, then sce-import exits with a failure of extracting the archive like below as it has not been downloaded:

Code: [Select]
* Merging 6 packages:
wget: bad address 'us.archive.ubuntu.com'
Failed on download of pool/main/z/zlib/zlib1g_1.2.8.dfsg-2ubuntu4_i386.deb.
wget: bad address 'us.archive.ubuntu.com'
ar: can't open '/etc/sysconfig/tcedir/import/debs/zlib1g_1.2.8.dfsg-2ubuntu4_i386.deb': No such file or directory
ar: can't open '/etc/sysconfig/tcedir/import/debs/zlib1g_1.2.8.dfsg-2ubuntu4_i386.deb': No such file or directory
/usr/bin/debExtract: line 43: can't create /tmp/: Is a directory
 
WARNING: Failure to extract zlib1g_1.2.8.dfsg-2ubuntu4_i386.deb, exiting..


A screenshot or more info would be helpful if sce-import is keeping going with no network and a bad or missing downloads.
 

Online Rich

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 5270
Re: sce-update doesn't stop if network is down
« Reply #2 on: November 18, 2016, 06:28:13 PM »
Hi Jason W
Quote
If I sce-import with no connection, ...
I think the problem jls is describing is losing the Internet connection while the update is in progress.

Offline Jason W

  • Administrator
  • Hero Member
  • *****
  • Posts: 9204
Re: sce-update doesn't stop if network is down
« Reply #3 on: November 18, 2016, 07:00:09 PM »
Thanks Rich.  But if the error occurs during re-import, it is involving a loop of sce-import on the needed sces that are to be updated.  Startup scripts are locally downloaded as part of debGetEnv so if debGetEnv succeeds, those files are in place and should produce no error.  Sounds like the error in downloading updated prebuilt .tar.gz files or Debian/Ubuntu repo .deb files.  What I need to know is the point of needing to stop the sce-import process rather than going on despite a failed last function due to lack of network.   

Offline Jason W

  • Administrator
  • Hero Member
  • *****
  • Posts: 9204
Re: sce-update doesn't stop if network is down
« Reply #4 on: November 18, 2016, 09:24:33 PM »
Rich - It is during sce-update and also a bug in sce-import that the error code of sce-import is not being properly recoginzed by sce-update.  Uploading a new RC now, hopefully fixed.  Thanks Rich and JLS for your information and insights.