Issue 328 in glassdb: Class versions problematic for Seaside applications

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

Issue 328 in glassdb: Class versions problematic for Seaside applications

glassdb
Status: Accepted
Owner: [hidden email]
Labels: Type-Defect Priority-Medium GLASS-Seaside30 Version-GLASS0.231  
bugid-39801

New issue 328 by [hidden email]: Class versions problematic for  
Seaside applications
http://code.google.com/p/glassdb/issues/detail?id=328

 From Joel Turnbull, a while back, but worth bringing into focus:


Seaside applications hang onto a class reference ... if the class changes,  
the reference isn't changed and folks need to reregister the application  
after updating a class.

We should hang on to a reference to the association instead of the class  
itself ...

This extends to Pier instances as well

Reply | Threaded
Open this post in threaded view
|

Re: Issue 328 in glassdb: Class versions problematic for Seaside applications

glassdb
Updates:
        Labels: -Priority-Medium Priority-Critical Milestone-1.0-beta.8.8

Comment #1 on issue 328 by [hidden email]: Class versions  
problematic for Seaside applications
http://code.google.com/p/glassdb/issues/detail?id=328

This problem has surfaced again[1], I think.

At a minimum we should have a page of gotchas (Stream and class references  
come immediately to mind) on the glassdb wiki.

[1]  
http://forum.world.st/Take-advantage-of-the-largest-STIC-12-conference-discounts-by-registering-this-week-tp4286264p4338895.html

Reply | Threaded
Open this post in threaded view
|

Re: Issue 328 in glassdb: Class versions problematic for Seaside applications

glassdb

Comment #2 on issue 328 by [hidden email]: Class versions  
problematic for Seaside applications
http://code.google.com/p/glassdb/issues/detail?id=328

Do you know all the places affected?
I guess the configuration. WAInspector and WACanvas probably. What about  
the cases where we use class or class instance variables like GRPlatform?

Reply | Threaded
Open this post in threaded view
|

TimeZone conversion in GemStone

Larry Kellogg
Hello,
  So, perhaps this is more of a GemStone question than a Seaside one, but I'll ask it 
anyway. ;-) 

  What do I do when I have users who can potentially be in many different time zones?
I want to show them them the times in their own local time zone, not in Pacific Time.  
I can't find a complete implementation of TimeZone conversion, although DateTime does 
have the method asDateIn: aTimeZone. 

  It appears that I have to define all of the TimeZones myself on the server, is that right? 

  I found this in one of the manuals: 

"If the customer application has clients who are in different timezones from their gems, and wants the time zones to be different in the gem and the client, they should create the desired TimeZone on the server, and replicate it to the client, using the method
GbsSession >> clientTimeZone:
For example:
myGbsSession clientTimeZone: (myGbsSession evaluate: 'TimeZone
fromGemPath:''/foo/bar/America/New_York''')."

  But, of course, I can't replicate anything to the client because I am serving my application 
through Seaside. 

  Can you guys offer me any guidance? Thanks!

   Larry
Reply | Threaded
Open this post in threaded view
|

Re: TimeZone conversion in GemStone

Paul DeBruicker
The Gemstone guys probably have a way but:

You could use Chronos.

http://www.squeaksource.com/Chronos


Or port the TimeZoneDatabase to Gemstone

http://www.squeaksource.com/TimeZoneDatabase

Store the times in UTC and use the clients time zone to convert from UTC
to their time zone when necessary to display a time to them.






On 12-01-30 12:54 PM, Lawrence Kellogg wrote:

> Hello,
> So, perhaps this is more of a GemStone question than a Seaside one, but
> I'll ask it
> anyway. ;-)
>
> What do I do when I have users who can potentially be in many different
> time zones?
> I want to show them them the times in their own local time zone, not in
> Pacific Time.
> I can't find a complete implementation of TimeZone conversion, although
> DateTime does
> have the method asDateIn: aTimeZone.
>
> It appears that I have to define all of the TimeZones myself on the
> server, is that right?
>
> I found this in one of the manuals:
>
> "If the customer application has clients who are in different timezones
> from their gems, and wants the time zones to be different in the gem and
> the client, they should create the desired TimeZone on the server, and
> replicate it to the client, using the method
> GbsSession >> clientTimeZone:
> For example:
> myGbsSession clientTimeZone: (myGbsSession evaluate: 'TimeZone
> fromGemPath:''/foo/bar/America/New_York''')."
>
> But, of course, I can't replicate anything to the client because I am
> serving my application
> through Seaside.
>
> Can you guys offer me any guidance? Thanks!
>
> Larry

Reply | Threaded
Open this post in threaded view
|

Re: Issue 328 in glassdb: Class versions problematic for Seaside applications

glassdb
In reply to this post by glassdb

