Hi Levente and Tobias, source.squeak.org is finally ready to make the switch to the andreas box at Rackspace. I've imported the new data.obj as of a couple of days ago, and watched it running. Everything is fine, let's pull the trigger!
I suggest we:
1) notify the community of outage. 2) stop source.squeak.org on box4. 3) run one last rsync from box4:/srv/box2/home/sqeueaksource/ss to: andreas:/srv/sourcesqueakorg/box4/squeaksource/webserver/ss
*Important: Please do not rsync above this directory!
4) bounce the server on andreas. (sudo svc -k /service/squeaksource). 5) Wait a few minutes. Make sure all is well. I can help with this. 6) Tobias or Levente switch the DNS + whatever else is needed. 7) Notify community, back up.
I suggest we do it ASAP. Please let me know your thoughts.
- Chris
On 20.10.2016, at 07:44, Chris Muller ma.chris.m@gmail.com wrote:
Hi Levente and Tobias, source.squeak.org is finally ready to make the switch to the andreas box at Rackspace. I've imported the new data.obj as of a couple of days ago, and watched it running. Everything is fine, let's pull the trigger!
I suggest we:
- notify the community of outage.
- stop source.squeak.org on box4.
- run one last rsync from box4:/srv/box2/home/sqeueaksource/ss
to: andreas:/srv/sourcesqueakorg/box4/squeaksource/webserver/ss
Would it be possible to move the webserver dir directly under /srv/sourcesqueakorg as /srv/sourcesqueakorg/service ?
I also noticed, that the run-script cd's into the /srv/sourcesqueakorg/box4/squeaksource/webserver/ directory. Is that necessary? Daemontools seems to cd into the service dir already: "supervise switches to the directory [...] and starts ./run. "
*Important: Please do not rsync above this directory!
- bounce the server on andreas. (sudo svc -k /service/squeaksource).
- Wait a few minutes. Make sure all is well. I can help with this.
Go forth :)
- Tobias or Levente switch the DNS + whatever else is needed.
I'll prepare the webserver.
- Notify community, back up.
I suggest we do it ASAP. Please let me know your thoughts.
- Chris
Best regards -Tobias
On Thu, Oct 20, 2016 at 1:31 AM, Tobias Pape Das.Linux@gmx.de wrote:
On 20.10.2016, at 07:44, Chris Muller ma.chris.m@gmail.com wrote:
Hi Levente and Tobias, source.squeak.org is finally ready to make the
switch to the andreas box at Rackspace. I've imported the new data.obj as of a couple of days ago, and watched it running. Everything is fine, let's pull the trigger!
I suggest we:
- notify the community of outage.
- stop source.squeak.org on box4.
- run one last rsync from box4:/srv/box2/home/sqeueaksource/ss
to: andreas:/srv/sourcesqueakorg/box4/squeaksource/webserver/ss
Would it be possible to move the webserver dir directly under /srv/sourcesqueakorg as /srv/sourcesqueakorg/service ?
Well I liked the original location /home/squeaksource, but since I did not wish to argue about directory's I implemented a configurable #homeDirectory and set it to where you put the files. We can change it again but the 'webserver' subdirectory is hard-coded, not configurable, and I do not wish to make any more code changes in the image at this point, as that would require me to have to go through the unique and cumbersmoe testing process for this, yet again.
We can do /srv/sourcesqueakorg/webserver if you want.
I also noticed, that the run-script cd's into the
/srv/sourcesqueakorg/box4/squeaksource/webserver/ directory. Is that necessary? Daemontools seems to cd into the service dir already: "supervise switches to the directory [...] and starts ./run. "
*Important: Please do not rsync above this directory!
- bounce the server on andreas. (sudo svc -k /service/squeaksource).
- Wait a few minutes. Make sure all is well. I can help with this.
Go forth :)
I'm trying to share a clear plan which would presume follow these numbered steps in sequence. Since we have not done the prior steps, I don't know what this means. I need clarity, please.
- Tobias or Levente switch the DNS + whatever else is needed.
I'll prepare the webserver.
- Notify community, back up.
I suggest we do it ASAP. Please let me know your thoughts.
- Chris
Best regards
Thanks.
- Chris
On 20.10.2016, at 21:28, Chris Muller ma.chris.m@gmail.com wrote:
On Thu, Oct 20, 2016 at 1:31 AM, Tobias Pape Das.Linux@gmx.de wrote:
On 20.10.2016, at 07:44, Chris Muller ma.chris.m@gmail.com wrote:
Hi Levente and Tobias, source.squeak.org is finally ready to make the switch to the andreas box at Rackspace. I've imported the new data.obj as of a couple of days ago, and watched it running. Everything is fine, let's pull the trigger!
I suggest we:
- notify the community of outage.
- stop source.squeak.org on box4.
- run one last rsync from box4:/srv/box2/home/sqeueaksource/ss
to: andreas:/srv/sourcesqueakorg/box4/squeaksource/webserver/ss
Would it be possible to move the webserver dir directly under /srv/sourcesqueakorg as /srv/sourcesqueakorg/service ?
Well I liked the original location /home/squeaksource, but since I did not wish to argue about directory's I implemented a configurable #homeDirectory and set it to where you put the files. We can change it again but the 'webserver' subdirectory is hard-coded, not configurable, and I do not wish to make any more code changes in the image at this point, as that would require me to have to go through the unique and cumbersmoe testing process for this, yet again.
We can do /srv/sourcesqueakorg/webserver if you want.
Sounds good!
I also noticed, that the run-script cd's into the /srv/sourcesqueakorg/box4/squeaksource/webserver/ directory. Is that necessary? Daemontools seems to cd into the service dir already: "supervise switches to the directory [...] and starts ./run. "
*Important: Please do not rsync above this directory!
- bounce the server on andreas. (sudo svc -k /service/squeaksource).
- Wait a few minutes. Make sure all is well. I can help with this.
Go forth :)
I meant: please do the steps you outlined.
I'm trying to share a clear plan which would presume follow these numbered steps in sequence. Since we have not done the prior steps, I don't know what this means. I need clarity, please.
- Tobias or Levente switch the DNS + whatever else is needed.
I'll prepare the webserver.
Best regards -Tobias
- Notify community, back up.
I suggest we do it ASAP. Please let me know your thoughts.
- Chris
Best regards
Thanks.
- Chris
Sigh.
We can do /srv/sourcesqueakorg/webserver if you want.
Sounds good!
In trying to move the users home dir: ---------------- sudo usermod --move-home --home /srv/sourcesqueakorg squeaksource usermod: user squeaksource is currently used by process 9095 ----------
Its daemontools' multilog process for the service.
---------- ps -ef | grep 9095 chrismu+ 5917 5471 0 20:06 pts/0 00:00:00 grep 9095 squeaks+ 9095 9094 0 Oct13 ? 00:00:00 multilog t ./main -----------
Okay, stop it:
--------------- sudo svc -d /service/squeaksource/log sudo svstat /service/squeaksource/log /service/squeaksource/log: up (pid 9095) 668663 seconds, want down ---------------
Hmm, why still up? Kill it? ------------ sudo kill 9095 ps -ef | grep 9095 chrismu+ 6034 5471 0 20:08 pts/0 00:00:00 grep 9095 squeaks+ 9095 9094 0 Oct13 ? 00:00:00 multilog t ./main ------------
Still there, what now? I don't want to get daemontools into a bad state where I can't get it to start back up..
On 20.10.2016, at 22:15, Chris Muller ma.chris.m@gmail.com wrote:
Sigh.
We can do /srv/sourcesqueakorg/webserver if you want.
Sounds good!
In trying to move the users home dir:
sudo usermod --move-home --home /srv/sourcesqueakorg squeaksource usermod: user squeaksource is currently used by process 9095
Please do not do that.
/srv/sourcesqueakorg is the home folder of the sourcesqueakorg user:
/etc/passwd: sourcesqueakorg:x:100002:65534:source.squeak.org SqueakSource,,,:/srv/sourcesqueakorg:/bin/bash squeaksource:x:1005:1005:,,,:/srv/sourcesqueakorg/box4/squeaksource/:/bin/bash
Also, please use the designated service user sourcesqueakorg, which already has the correct home dir and assigned uid.
Sorry I haven't seen this earlier :/
Its daemontools' multilog process for the service.
ps -ef | grep 9095 chrismu+ 5917 5471 0 20:06 pts/0 00:00:00 grep 9095 squeaks+ 9095 9094 0 Oct13 ? 00:00:00 multilog t ./main
Okay, stop it:
sudo svc -d /service/squeaksource/log sudo svstat /service/squeaksource/log /service/squeaksource/log: up (pid 9095) 668663 seconds, want down
Hmm, why still up? Kill it?
sudo kill 9095 ps -ef | grep 9095 chrismu+ 6034 5471 0 20:08 pts/0 00:00:00 grep 9095 squeaks+ 9095 9094 0 Oct13 ? 00:00:00 multilog t ./main
Still there, what now? I don't want to get daemontools into a bad state where I can't get it to start back up..
I stopped it.
Please only start it after having switched to the designated user :)
Thank and best regards -Tobias
box-admins@lists.squeakfoundation.org