Previous Thread
Next Thread
Print Thread
SOSLIB Update error #28982 29 Jun 07 11:05 AM
A
Anonymous
Unregistered
Anonymous
Unregistered
A
I tried updating the SOSLIB from ASHW32 today and found that the new SBXINP didn't come over. Looking more closely, I saw that the updated CHM documentation files at the top didn't come over either. I didn't check the rest of the update but I did try updating SOSLIB on my server, a Linux VM. Logging in as root I ran SOSUPD. It was proceeding normally and then this happened:
Code
 Updated: cmdlin.bsi[907,016]
Updated: scrsts.bp[907,020]
Error downloading gentsx.bas
Continue? [y/N] RUN SOSDIR
Continue? [y/N]
 
Aborting and rerunning (and continuing whenever an error occurs) produces:
Code
 SOSLIB Update 2.1(109)
Checking for SOSLIB updates...
Updated: scrsts.bp[907,020]
Error downloading gentsx.bas
Continue? [y/N] RUN SOSDIR
Continue? [y/N] y
Updated: inix.bas[907,026]
Updated: inix.sbx[907,026] 4.2(502)
Updated: inix.ver[907,026]
Updated: start.cmd[907,026]
Error downloading tstinx.bas
Continue? [y/N] y
Updated: model1.bas[907,037]
Updated: sbxinp.bas[907,037]
Updated: sbxinp.sbx[907,037] 2.0(1)

?File not found in line at location counter 3E05 of SOSUPD.RUN
. 
Rerunning again restarts from gentsx. The update always ends with an error but sometimes at different points.

scrsts.bp[907,020] always gets reloaded even though there was no error with it. It also appears to have not been updated as it's dated May 21, 2007. cmdlin.bsi[907,016] did get updated, though, and presumably the files above it did as well.