Comment #3 on issue 328 by [hidden email]: Class versions  
problematic for Seaside applications
http://code.google.com/p/glassdb/issues/detail?id=328

No I don't (offhand) ... while we're on the subject I also recall places  
where Pier uses the hash of a class for sorting in some instances (or at  
least used to)...

Reply | Threaded
Open this post in threaded view
|

Re: TimeZone conversion in GemStone

Jon Paynter-2
In reply to this post by Paul DeBruicker
Well the client gem is running on your server, so all of the "client" gems are going to get the same timezone if you try to request the current one.

What I would suggest is to first, store all your domain objects in some common timezone (we use GMT here).  Then get the user's timezone from somewhere (javascript, setting... etc).  Then in your rendering/display code, do the translation to the user's timezone based on these settings.
Be careful not to set the timezone in the gem, or you will affect all other sessions being processed by that same gem, and cause some annoying issues.

On Mon, Jan 30, 2012 at 1:03 PM, Paul DeBruicker <[hidden email]> wrote:
The Gemstone guys probably have a way but:

You could use Chronos.

http://www.squeaksource.com/Chronos


Or port the TimeZoneDatabase to Gemstone

http://www.squeaksource.com/TimeZoneDatabase

Store the times in UTC and use the clients time zone to convert from UTC to their time zone when necessary to display a time to them.







On 12-01-30 12:54 PM, Lawrence Kellogg wrote:
Hello,
So, perhaps this is more of a GemStone question than a Seaside one, but
I'll ask it
anyway. ;-)

What do I do when I have users who can potentially be in many different
time zones?
I want to show them them the times in their own local time zone, not in
Pacific Time.
I can't find a complete implementation of TimeZone conversion, although
DateTime does
have the method asDateIn: aTimeZone.

It appears that I have to define all of the TimeZones myself on the
server, is that right?

I found this in one of the manuals:

"If the customer application has clients who are in different timezones
from their gems, and wants the time zones to be different in the gem and
the client, they should create the desired TimeZone on the server, and
replicate it to the client, using the method
GbsSession >> clientTimeZone:
For example:
myGbsSession clientTimeZone: (myGbsSession evaluate: 'TimeZone
fromGemPath:''/foo/bar/America/New_York''')."

But, of course, I can't replicate anything to the client because I am
serving my application
through Seaside.

Can you guys offer me any guidance? Thanks!

Larry


Reply | Threaded
Open this post in threaded view
|

Re: TimeZone conversion in GemStone

Dale Henrichs
In reply to this post by Larry Kellogg
Larry,

It's expected that you ask GemStone as well as Seaside questions on this list...

The manipulation of TimeZones si documented in the System Administration Guide[1] in Appendix D, I think...

Dale

[1] http://community.gemstone.com/download/attachments/6816350/GS64-SysAdminGuide-3.0.pdf?version=1

----- Original Message -----
| From: "Lawrence Kellogg" <[hidden email]>
| To: "GemStone Seaside beta discussion" <[hidden email]>
| Sent: Monday, January 30, 2012 12:54:21 PM
| Subject: [GS/SS Beta] TimeZone conversion in GemStone
|
| Hello,
| So, perhaps this is more of a GemStone question than a Seaside one,
| but I'll ask it
| anyway. ;-)
|
|
| What do I do when I have users who can potentially be in many
| different time zones?
| I want to show them them the times in their own local time zone, not
| in Pacific Time.
| I can't find a complete implementation of TimeZone conversion,
| although DateTime does
| have the method asDateIn: aTimeZone.
|
|
| It appears that I have to define all of the TimeZones myself on the
| server, is that right?
|
|
| I found this in one of the manuals:
|
|
| " If the customer application has clients who are in different
| timezones from their gems, and wants the time zones to be different
| in the gem and the client, they should create the desired TimeZone
| on the server, and replicate it to the client, using the method
| GbsSession >> clientTimeZone:
| For example:
| myGbsSession clientTimeZone: (myGbsSession evaluate: 'TimeZone
| fromGemPath:''/foo/bar/America/New_York'''). "
|
|
| But, of course, I can't replicate anything to the client because I am
| serving my application
| through Seaside.
|
|
| Can you guys offer me any guidance? Thanks!
|
|
| Larry
Reply | Threaded
Open this post in threaded view
|

Re: Issue 328 in glassdb: Class versions problematic for Seaside applications

glassdb
In reply to this post by glassdb

Comment #4 on issue 328 by [hidden email]: Class versions  
problematic for Seaside applications
http://code.google.com/p/glassdb/issues/detail?id=328

Feel free to report an issue against Seaside once you know the locations  
affected.

Reply | Threaded
Open this post in threaded view
|

Re: Issue 328 in glassdb: Class versions problematic for Seaside applications

glassdb

Comment #5 on issue 328 by [hidden email]: Class versions  
problematic for Seaside applications
http://code.google.com/p/glassdb/issues/detail?id=328

