[Box-Admins] Restarted squeaksource.com with possible problems (was: Someone has registered on squeaksource.com with a wide character in their name)

David T. Lewis lewis at mail.msen.com
Fri Jul 1 00:06:17 UTC 2016


Clearly that was the wrong thing to do, as squeaksource.com went dead immediately
after I killed 15483.

I then killed 5940, because I did not want to take a chance that the "wrong"
image would save itself on the hourly image save.

Supervise restarted the image as expected, and the site appears normal again,
with no extra squeakvm process.

I am concerned that we may have had a period of time during which two instances
of the squeaksource.com image were both running, with both saving themselves to
disk with the same image name. If the last image to have done so was not the
"real" squeaksource.com image, then we may have lost data.

As far as I can tell, everything is OK now. I will watch for problems.

Dave


On Thu, Jun 30, 2016 at 07:43:36PM -0400, David T. Lewis wrote:
> Levente,
> 
> Just FYI, for reasons that I cannot explain we seem to have two squeaksource
> images running:
> 
> ssdotcom  5940  5939  9 Jun30 ?        01:55:09 /usr/local/lib/squeak/4.15.3-3634/squeakvm -vm-display-null /home/ssdotcom/SqueakSource/squeaksource.4.image
> ssdotcom 15483     1 10 Jun14 ?        1-19:56:10 /usr/local/lib/squeak/4.15.3-3634/squeakvm -vm-display-null /home/ssdotcom/SqueakSource/squeaksource.4.image
> 
> 
> Process 5940 is the one that I can connect to with VNC, and that is running
> under the control of supervise. Process 15483 is reparented to root.
> 
> I will kill 15483. This note is just to let you know what I am doing in case
> I break something.
> 
> Dave
> 
> 
> On Thu, Jun 30, 2016 at 12:17:51AM -0400, David T. Lewis wrote:
> > Thank you Levente, I can connect to the image now. I did not understand
> > that I should start RFBServer exactly as before. It works fine, thank you
> > for explaining.
> > 
> > Dave
> > 
> > On Thu, Jun 30, 2016 at 04:25:06AM +0200, Levente Uzonyi wrote:
> > > Hi Dave,
> > > 
> > > On Wed, 29 Jun 2016, David T. Lewis wrote:
> > > 
> > > >On Tue, Jun 28, 2016 at 10:46:48PM +0200, Levente Uzonyi wrote:
> > > >>Thanks Dave,
> > > >>
> > > >>I've changed two names and it works again.
> > > >>I've also disabled remote connections to the VNC server. At the same
> > > >>time updated the README file with a describing how to connect to the VNC
> > > >>over ssh.
> > > >
> > > >Hi Levente,
> > > >
> > > >Noob problem, please be patient.
> > > >
> > > >I am having trouble figuring out how to connect through ssh. I am not 
> > > >experienced
> > > >with this so I am probably doing something wrong.
> > > >
> > > >I created new keys with ssh-keygen, and copied the public key to box3 with
> > > >
> > > >  $ ssh-copy-id ssdotcom at squeaksource.com
> > > >
> > > >This works fine, and I can ssh to davidlewis at box3.squeak.org without 
> > > >entering
> > > >a password, so I think that the keys are working.
> > > >
> > > >I then do this to set up the tunneling:
> > > >
> > > >  $ ssh -N -L 5901:127.0.0.1:5901 davidlewis at box3.squeak.org
> > > >
> > > >I am using a Vinagre remote desktop viewer, and I connect to 127.0.0.1:1
> > > >to make the connection. I see this error in the window where I set up the
> > > >tunneling:
> > > >
> > > >  $ ssh -N -L 5901:127.0.0.1:5901 davidlewis at box3.squeak.org
> > > >  channel 2: open failed: connect failed: Connection refused
> > > 
> > > The error message means that the tunnel is working, but there's no socket 
> > > listening on port 5901 on the server. Did you start RFBServer the way 
> > > you described it in the README file?
> > > 
> > > >
> > > >So I think that I am doing something wrong here.
> > > 
> > > You should do everything the same way you did before, except for setting 
> > > up the ssh tunnel and connecting to 127.0.0.1:5901 instead of to the box 
> > > in your VNC client.
> > > 
> > > >
> > > >I am assuming that I should get a connection to an X11 desktop on box3,
> > > >although I should mention that the VM for squeaksource.com is running
> > > >headless, so its Squeak window would not be visible in an X11 desktop.
> > > 
> > > Your VNC client should show the Squeak desktop. There's no X11 server 
> > > involved there.
> > > 
> > > Levente
> > > 
> > > >
> > > >Can you point me in the right direction? Thanks.
> > > >
> > > >Dave
> > > >
> > > >


More information about the Box-Admins mailing list