Author Topic: liveupgrade failed :(  (Read 4180 times)

Offline argus

  • Acquaintance
  • *
  • Posts: 24
    • View Profile
liveupgrade failed :(
« on: March 09, 2007, 10:41:40 pm »
hrm. its not an issue, had things backed up and what not. im just wondering what happened....

i followed normal liveupgrade procedures...ive done quite a few...and this is what i got..when i shutdown the mud..it wouldnt reboot

*Cannot index type 'int' using [ .. ] operator.
Object: /secure/sefun/sefun at /secure/sefun/strings.c:286

'<function>' at /secure/save/creators/a/argus (<function>) at /:0
'cmdAll' at /secure/save/creators/a/argus (/lib/command.c) at line 129
'cmd' at /secure/cmds/admins/liveupgrade at line 51
'last' at /secure/sefun/sefun at /secure/sefun/strings.c:286
Trace written to /log/runtime

Offline cratylus

  • Your favorite and best
  • Administrator
  • ***
  • Posts: 1024
  • Cratylus@Dead Souls <ds> np
    • View Profile
    • About Cratylus
Re: liveupgrade failed :(
« Reply #1 on: March 09, 2007, 10:48:32 pm »
Thanks! I've put it at the top of my list.

For folks running into liveupgrade trouble, you can always use the
regular patch file to recover from a hosed upgrade. See http://dead-souls.net/articles/patches.html

-Crat

Offline albiorix

  • Acquaintance
  • *
  • Posts: 3
    • View Profile
Re: liveupgrade failed :(
« Reply #2 on: March 10, 2007, 12:19:21 am »
OK...my mud is now totally borked.  I tried the liveupgrade and it failed with the same message as above, so I used the patch method and now the mud doesn't come up properly

The startup error is -

]Preloading: /lib/player...]
Got error *Error in loading object '/lib/interactive'
 when loading /lib/player.
]Preloading: /secure/daemon/players...](0.0)

and when I try to connect I get -

What name do you wish?
albiorix

It seems some work is being done right now, try later.
Connection closed by foreign host.

also, whenever I try to login, the mud emits a "/log/login" message

Any ideas?

Offline cratylus

  • Your favorite and best
  • Administrator
  • ***
  • Posts: 1024
  • Cratylus@Dead Souls <ds> np
    • View Profile
    • About Cratylus
Re: liveupgrade failed :(
« Reply #3 on: March 10, 2007, 07:11:08 am »
Odd.

I've disabled liveupgrading til I understand this problem.

Please email me the following files:

/log/runtime
/log/catch
/log/errors/lib
/lib/player.c

I don't know why applying the patch manually would not work. That doesn't make sense.

In the meantime, I'd suggest restoring the mud from backup.

-Crat

Offline albiorix

  • Acquaintance
  • *
  • Posts: 3
    • View Profile
Re: liveupgrade failed :(
« Reply #4 on: March 10, 2007, 07:50:51 am »
Files on their way.

Thanks

Offline daelaskai

  • BFF
  • ***
  • Posts: 174
    • View Profile
Re: liveupgrade failed :(
« Reply #5 on: March 10, 2007, 07:54:42 am »
I had actually gotten this error as well when upgrading and I didn't even apply the liveupgrade.  I simiply made a diff of the files that downloaded.  Just thought you guys would like to know.

Daelas

Offline cratylus

  • Your favorite and best
  • Administrator
  • ***
  • Posts: 1024
  • Cratylus@Dead Souls <ds> np
    • View Profile
    • About Cratylus
Re: liveupgrade failed :(
« Reply #6 on: March 11, 2007, 12:02:16 pm »
Http transfers often happen in chunks, and between chunks,
carriage return characters (\r) tend to get slipped in.

I tried to resolve this in various ways. However, the
way I finally settled on was suboptimal. Though it seems
to have indeed removed most \r's, it added newlines where
they didn't belong, and in some cases may even have allowed
filenames to exist with a \r invisibly embedded in the filename!

It's a bummer that I didn't catch this before releasing
the http liveupgrade system. I didn't catch it because
apparently the "chunking" I describe happens less when you're
local to the server. I say this because while I didn't get
this misbehavior testing locally, I did get it when I
recently tested on a remote machine with a crappy network connection.

So, mea culpa...sorry, guys. The next release will be
patch-only, not liveupgrade, because I want to start from
a clean slate where lu is concerned.

Things are just never as simple as they seem, are they?

Anyway, thank you for your patience, and please accept
my apologies for the hosed upgrade.

-Crat

PS Albiorix, the logs you sent me point to a problem in interactive.c
I'll need to see that file to know what the problem you're running into is.
(I should have asked for intercative.c not player.c!)
« Last Edit: March 11, 2007, 12:03:56 pm by cratylus »

Offline albiorix

  • Acquaintance
  • *
  • Posts: 3
    • View Profile
Re: liveupgrade failed :(
« Reply #7 on: March 12, 2007, 03:09:31 am »
File is on its way.