Will do, thanks!

Reply | Threaded
Open this post in threaded view
|

Need bash script to loop and restart WAFastCGIAdaptor

Larry Kellogg
Hello,
  I need a script that will automatically restart my WAFastCGIAdaptor on port 9001 when
it falls down. Unfortunately, it appears that any walkback brings down nginx, although I
have installed the production error handler.

  Does anyone have a little script that will restart the WAFastCGIAdaptor?
I apologize for being such a terrible Unix hacker.

  Regards,

  Larry


Reply | Threaded
Open this post in threaded view
|

Re: Need bash script to loop and restart WAFastCGIAdaptor

Paul DeBruicker
You should use a dedicated tool like monit or daemontools

http://www.mmonit.com

http://cr.yp.to/daemontools.html

Its worth learning one of them and probably easier to get going with Monit.





On 12-01-31 11:56 AM, Lawrence Kellogg wrote:

> Hello,
>    I need a script that will automatically restart my WAFastCGIAdaptor on port 9001 when
> it falls down. Unfortunately, it appears that any walkback brings down nginx, although I
> have installed the production error handler.
>
>    Does anyone have a little script that will restart the WAFastCGIAdaptor?
> I apologize for being such a terrible Unix hacker.
>
>    Regards,
>
>    Larry
>
>

Reply | Threaded
Open this post in threaded view
|

Re: Need bash script to loop and restart WAFastCGIAdaptor

Dale Henrichs
In reply to this post by Larry Kellogg
Here's a writeup for daemontools and GemStone[1] from Tobias Pape...

Dale

[1] http://code.google.com/p/glassdb/wiki/GLASSDaemonToolsIndex

----- Original Message -----
| From: "Lawrence Kellogg" <[hidden email]>
| To: "GemStone Seaside beta discussion" <[hidden email]>
| Sent: Tuesday, January 31, 2012 11:56:29 AM
| Subject: [GS/SS Beta] Need bash script to loop and restart WAFastCGIAdaptor
|
| Hello,
|   I need a script that will automatically restart my WAFastCGIAdaptor
|   on port 9001 when
| it falls down. Unfortunately, it appears that any walkback brings
| down nginx, although I
| have installed the production error handler.
|
|   Does anyone have a little script that will restart the
|   WAFastCGIAdaptor?
| I apologize for being such a terrible Unix hacker.
|
|   Regards,
|
|   Larry
|
|
|
Reply | Threaded
Open this post in threaded view
|

Re: Need bash script to loop and restart WAFastCGIAdaptor

Larry Kellogg

On Jan 31, 2012, at 3:27 PM, Dale Henrichs wrote:

> Here's a writeup for daemontools and GemStone[1] from Tobias Pape...
>

  Thanks for the links, Dale and Paul. I'll go through the material.

  I was hoping for an easy turnkey solution. ;-) I'm stretched pretty thin due to
having to work on CSS, Smalltalk, Gemstone, and mobile code.

  Larry



> Dale
>
> [1] http://code.google.com/p/glassdb/wiki/GLASSDaemonToolsIndex
>
> ----- Original Message -----
> | From: "Lawrence Kellogg" <[hidden email]>
> | To: "GemStone Seaside beta discussion" <[hidden email]>
> | Sent: Tuesday, January 31, 2012 11:56:29 AM
> | Subject: [GS/SS Beta] Need bash script to loop and restart WAFastCGIAdaptor
> |
> | Hello,
> |   I need a script that will automatically restart my WAFastCGIAdaptor
> |   on port 9001 when
> | it falls down. Unfortunately, it appears that any walkback brings
> | down nginx, although I
> | have installed the production error handler.
> |
> |   Does anyone have a little script that will restart the
> |   WAFastCGIAdaptor?
> | I apologize for being such a terrible Unix hacker.
> |
> |   Regards,
> |
> |   Larry
> |
> |
> |

Reply | Threaded
Open this post in threaded view
|

Re: Need bash script to loop and restart WAFastCGIAdaptor

Larry Kellogg
In reply to this post by Dale Henrichs
Well, I tried to compile daemontools and got this:


./compile wait_nohang.c
./compile wait_pid.c
./makelib unix.a alloc.o alloc_re.o buffer.o buffer_0.o buffer_1.o \
        buffer_2.o buffer_get.o buffer_put.o buffer_read.o buffer_write.o \
        coe.o env.o error.o error_str.o fd_copy.o fd_move.o fifo.o lock_ex.o \
        lock_exnb.o ndelay_off.o ndelay_on.o open_append.o open_read.o \
        open_trunc.o open_write.o openreadclose.o pathexec_env.o \
        pathexec_run.o prot.o readclose.o seek_set.o sgetopt.o sig.o \
        sig_block.o sig_catch.o sig_pause.o stralloc_cat.o stralloc_catb.o \
        stralloc_cats.o stralloc_eady.o stralloc_opyb.o stralloc_opys.o \
        stralloc_pend.o strerr_die.o strerr_sys.o subgetopt.o wait_nohang.o \
        wait_pid.o
