Saving a headless image in linux problem

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

Saving a headless image in linux problem

Sebastian Sastre-2
Hi there,
 
    I'm using a headless squeak image for production and it happens to me that if I save it, is for sure that it will not be stable anymore.
 
# squeak -version
3.9-8 #5 Tue Oct 10 11:56:09 PDT 2006 gcc 4.0.3
Squeak3.9alpha of 4 July 2005 [latest update: #7021]
Linux ubuntu 2.6.15-27-386 #1 PREEMPT Sat Sep 16 01:51:59 UTC 2006 i686 GNU/Linux
default plugin location: /usr/local/lib/squeak/3.9-8/*.so
 
    I've saved one image and then tried to telnet it (using REPLServer) and this is the result:
 
# telnet localhost 9023
Trying 127.0.0.1...
 
Recursive not understood error encountered
 
-1229989588 SocketStream>flush
-1229989788 ConnectingStream>flush
-1229989880 ConnectingStream>flush
-1230013288 REPLServer>getPasswordFrom:
-1230013944 REPLServer>serve:
-1230020920 [] in TcpService>value:
-1230014152 BlockContext>on:do:
-1230014264 BlockContext>valueWithBindingsContext:
-1230014356 BlockContext>valueWithBindings:
-1230015680 BindingsAccessor>clamp:
-1230019688 [] in BlockContext>newProcessWithClampedBindings:
-1230015864 BlockContext>on:do:
-1230015988 BlockContext>valueWithBindingsContext:
-1230016080 BlockContext>valueWithBindings:
-1230019504 [] in BlockContext>newProcessWithBindings:
-1230019320 [] in BlockContext>newProcess
Connected to localhost.
Escape character is '^]'.
Connection closed by foreign host.
 
    By now I'll not count with squeak being trustable for headless images beign saved but I think this is a desirable feature.
 
    regards, 
 

Sebastian Sastre

 



Reply | Threaded
Open this post in threaded view
|

Re: Saving a headless image in linux problem

Aaron Reichow
Sebastian-

Does it actually save the image when you do this, or does this error happen when you're attempting it? Looks to me that you get this when connecting to the REPLServer after saving- is that correct? I agree that it is desirable to get this fixed, though I don't think I have an answer.

Have you tried this on any other config, perhaps on a headed server on Linux or another OS?  That is, still try to do an image-save through the REPLServer,

Thanks!

Regards,
Aaron

On Mar 15, 2007, at 9:59 AM, Sebastian Sastre wrote:

Hi there,
 
    I'm using a headless squeak image for production and it happens to me that if I save it, is for sure that it will not be stable anymore.
 
# squeak -version
3.9-8 #5 Tue Oct 10 11:56:09 PDT 2006 gcc 4.0.3
Squeak3.9alpha of 4 July 2005 [latest update: #7021]
Linux ubuntu 2.6.15-27-386 #1 PREEMPT Sat Sep 16 01:51:59 UTC 2006 i686 GNU/Linux
default plugin location: /usr/local/lib/squeak/3.9-8/*.so
 
    I've saved one image and then tried to telnet it (using REPLServer) and this is the result:
 
# telnet localhost 9023
Trying 127.0.0.1...
 
Recursive not understood error encountered
 
-1229989588 SocketStream>flush
-1229989788 ConnectingStream>flush
-1229989880 ConnectingStream>flush
-1230013288 REPLServer>getPasswordFrom:
-1230013944 REPLServer>serve:
-1230020920 [] in TcpService>value:
-1230014152 BlockContext>on:do:
-1230014264 BlockContext>valueWithBindingsContext:
-1230014356 BlockContext>valueWithBindings:
-1230015680 BindingsAccessor>clamp:
-1230019688 [] in BlockContext>newProcessWithClampedBindings:
-1230015864 BlockContext>on:do:
-1230015988 BlockContext>valueWithBindingsContext:
-1230016080 BlockContext>valueWithBindings:
-1230019504 [] in BlockContext>newProcessWithBindings:
-1230019320 [] in BlockContext>newProcess
Connected to localhost.
Escape character is '^]'.
Connection closed by foreign host.
 
    By now I'll not count with squeak being trustable for headless images beign saved but I think this is a desirable feature.
 
    regards, 
 
Sebastian Sastre
 




Reply | Threaded
Open this post in threaded view
|

Re: Saving a headless image in linux problem

Brad Fuller-3
In reply to this post by Sebastian Sastre-2
Sebastian Sastre wrote:

> Hi there,
>  
>     I'm using a headless squeak image for production and it happens to
> me that if I save it, is for sure that it will not be stable anymore.
>  
> # squeak -version
> 3.9-8 #5 Tue Oct 10 11:56:09 PDT 2006 gcc 4.0.3
> Squeak3.9alpha of 4 July 2005 [latest update: #7021]
> Linux ubuntu 2.6.15-27-386 #1 PREEMPT Sat Sep 16 01:51:59 UTC 2006
> i686 GNU/Linux
> default plugin location: /usr/local/lib/squeak/3.9-8/*.so
You might first use the 3.9 final version image.

Many use vnc to tap into the image (you must install RFB into your
image) and I've never had a problem remotely saving the image running as
headless. Have you tried vnc/rfb?

Reply | Threaded
Open this post in threaded view
|

RE: Saving a headless image in linux problem

Sebastian Sastre-2

> -----Mensaje original-----
> De: [hidden email]
> [mailto:[hidden email]] En
> nombre de Brad Fuller
> Enviado el: Martes, 20 de Marzo de 2007 17:36
> Para: The general-purpose Squeak developers list
> Asunto: Re: Saving a headless image in linux problem
>
> Sebastian Sastre wrote:
> > Hi there,
> >  
> >     I'm using a headless squeak image for production and it
> happens to
> > me that if I save it, is for sure that it will not be
> stable anymore.
> >  
> > # squeak -version
> > 3.9-8 #5 Tue Oct 10 11:56:09 PDT 2006 gcc 4.0.3 Squeak3.9alpha of 4
> > July 2005 [latest update: #7021] Linux ubuntu 2.6.15-27-386
> #1 PREEMPT
> > Sat Sep 16 01:51:59 UTC 2006
> > i686 GNU/Linux
> > default plugin location: /usr/local/lib/squeak/3.9-8/*.so
> You might first use the 3.9 final version image.

The image for that service is based on a Squeak3.9-final-7067.image I think
that the one right?

>
> Many use vnc to tap into the image (you must install RFB into your
> image) and I've never had a problem remotely saving the image
> running as headless. Have you tried vnc/rfb?
>

I didn't tried those. Perhaps I will but right now I was trying to not make
it manually. I have a script to start and stop the service. For stop I can
send a SIGTERM or a SIGQUIT. With OSProcess I have in the image aProductor
object that catches the OS signals and quit the image with or without saving
depending on the signal sent.

Right now I'm not counting with an image save of this kind. I use
ImageSegments for that. Right now I'm thinking about it as a guarantee of
the stability of the service/image.

It could be an interesting feature anyway.

Cheers,

Sebastian


Reply | Threaded
Open this post in threaded view
|

Re: Saving a headless image in linux problem

David T. Lewis
On Tue, Mar 20, 2007 at 06:48:12PM -0300, Sebastian Sastre wrote:
> I didn't tried those. Perhaps I will but right now I was trying to not make
> it manually. I have a script to start and stop the service. For stop I can
> send a SIGTERM or a SIGQUIT. With OSProcess I have in the image aProductor
> object that catches the OS signals and quit the image with or without saving
> depending on the signal sent.

Sebastian,

You probably know this already but I will mention just in case, you
can use "UnixProcess saveImageInBackgroundNicely" to do the actual
image save. This does the image save in a background unix process so
Squeak does not have to stop while writing the files.

Dave


Reply | Threaded
Open this post in threaded view
|

Re: Saving a headless image in linux problem

Michael van der Gulik-2
In reply to this post by Aaron Reichow
Was this my version of REPLServer (REPL-mvdg.13.mcz)? I'll test it when I get home tonight.

Michael.

On 3/21/07, Aaron Reichow <[hidden email]> wrote:
Sebastian-

Does it actually save the image when you do this, or does this error happen when you're attempting it? LookWhats to me that you get this when connecting to the REPLServer after saving- is that correct? I agree that it is desirable to get this fixed, though I don't think I have an answer.

Have you tried this on any other config, perhaps on a headed server on Linux or another OS?  That is, still try to do an image-save through the REPLServer,

Thanks!

Regards,
Aaron

On Mar 15, 2007, at 9:59 AM, Sebastian Sastre wrote:

Hi there,
 
    I'm using a headless squeak image for production and it happens to me that if I save it, is for sure that it will not be stable anymore.
 
# squeak -version
3.9-8 #5 Tue Oct 10 11:56:09 PDT 2006 gcc 4.0.3
Squeak3.9alpha of 4 July 2005 [latest update: #7021]
Linux ubuntu 2.6.15-27-386 #1 PREEMPT Sat Sep 16 01:51:59 UTC 2006 i686 GNU/Linux
default plugin location: /usr/local/lib/squeak/3.9-8/*.so
 
    I've saved one image and then tried to telnet it (using REPLServer) and this is the result:
 
# telnet localhost 9023
Trying 127.0.0.1...
 
Recursive not understood error encountered
 
-1229989588 SocketStream>flush
-1229989788 ConnectingStream>flush
-1229989880 ConnectingStream>flush
-1230013288 REPLServer>getPasswordFrom:
-1230013944 REPLServer>serve:
-1230020920 [] in TcpService>value:
-1230014152 BlockContext>on:do:
-1230014264 BlockContext>valueWithBindingsContext:
-1230014356 BlockContext>valueWithBindings:
-1230015680 BindingsAccessor>clamp:
-1230019688 [] in BlockContext>newProcessWithClampedBindings:
-1230015864 BlockContext>on:do:
-1230015988 BlockContext>valueWithBindingsContext:
-1230016080 BlockContext>valueWithBindings:
-1230019504 [] in BlockContext>newProcessWithBindings:
-1230019320 [] in BlockContext>newProcess
Connected to localhost.
Escape character is '^]'.
Connection closed by foreign host.
 
    By now I'll not count with squeak being trustable for headless images beign saved but I think this is a desirable feature.
 
    regards, 
 
Sebastian Sastre
 








Reply | Threaded
Open this post in threaded view
|

Re: Saving a headless image in linux problem

Michael van der Gulik-2
Okay - you aren't using my version; I can tell from the stack trace. I've reproduced the problem and I'll work on getting a fix to you when I have time.

I also really better get sorted and get an updated REPLServer in the 3.9 universe!

Regards,
Michael.

On 3/21/07, Michael van der Gulik <[hidden email]> wrote:
Was this my version of REPLServer (REPL-mvdg.13.mcz)? I'll test it when I get home tonight.

Michael.

On 3/21/07, Aaron Reichow <[hidden email]> wrote:
Sebastian-

Does it actually save the image when you do this, or does this error happen when you're attempting it? LookWhats to me that you get this when connecting to the REPLServer after saving- is that correct? I agree that it is desirable to get this fixed, though I don't think I have an answer.

Have you tried this on any other config, perhaps on a headed server on Linux or another OS?  That is, still try to do an image-save through the REPLServer,

Thanks!

Regards,
Aaron

On Mar 15, 2007, at 9:59 AM, Sebastian Sastre wrote:

Hi there,
 
    I'm using a headless squeak image for production and it happens to me that if I save it, is for sure that it will not be stable anymore.
 
# squeak -version
3.9-8 #5 Tue Oct 10 11:56:09 PDT 2006 gcc 4.0.3
Squeak3.9alpha of 4 July 2005 [latest update: #7021]
Linux ubuntu 2.6.15-27-386 #1 PREEMPT Sat Sep 16 01:51:59 UTC 2006 i686 GNU/Linux
default plugin location: /usr/local/lib/squeak/3.9-8/*.so
 
    I've saved one image and then tried to telnet it (using REPLServer) and this is the result:
 
# telnet localhost 9023
Trying 127.0.0.1...
 
Recursive not understood error encountered
 
-1229989588 SocketStream>flush
-1229989788 ConnectingStream>flush
-1229989880 ConnectingStream>flush
-1230013288 REPLServer>getPasswordFrom:
-1230013944 REPLServer>serve:
-1230020920 [] in TcpService>value:
-1230014152 BlockContext>on:do:
-1230014264 BlockContext>valueWithBindingsContext:
-1230014356 BlockContext>valueWithBindings:
-1230015680 BindingsAccessor>clamp:
-1230019688 [] in BlockContext>newProcessWithClampedBindings:
-1230015864 BlockContext>on:do:
-1230015988 BlockContext>valueWithBindingsContext:
-1230016080 BlockContext>valueWithBindings:
-1230019504 [] in BlockContext>newProcessWithBindings:
-1230019320 [] in BlockContext>newProcess
Connected to localhost.
Escape character is '^]'.
Connection closed by foreign host.
 
    By now I'll not count with squeak being trustable for headless images beign saved but I think this is a desirable feature.
 
    regards, 
 
Sebastian Sastre
 









Reply | Threaded
Open this post in threaded view
|

RE: Saving a headless image in linux problem

Sebastian Sastre-2
In reply to this post by Aaron Reichow
Answers below..
 
    regards,
 

Sebastian Sastre


De: [hidden email] [mailto:[hidden email]] En nombre de Aaron Reichow
Enviado el: Martes, 20 de Marzo de 2007 17:04
Para: The general-purpose Squeak developers list
Asunto: Re: Saving a headless image in linux problem

Sebastian-

Does it actually save the image when you do this, or does this error happen when you're attempting it?  
Well the image doesn't start normal after the command so I think it can save, yes.
 
 Looks to me that you get this when connecting to the REPLServer after saving- is that correct? I agree that it is desirable to get this fixed, though I don't think I have an answer. 
Well by now I was only testing REPLServer as a backdoor just in case. I'm not using it to do regular things like shutdown the image (saving or not) 

Have you tried this on any other config, perhaps on a headed server on Linux or another OS? That is, still try to do an image-save through the REPLServer, 
As I said I was not using REPLServer for that. 

Thanks!

Regards,
Aaron

On Mar 15, 2007, at 9:59 AM, Sebastian Sastre wrote:

Hi there,
I'm using a headless squeak image for production and it happens to me that if I save it, is for sure that it will not be stable anymore.
# squeak -version
3.9-8 #5 Tue Oct 10 11:56:09 PDT 2006 gcc 4.0.3
Squeak3.9alpha of 4 July 2005 [latest update: #7021]
Linux ubuntu 2.6.15-27-386 #1 PREEMPT Sat Sep 16 01:51:59 UTC 2006 i686 GNU/Linux
default plugin location: /usr/local/lib/squeak/3.9-8/*.so
I've saved one image and then tried to telnet it (using REPLServer) and this is the result:
# telnet localhost 9023
Trying 127.0.0.1...
Recursive not understood error encountered
-1229989588 SocketStream>flush
-1229989788 ConnectingStream>flush
-1229989880 ConnectingStream>flush
-1230013288 REPLServer>getPasswordFrom:
-1230013944 REPLServer>serve:
-1230020920 [] in TcpService>value:
-1230014152 BlockContext>on:do:
-1230014264 BlockContext>valueWithBindingsContext:
-1230014356 BlockContext>valueWithBindings:
-1230015680 BindingsAccessor>clamp:
-1230019688 [] in BlockContext>newProcessWithClampedBindings:
-1230015864 BlockContext>on:do:
-1230015988 BlockContext>valueWithBindingsContext:
-1230016080 BlockContext>valueWithBindings:
-1230019504 [] in BlockContext>newProcessWithBindings:
-1230019320 [] in BlockContext>newProcess
Connected to localhost.
Escape character is '^]'.
Connection closed by foreign host.
By now I'll not count with squeak being trustable for headless images beign saved but I think this is a desirable feature.
regards,
Sebastian Sastre