Re: SOSLIB Update error #28983 29 Jun 07 11:35 AM
Joined: Jun 2001
Posts: 11,794
J
Jack McGregor Offline
Member
Offline
Member
J
Joined: Jun 2001
Posts: 11,794
Oops, sloppy work on my part. I need to come up with a good FTP synchronize procedure. (Since the SOSLIB has hundreds of files, rather than just FTP'ing them all to the webserver each time there is an update, I try to outsmart it and send just the files I know changed. But if I forget some, then we get a mismatch between the control file, which lists the details of all the other files that are supposed to be there, and what is actually there.)

I think it's resolved now, but if you have know of a good FTP sync utility, let me know. (Note that these are all mostly small files, so the sync utility will not be much better than just uploading them all unless it is smart enough to determine which files need to be transferred, once for an entire directory, rather than by looking at each file individually.)

BTW, ashdevnotes.chm has been removed from the SOSLIB, since it doesn't really relate to SOSLIB updates.

Re: SOSLIB Update error #28984 29 Jun 07 11:41 AM
Joined: Jun 2001
Posts: 11,794
J
Jack McGregor Offline
Member
Offline
Member
J
Joined: Jun 2001
Posts: 11,794
Actually, never mind on the FTP sync. It wouldn't help here anyway, because the Update Creator regenerates all the zips for all the files in the package in my local staging area, so they would always appear different to a sync utility. What I need is to twist Jorge's arm to get the Update Creator to avoid replacing the previous zip for files that haven't changed since the last update generation. Then the sync utility would be able to work.

Overall, it's not that big of a deal, but when updating a lot of packages at the same time, all those FTP transfers start to add up.

Maybe with the new command-line option I can come up with a single command script to regenerate an update and FTP it to the Update Center, which might reduce the human error factor.

(And while the files are being FTP'd, I can address the "Ate Lunch" error problem)

Re: SOSLIB Update error #28985 29 Jun 07 12:54 PM
A
Anonymous
Unregistered
Anonymous
Unregistered
A
OK I was able to update SOSLIB in ASHW32. I then tried to finish the server update and it still errored out. No matter, it was probably in such a state so I copied SOSLIB: to the server via Samba. I then shut down the server and started up a copy of a backup of the server. SOSUPD ran great until
Code
 Updated: inix.bas[907,026]
Updated: inix.sbx[907,026] 5.0(501)
Updated: inix.ver[907,026]
Updated: start.cmd[907,026]
New: tstinx.bas[907,026]
Updated: model1.bas[907,037]
Updated: sbxinp.bas[907,037]
Updated: sbxinp.sbx[907,037] 2.0(1)

?File not found in line at location counter 3E05 of SOSUPD.RUN
?Cannot find program SOSDIR.RUN
. 
I ran it again and it immediately received the file not found error. I then shut down the copy of the backup server and restarted the server.

Re: SOSLIB Update error #28986 29 Jun 07 01:07 PM
Joined: Jun 2001
Posts: 3,406
J
Jorge Tavares - UmZero Online Content
Member
Online Content
Member
J
Joined: Jun 2001
Posts: 3,406
Ok, message received... :rolleyes:

I also moved to the top of the UpdateCreator wish list, the FTP transfer option, to what will be needed some additional logic to consider only the transfer for "changed" files.


Jorge Tavares

UmZero - SoftwareHouse
Brasil/Portugal
Re: SOSLIB Update error #28987 29 Jun 07 02:06 PM
Joined: Jun 2001
Posts: 11,794
J
Jack McGregor Offline
Member
Offline
Member
J
Joined: Jun 2001
Posts: 11,794
I'm not quite sure what to make of this - it ran OK for me on my Linux system. But I was unable to regenerate the 2.1(109) version of SOSUPD.RUN, so I posted a new version, 2.1(110). Try running it now (two times - once to get the updated SOSLIB.RUN, and then once to run that. If you get an error, now I should be able to use the new /L compile feature to track down the location.) Also, it might be useful to see what is in the OPR:SOSUPD.TRC file.

Re: SOSLIB Update error #28988 30 Jun 07 11:50 AM
A
Anonymous
Unregistered
Anonymous
Unregistered
A
OK I ran it twice today (June 30., 2007) and the first run updated sosupd (and soslib.apr), then the second run updated nothing and had no error.

Here's something a bit distressing: both the log and trace had a single entry for the 29th, even though I ran SOSUPD twice. The entry is the same in both files:
Code
 29-Jun-07 14:44:47 Checking for SOSLIB updates...
------------------------------ 
Now I'm going to fire up yesterday's copy of the backup and see what happens. Back in 5 ...

The first run of SOSUPD produced an error:
Code
SOSLIB Update 2.1(109)
Checking for SOSLIB updates...
Updated: soslib.apr[901,002]
Updated: sosupd.bas[901,002]
Updated: sosupd.run[901,002] 2.1(110)
Error downloading darthistory.htm
Continue? [y/N] y
Operation complete;  3 files updated.

See OPR:SOSUPD.TRC and OPR:SOSUPD.LOG for trace/log details
.
The second and successive runs also error out in the same place:
Code
SOSLIB Update 2.1(110)
Checking for SOSLIB updates...

?File not found in line at location counter 3DEB of SOSUPD.RUN
.log
Current login is DSK0:[907,40]
.dir/w
DSK0:[907,40]
DART       BAS 17     DART       INI 1      DART       LST 0
DART       SBX 5      DART       VER 2      DARTX      BAS 6
DELMEM     SBX 18     EXISTL     BAS 5      EXISTL     SBX 2
EXISTL     VER 1      FULPTH     BAS 4      FULPTH     SBX 2
GETREG     BAS 4      GETREG     SBX 2      GETREG     VER 1
HISSAL     CSE 39     HISSAL     CSV 39     HISSAL     DEF 3
HISSAL     USA 39     START      CMD 3      WINATE     SBX 3
DARTHISTOR HTM 155    SOSUPD     ZIP 18     DARTHISTOR 001 155
DARTHISTOR 002 155
Total of 25 files in 679 blocks

.
Trace and log files are interesting. There's nothing in the trace since June 3rd. The log only has entries since June 9th, with 2 entries for June 29th. Here are the trailing end of the first update and the entire second update:
Code
29-Jun-07 14:36:48 Archived: scrsts.bp  to scrsts.001
29-Jun-07 14:36:48 Updated: scrsts.bp[907,020]
29-Jun-07 14:36:50 New: gentsx.bas[907,026]
29-Jun-07 14:36:50 Archived: inix.bas  to inix.001
29-Jun-07 14:36:50 Updated: inix.bas[907,026]
29-Jun-07 14:36:50 Archived: inix.sbx 4.2(502) to inix.001
29-Jun-07 14:36:50 Updated: inix.sbx[907,026] 5.0(501)
29-Jun-07 14:36:52 Archived: inix.ver  to inix.001
29-Jun-07 14:36:52 Updated: inix.ver[907,026]
29-Jun-07 14:36:53 Archived: start.cmd  to start.001
29-Jun-07 14:36:53 Updated: start.cmd[907,026]
29-Jun-07 14:36:54 New: tstinx.bas[907,026]
29-Jun-07 14:36:55 Archived: model1.bas  to model1.001
29-Jun-07 14:36:55 Updated: model1.bas[907,037]
29-Jun-07 14:36:55 Archived: sbxinp.bas  to sbxinp.001
29-Jun-07 14:36:55 Updated: sbxinp.bas[907,037]
29-Jun-07 14:36:55 Archived: sbxinp.sbx 1.1(53) to sbxinp.001
29-Jun-07 14:36:55 Updated: sbxinp.sbx[907,037] 2.0(1)
------------------------------
29-Jun-07 14:51:20 Checking for SOSLIB updates...
29-Jun-07 14:51:21 Starting update...
------------------------------
Now to try the update in Windows. Back in 5 ...

Re: SOSLIB Update error #28989 30 Jun 07 12:12 PM
A
Anonymous
Unregistered
Anonymous
Unregistered
A
I had to add a new message because editing the previous post is dropping everything after the word "distressing..." (the first post and edit were created while running Firefox in the virtual machines.)

The Windows update updated the SOSUPD and SOSLIB.APR files on the first run and nothing on the second run as expected. There are no log or trace files from the Windows runs.

I copied the Windows SOSLIB to the copy of the backup. I reran SOSUPD and it aborted again with a file not found. The log stops after "Starting Update" and the trace shows:
Code
30-Jun-07 13:54:18 Checking for SOSLIB updates...
30-Jun-07 13:54:18 Adding darthistory.htm: cur: , -1 bytes; new: 2007-05-03 9:7:20, 81965 bytes
30-Jun-07 13:54:19 Backing up darthistory.htm to darthistory.001
------------------------------
30-Jun-07 14:15:00 Checking for SOSLIB updates...
30-Jun-07 14:15:01 Adding darthistory.htm: cur: , -1 bytes; new: 2007-05-03 9:7:20, 81965 bytes
30-Jun-07 14:15:01 Backing up darthistory.htm to darthistory.001
------------------------------
30-Jun-07 14:16:50 Checking for SOSLIB updates...
30-Jun-07 14:16:51 Adding darthistory.htm: cur: , -1 bytes; new: 2007-05-03 9:7:20, 81965 bytes
30-Jun-07 14:16:51 Backing up darthistory.htm to darthistory.001
.
OK I made sure owner and group are correct (root users) and checked the permissions. The darthistory backup files darthistor.001 and darthistor.002 files weren't marked user executable but everhything else was. I made them executable and SOSUPD still errors at that point. The execute bit is gone from darthistor.001.

Everything else is working OK. Maybe I'll just erase the copy of the backup since I'm not going to do anything else with it. However there is something that's causing updates to fail and I haven't been able to fix it.

Re: SOSLIB Update error #28990 01 Jul 07 12:15 PM
Joined: Jun 2001
Posts: 11,794
J
Jack McGregor Offline
Member
Offline
Member
J
Joined: Jun 2001
Posts: 11,794
A couple of comments:

1) I suspect that the issue with the darthistory.htm file is that it looks like it could be treated as an AMOS-style filespec, but it too long (10.3 is the limit), and that is probably related to the subsequent error. I'll investigate that later...

2) The sosupd.trc and sosupd.log files are only created in the non-Windows case. In that case, we're not really using the Update Center, except to tap into it's repository where the updated files are kept. I had to implement the Update Center logic manually within SOSUPD.RUN (and ASHUPD.LIT), so while at it I created the LOG and TRC files. When under Windows, SOSUPD and ASHUPD launch UpdateCenter.exe to do the actual updating work, and it uses a different log file - UpdateCenter.log.

Thanks for the detailed feedback - I'll do some testing here to see if I can resolve anything.


Moderated by  Jack McGregor, Ty Griffin 

Powered by UBB.threads™ PHP Forum Software 7.7.3