./load envdir unix.a byte.a
/usr/bin/ld: errno: TLS definition in /lib64/libc.so.6 section .tbss mismatches non-TLS reference in envdir.o
/lib64/libc.so.6: could not read symbols: Bad value
collect2: ld returned 1 exit status
make: *** [envdir] Error 1

But, of course, why would I expect it to work?  Beats me what that error means.

Larry


On Jan 31, 2012, at 3:27 PM, Dale Henrichs wrote:

> Here's a writeup for daemontools and GemStone[1] from Tobias Pape...
>
> Dale
>
> [1] http://code.google.com/p/glassdb/wiki/GLASSDaemonToolsIndex
>
> ----- Original Message -----
> | From: "Lawrence Kellogg" <[hidden email]>
> | To: "GemStone Seaside beta discussion" <[hidden email]>
> | Sent: Tuesday, January 31, 2012 11:56:29 AM
> | Subject: [GS/SS Beta] Need bash script to loop and restart WAFastCGIAdaptor
> |
> | Hello,
> |   I need a script that will automatically restart my WAFastCGIAdaptor
> |   on port 9001 when
> | it falls down. Unfortunately, it appears that any walkback brings
> | down nginx, although I
> | have installed the production error handler.
> |
> |   Does anyone have a little script that will restart the
> |   WAFastCGIAdaptor?
> | I apologize for being such a terrible Unix hacker.
> |
> |   Regards,
> |
> |   Larry
> |
> |
> |

Reply | Threaded
Open this post in threaded view
|

Re: Need bash script to loop and restart WAFastCGIAdaptor

Larry Kellogg
The dreaded errno.h problem?

http://blog.nirkabel.org/2009/01/18/errnoh-problem/


On Jan 31, 2012, at 9:01 PM, Lawrence Kellogg wrote:

> Well, I tried to compile daemontools and got this:
>
>
> ./compile wait_nohang.c
> ./compile wait_pid.c
> ./makelib unix.a alloc.o alloc_re.o buffer.o buffer_0.o buffer_1.o \
> buffer_2.o buffer_get.o buffer_put.o buffer_read.o buffer_write.o \
> coe.o env.o error.o error_str.o fd_copy.o fd_move.o fifo.o lock_ex.o \
> lock_exnb.o ndelay_off.o ndelay_on.o open_append.o open_read.o \
> open_trunc.o open_write.o openreadclose.o pathexec_env.o \
> pathexec_run.o prot.o readclose.o seek_set.o sgetopt.o sig.o \
> sig_block.o sig_catch.o sig_pause.o stralloc_cat.o stralloc_catb.o \
> stralloc_cats.o stralloc_eady.o stralloc_opyb.o stralloc_opys.o \
> stralloc_pend.o strerr_die.o strerr_sys.o subgetopt.o wait_nohang.o \
> wait_pid.o
> ./load envdir unix.a byte.a
> /usr/bin/ld: errno: TLS definition in /lib64/libc.so.6 section .tbss mismatches non-TLS reference in envdir.o
> /lib64/libc.so.6: could not read symbols: Bad value
> collect2: ld returned 1 exit status
> make: *** [envdir] Error 1
>
> But, of course, why would I expect it to work?  Beats me what that error means.
>
> Larry
>
>
> On Jan 31, 2012, at 3:27 PM, Dale Henrichs wrote:
>
>> Here's a writeup for daemontools and GemStone[1] from Tobias Pape...
>>
>> Dale
>>
>> [1] http://code.google.com/p/glassdb/wiki/GLASSDaemonToolsIndex
>>
>> ----- Original Message -----
>> | From: "Lawrence Kellogg" <[hidden email]>
>> | To: "GemStone Seaside beta discussion" <[hidden email]>
>> | Sent: Tuesday, January 31, 2012 11:56:29 AM
>> | Subject: [GS/SS Beta] Need bash script to loop and restart WAFastCGIAdaptor
>> |
>> | Hello,
>> |   I need a script that will automatically restart my WAFastCGIAdaptor
>> |   on port 9001 when
>> | it falls down. Unfortunately, it appears that any walkback brings
>> | down nginx, although I
>> | have installed the production error handler.
>> |
>> |   Does anyone have a little script that will restart the
>> |   WAFastCGIAdaptor?
>> | I apologize for being such a terrible Unix hacker.
>> |
>> |   Regards,
>> |
>> |   Larry
>> |
>> |
>> |
>

Reply | Threaded
Open this post in threaded view
|

Re: Need bash script to loop and restart WAFastCGIAdaptor

Dale Henrichs
In reply to this post by Larry Kellogg
Lawrence,

I'm just not an expert on daemontools Monty has a github project with some daemontools setup scripts[1] that might be of help...

Also you might try googling the error message and see what turns up ....

Dale

[1] https://github.com/Monty/GemStone_daemontools_setup

----- Original Message -----
| From: "Lawrence Kellogg" <[hidden email]>
| To: "GemStone Seaside beta discussion" <[hidden email]>
| Sent: Tuesday, January 31, 2012 6:01:41 PM
| Subject: Re: [GS/SS Beta] Need bash script to loop and restart WAFastCGIAdaptor
|
| Well, I tried to compile daemontools and got this:
|
|
| ./compile wait_nohang.c
| ./compile wait_pid.c
| ./makelib unix.a alloc.o alloc_re.o buffer.o buffer_0.o buffer_1.o \
| buffer_2.o buffer_get.o buffer_put.o buffer_read.o buffer_write.o \
| coe.o env.o error.o error_str.o fd_copy.o fd_move.o fifo.o lock_ex.o
| \
| lock_exnb.o ndelay_off.o ndelay_on.o open_append.o open_read.o \
| open_trunc.o open_write.o openreadclose.o pathexec_env.o \
| pathexec_run.o prot.o readclose.o seek_set.o sgetopt.o sig.o \
| sig_block.o sig_catch.o sig_pause.o stralloc_cat.o stralloc_catb.o \
| stralloc_cats.o stralloc_eady.o stralloc_opyb.o stralloc_opys.o \
| stralloc_pend.o strerr_die.o strerr_sys.o subgetopt.o wait_nohang.o
| \
| wait_pid.o
| ./load envdir unix.a byte.a
| /usr/bin/ld: errno: TLS definition in /lib64/libc.so.6 section .tbss
| mismatches non-TLS reference in envdir.o
| /lib64/libc.so.6: could not read symbols: Bad value
| collect2: ld returned 1 exit status
| make: *** [envdir] Error 1
|
| But, of course, why would I expect it to work?  Beats me what that
| error means.
|
| Larry
|
|
| On Jan 31, 2012, at 3:27 PM, Dale Henrichs wrote:
|
| > Here's a writeup for daemontools and GemStone[1] from Tobias
| > Pape...
| >
| > Dale
| >
| > [1] http://code.google.com/p/glassdb/wiki/GLASSDaemonToolsIndex
| >
| > ----- Original Message -----
| > | From: "Lawrence Kellogg" <[hidden email]>
| > | To: "GemStone Seaside beta discussion"
| > | <[hidden email]>
| > | Sent: Tuesday, January 31, 2012 11:56:29 AM
| > | Subject: [GS/SS Beta] Need bash script to loop and restart
| > | WAFastCGIAdaptor
| > |
| > | Hello,
| > |   I need a script that will automatically restart my
| > |   WAFastCGIAdaptor
| > |   on port 9001 when
| > | it falls down. Unfortunately, it appears that any walkback brings
| > | down nginx, although I
| > | have installed the production error handler.
| > |
| > |   Does anyone have a little script that will restart the
| > |   WAFastCGIAdaptor?
| > | I apologize for being such a terrible Unix hacker.
| > |
| > |   Regards,
| > |
| > |   Larry
| > |
| > |
| > |
|
|
Reply | Threaded
Open this post in threaded view
|

Re: Need bash script to loop and restart WAFastCGIAdaptor

Larry Kellogg
Thanks anyway, Dale, it was the dreaded errno problem that I posted on here.

I got it to compile,

grep sysdep hasflock.h >> sysdeps
grep sysdep hasshsgr.h >> sysdeps
Copying commands into ./command...
Creating symlink daemontools -> daemontools-0.76...
Making command links in /command...

Making compatibility links in /usr/local/bin...
Creating /service...
Adding svscanboot to inittab...
init should start svscan now.
[seasideuser@ip-10-245-218-240 daemontools-0.76]$
[seasideuser@ip-10-245-218-240 daemontools-0.76]$

now I'm just wondering if I have to reboot the instance on Amazon, which
will give me a new public DNS entry (I think) and mess up the forwarding I have
set up on my domain (CNAME record).

Any Unix person know? The documentation says to restart BSD boxes.


  Larry


On Jan 31, 2012, at 9:08 PM, Dale Henrichs wrote:

> Lawrence,
>
> I'm just not an expert on daemontools Monty has a github project with some daemontools setup scripts[1] that might be of help...
>
> Also you might try googling the error message and see what turns up ....
>
> Dale
>
> [1] https://github.com/Monty/GemStone_daemontools_setup
>
> ----- Original Message -----
> | From: "Lawrence Kellogg" <[hidden email]>
> | To: "GemStone Seaside beta discussion" <[hidden email]>
> | Sent: Tuesday, January 31, 2012 6:01:41 PM
> | Subject: Re: [GS/SS Beta] Need bash script to loop and restart WAFastCGIAdaptor
> |
> | Well, I tried to compile daemontools and got this:
> |
> |
> | ./compile wait_nohang.c
> | ./compile wait_pid.c
> | ./makelib unix.a alloc.o alloc_re.o buffer.o buffer_0.o buffer_1.o \
> | buffer_2.o buffer_get.o buffer_put.o buffer_read.o buffer_write.o \
> | coe.o env.o error.o error_str.o fd_copy.o fd_move.o fifo.o lock_ex.o
> | \
> | lock_exnb.o ndelay_off.o ndelay_on.o open_append.o open_read.o \
> | open_trunc.o open_write.o openreadclose.o pathexec_env.o \
> | pathexec_run.o prot.o readclose.o seek_set.o sgetopt.o sig.o \
> | sig_block.o sig_catch.o sig_pause.o stralloc_cat.o stralloc_catb.o \
> | stralloc_cats.o stralloc_eady.o stralloc_opyb.o stralloc_opys.o \
> | stralloc_pend.o strerr_die.o strerr_sys.o subgetopt.o wait_nohang.o
> | \
> | wait_pid.o
> | ./load envdir unix.a byte.a
> | /usr/bin/ld: errno: TLS definition in /lib64/libc.so.6 section .tbss
> | mismatches non-TLS reference in envdir.o
> | /lib64/libc.so.6: could not read symbols: Bad value
> | collect2: ld returned 1 exit status
> | make: *** [envdir] Error 1
> |
> | But, of course, why would I expect it to work?  Beats me what that
> | error means.
> |
> | Larry
> |
> |
> | On Jan 31, 2012, at 3:27 PM, Dale Henrichs wrote:
> |
> | > Here's a writeup for daemontools and GemStone[1] from Tobias
> | > Pape...
> | >
> | > Dale
> | >
> | > [1] http://code.google.com/p/glassdb/wiki/GLASSDaemonToolsIndex
> | >
> | > ----- Original Message -----
> | > | From: "Lawrence Kellogg" <[hidden email]>
> | > | To: "GemStone Seaside beta discussion"
> | > | <[hidden email]>
> | > | Sent: Tuesday, January 31, 2012 11:56:29 AM
> | > | Subject: [GS/SS Beta] Need bash script to loop and restart
> | > | WAFastCGIAdaptor
> | > |
> | > | Hello,
> | > |   I need a script that will automatically restart my
> | > |   WAFastCGIAdaptor
> | > |   on port 9001 when
> | > | it falls down. Unfortunately, it appears that any walkback brings
> | > | down nginx, although I
> | > | have installed the production error handler.
> | > |
> | > |   Does anyone have a little script that will restart the
> | > |   WAFastCGIAdaptor?
> | > | I apologize for being such a terrible Unix hacker.
> | > |
> | > |   Regards,
> | > |
> | > |   Larry
> | > |
> | > |
> | > |
> |
> |

Reply | Threaded
Open this post in threaded view
|

Re: Need bash script to loop and restart WAFastCGIAdaptor

Paul DeBruicker
I would have guessed that your linux distro had a daemontools package
you could've installed.  As for restarting, see if the 'supervise'
process is running e.g.


ps -A | grep supervise


if so you should be all set if not try

sudo svscanboot





On 12-01-31 06:17 PM, Lawrence Kellogg wrote:

> Thanks anyway, Dale, it was the dreaded errno problem that I posted on here.
>
> I got it to compile,
>
> grep sysdep hasflock.h>>  sysdeps
> grep sysdep hasshsgr.h>>  sysdeps
> Copying commands into ./command...
> Creating symlink daemontools ->  daemontools-0.76...
> Making command links in /command...
>
> Making compatibility links in /usr/local/bin...
> Creating /service...
> Adding svscanboot to inittab...
> init should start svscan now.
> [seasideuser@ip-10-245-218-240 daemontools-0.76]$
> [seasideuser@ip-10-245-218-240 daemontools-0.76]$
>
> now I'm just wondering if I have to reboot the instance on Amazon, which
> will give me a new public DNS entry (I think) and mess up the forwarding I have
> set up on my domain (CNAME record).
>
> Any Unix person know? The documentation says to restart BSD boxes.
>
>
>    Larry
>
>
> On Jan 31, 2012, at 9:08 PM, Dale Henrichs wrote:
>
>> Lawrence,
>>
>> I'm just not an expert on daemontools Monty has a github project with some daemontools setup scripts[1] that might be of help...
>>
>> Also you might try googling the error message and see what turns up ....
>>
>> Dale
>>
>> [1] https://github.com/Monty/GemStone_daemontools_setup
>>
>> ----- Original Message -----
>> | From: "Lawrence Kellogg"<[hidden email]>
>> | To: "GemStone Seaside beta discussion"<[hidden email]>
>> | Sent: Tuesday, January 31, 2012 6:01:41 PM
>> | Subject: Re: [GS/SS Beta] Need bash script to loop and restart WAFastCGIAdaptor
>> |
>> | Well, I tried to compile daemontools and got this:
>> |
>> |
>> | ./compile wait_nohang.c
>> | ./compile wait_pid.c
>> | ./makelib unix.a alloc.o alloc_re.o buffer.o buffer_0.o buffer_1.o \
>> | buffer_2.o buffer_get.o buffer_put.o buffer_read.o buffer_write.o \
>> | coe.o env.o error.o error_str.o fd_copy.o fd_move.o fifo.o lock_ex.o
>> | \
>> | lock_exnb.o ndelay_off.o ndelay_on.o open_append.o open_read.o \
>> | open_trunc.o open_write.o openreadclose.o pathexec_env.o \
>> | pathexec_run.o prot.o readclose.o seek_set.o sgetopt.o sig.o \
>> | sig_block.o sig_catch.o sig_pause.o stralloc_cat.o stralloc_catb.o \
>> | stralloc_cats.o stralloc_eady.o stralloc_opyb.o stralloc_opys.o \
>> | stralloc_pend.o strerr_die.o strerr_sys.o subgetopt.o wait_nohang.o
>> | \
>> | wait_pid.o
>> | ./load envdir unix.a byte.a
>> | /usr/bin/ld: errno: TLS definition in /lib64/libc.so.6 section .tbss
>> | mismatches non-TLS reference in envdir.o
>> | /lib64/libc.so.6: could not read symbols: Bad value
>> | collect2: ld returned 1 exit status
>> | make: *** [envdir] Error 1
>> |
>> | But, of course, why would I expect it to work?  Beats me what that
>> | error means.
>> |
>> | Larry
>> |
>> |
>> | On Jan 31, 2012, at 3:27 PM, Dale Henrichs wrote:
>> |
>> |>  Here's a writeup for daemontools and GemStone[1] from Tobias
>> |>  Pape...
>> |>
>> |>  Dale
>> |>
>> |>  [1] http://code.google.com/p/glassdb/wiki/GLASSDaemonToolsIndex
>> |>
>> |>  ----- Original Message -----
>> |>  | From: "Lawrence Kellogg"<[hidden email]>
>> |>  | To: "GemStone Seaside beta discussion"
>> |>  |<[hidden email]>
>> |>  | Sent: Tuesday, January 31, 2012 11:56:29 AM
>> |>  | Subject: [GS/SS Beta] Need bash script to loop and restart
>> |>  | WAFastCGIAdaptor
>> |>  |
>> |>  | Hello,
>> |>  |   I need a script that will automatically restart my
>> |>  |   WAFastCGIAdaptor
>> |>  |   on port 9001 when
>> |>  | it falls down. Unfortunately, it appears that any walkback brings
>> |>  | down nginx, although I
>> |>  | have installed the production error handler.
>> |>  |
>> |>  |   Does anyone have a little script that will restart the
>> |>  |   WAFastCGIAdaptor?
>> |>  | I apologize for being such a terrible Unix hacker.
>> |>  |
>> |>  |   Regards,
>> |>  |
>> |>  |   Larry
>> |>  |
>> |>  |
>> |>  |
>> |
>> |
>

Reply | Threaded
Open this post in threaded view
|

Re: Need bash script to loop and restart WAFastCGIAdaptor

Larry Kellogg
Thanks, Paul.


On Jan 31, 2012, at 9:48 PM, Paul DeBruicker wrote:

> I would have guessed that your linux distro had a daemontools package you could've installed.  As for restarting, see if the 'supervise' process is running e.g.
>

I guess not...

$ sudo yum install daemontools
Loaded plugins: fastestmirror, priorities, security, update-motd
Loading mirror speeds from cached hostfile
 * amzn-main: packages.us-east-1.amazonaws.com
 * amzn-updates: packages.us-east-1.amazonaws.com
Setting up Install Process
No package daemontools available.
Error: Nothing to do


>
> ps -A | grep supervise
>

nothing running


>
> if so you should be all set if not try
>
> sudo svscanboot
>
>


  I found this in .usr/local/bin and am running it but it does not seem to
be terminating... how long should it run?

>
>
>
> On 12-01-31 06:17 PM, Lawrence Kellogg wrote:
>> Thanks anyway, Dale, it was the dreaded errno problem that I posted on here.
>>
>> I got it to compile,
>>
>> grep sysdep hasflock.h>>  sysdeps
>> grep sysdep hasshsgr.h>>  sysdeps
>> Copying commands into ./command...
>> Creating symlink daemontools ->  daemontools-0.76...
>> Making command links in /command...
>>
>> Making compatibility links in /usr/local/bin...
>> Creating /service...
>> Adding svscanboot to inittab...
>> init should start svscan now.
>> [seasideuser@ip-10-245-218-240 daemontools-0.76]$
>> [seasideuser@ip-10-245-218-240 daemontools-0.76]$
>>
>> now I'm just wondering if I have to reboot the instance on Amazon, which
>> will give me a new public DNS entry (I think) and mess up the forwarding I have
>> set up on my domain (CNAME record).
>>
>> Any Unix person know? The documentation says to restart BSD boxes.
>>
>>
>>   Larry
>>
>>
>> On Jan 31, 2012, at 9:08 PM, Dale Henrichs wrote:
>>
>>> Lawrence,
>>>
>>> I'm just not an expert on daemontools Monty has a github project with some daemontools setup scripts[1] that might be of help...
>>>
>>> Also you might try googling the error message and see what turns up ....
>>>
>>> Dale
>>>
>>> [1] https://github.com/Monty/GemStone_daemontools_setup
>>>
>>> ----- Original Message -----
>>> | From: "Lawrence Kellogg"<[hidden email]>
>>> | To: "GemStone Seaside beta discussion"<[hidden email]>
>>> | Sent: Tuesday, January 31, 2012 6:01:41 PM
>>> | Subject: Re: [GS/SS Beta] Need bash script to loop and restart WAFastCGIAdaptor
>>> |
>>> | Well, I tried to compile daemontools and got this:
>>> |
>>> |
>>> | ./compile wait_nohang.c
>>> | ./compile wait_pid.c
>>> | ./makelib unix.a alloc.o alloc_re.o buffer.o buffer_0.o buffer_1.o \
>>> | buffer_2.o buffer_get.o buffer_put.o buffer_read.o buffer_write.o \
>>> | coe.o env.o error.o error_str.o fd_copy.o fd_move.o fifo.o lock_ex.o
>>> | \
>>> | lock_exnb.o ndelay_off.o ndelay_on.o open_append.o open_read.o \
>>> | open_trunc.o open_write.o openreadclose.o pathexec_env.o \
>>> | pathexec_run.o prot.o readclose.o seek_set.o sgetopt.o sig.o \
>>> | sig_block.o sig_catch.o sig_pause.o stralloc_cat.o stralloc_catb.o \
>>> | stralloc_cats.o stralloc_eady.o stralloc_opyb.o stralloc_opys.o \
>>> | stralloc_pend.o strerr_die.o strerr_sys.o subgetopt.o wait_nohang.o
>>> | \
>>> | wait_pid.o
>>> | ./load envdir unix.a byte.a
>>> | /usr/bin/ld: errno: TLS definition in /lib64/libc.so.6 section .tbss
>>> | mismatches non-TLS reference in envdir.o
>>> | /lib64/libc.so.6: could not read symbols: Bad value
>>> | collect2: ld returned 1 exit status
>>> | make: *** [envdir] Error 1
>>> |
>>> | But, of course, why would I expect it to work?  Beats me what that
>>> | error means.
>>> |
>>> | Larry
>>> |
>>> |
>>> | On Jan 31, 2012, at 3:27 PM, Dale Henrichs wrote:
>>> |
>>> |>  Here's a writeup for daemontools and GemStone[1] from Tobias
>>> |>  Pape...
>>> |>
>>> |>  Dale
>>> |>
>>> |>  [1] http://code.google.com/p/glassdb/wiki/GLASSDaemonToolsIndex
>>> |>
>>> |>  ----- Original Message -----
>>> |>  | From: "Lawrence Kellogg"<[hidden email]>
>>> |>  | To: "GemStone Seaside beta discussion"
>>> |>  |<[hidden email]>
>>> |>  | Sent: Tuesday, January 31, 2012 11:56:29 AM
>>> |>  | Subject: [GS/SS Beta] Need bash script to loop and restart
>>> |>  | WAFastCGIAdaptor
>>> |>  |
>>> |>  | Hello,
>>> |>  |   I need a script that will automatically restart my
>>> |>  |   WAFastCGIAdaptor
>>> |>  |   on port 9001 when
>>> |>  | it falls down. Unfortunately, it appears that any walkback brings
>>> |>  | down nginx, although I
>>> |>  | have installed the production error handler.
>>> |>  |
>>> |>  |   Does anyone have a little script that will restart the
>>> |>  |   WAFastCGIAdaptor?
>>> |>  | I apologize for being such a terrible Unix hacker.
>>> |>  |
>>> |>  |   Regards,
>>> |>  |
>>> |>  |   Larry
>>> |>  |
>>> |>  |
>>> |>  |
>>> |
>>> |
>>
>

12