Hi,
i have a Gemstone update to the last ConfigurationOfGsSOAP project version: '0.232' .
i read : FastCGI ServerFor FastCGI you need to edit your Apache (or lighttpd) config to route all requests to a single server. You also need to stop any FastCGI gems that may be running (you can use the Stop Seaside gems command on the Admin… menu). Then run the following expression to start a FastCGI server listening on port 9001 in your development vm: FSSeasideHandler startUp: 9001 First: when, into the gemstone workspace, i do the command: FSSeasideHandler startUp: 9001 the pharo system d'ont return anything and i can't submit any other command. I need to down and restart the pharo image. The seaside web request work fine. How i can start the system for manage standard and SOAP request ? Second: On my server i load lighttpd web server. I do some configuration for manage fastcgi request but i d'ont found the solution. After do the commands: ( into gemstone workspace ) SoapExampleClient hostAddress: 'www.mysever.com' SoapSetting defaultPort: 9001 SoapSetting defaultSendingPort: 9001 SoapExampleClient port: 9001 SoapInteropServiceImpl registerAllServices.
(Delay forMilliseconds: 100) wait. when submit the soap request: SoapExampleClient new callHelloWorld the system erase the error: HyHTTPParseError: HTTP Version malformed. No leading "HTTP/"., 1, 'HTTP Version malformed. No leading "HTTP/".' Someone can help me with a fastcgi lighttpd configuration example for manage SOAP request ? Any pointers would be greatly appreciated ! Thank, Dario |
On Mon, May 3, 2010 at 5:50 AM, Dario Trussardi
<[hidden email]> wrote: > Hi, > i have a Gemstone update to the last ConfigurationOfGsSOAP project version: > '0.232' . > > From > http://gemstonesoup.wordpress.com/2009/04/15/glass-beta-update-working-with-soap-preview/ > i read : > > FastCGI Server > > For FastCGI you need to edit your Apache (or lighttpd) config to route all > requests to a single server. You also need to stop any FastCGI gems that may > be running (you can use the Stop Seaside gems command on the Admin… menu). > Then run the following expression to start a FastCGI server listening on > port 9001 in your development vm: > > FSSeasideHandler startUp: 9001 > > First: > when, into the gemstone workspace, i do the command: FSSeasideHandler > startUp: 9001 > the pharo system d'ont return anything and i can't submit any other > command. its a blocking call that waits on the process to return, this would be normal. > I need to down and restart the pharo image. > The seaside web request work fine. > How i can start the system for manage standard and SOAP request ? > Write a script that does it for you using topaz. Assuming you are using the standard 2.8 setup, something like this init.d script should do the trick: #!/bin/sh ### BEGIN INIT INFO # Provides: gemstone-fastcgi # Required-Start: $local_fs $remote_fs # Required-Stop: $local_fs $remote_fs # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: FastCGI Gemstone Service # Description: Starts FastCGI Gemstone GS/SS service # ### END INIT INFO # Author: clayton cottingham <[hidden email]> # Do NOT "set -e" # PATH should only include /usr/* if it runs after the mountnfs.sh script PATH=/sbin:/usr/sbin:/bin:/usr/bin DESC="FastCGI Gemstone Service" NAME=gs_fastcgi DAEMON=/opt/gemstone/product/seaside/bin/runSeasideGems SCRIPTNAME=/etc/init.d/$NAME RUNASUSER=ah DEFSEASIDE=/opt/gemstone/product/seaside/defSeaside # Read configuration variable file if it is present [ -r /etc/default/$NAME ] && . /etc/default/$NAME # Load the VERBOSE setting and other rcS variables . /lib/init/vars.sh # Define LSB log_* functions. # Depend on lsb-base (>= 3.0-6) to ensure that this file is present. . /lib/lsb/init-functions # Exit if the package is not installed if [ ! -x "$DAEMON" ] ; then log_failure_msg "DAEMON DOES NOT EXIST" exit 0 fi # exit if no user is set if [ ! $RUNASUSER ] ; then log_failure_msg "RUNASUSER NOT SET" exit 3 fi # also check user exists if [ ! `grep "^$RUNASUSER:" /etc/passwd` ] ; then log_failure_msg "USER DOESNT EXIST" exit 3 fi # source the seaside environment if it exists if [ ! -r $DEFSEASIDE ] ; then log_failure_msg "Seaside ENV script doesnt exists at $DEFSEASIDE" exit 3 fi . $DEFSEASIDE # Function that starts the daemon/service do_start() { su $RUNASUSER -c "$DAEMON start" } # Function that stops the daemon/service do_stop() { $DAEMON stop } case "$1" in start) [ "$VERBOSE" != no ] && log_daemon_msg "Starting $DESC" "$NAME" do_start case "$?" in 0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;; 2) [ "$VERBOSE" != no ] && log_end_msg 1 ;; esac ;; stop) [ "$VERBOSE" != no ] && log_daemon_msg "Stopping $DESC" "$NAME" do_stop case "$?" in 0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;; 2) [ "$VERBOSE" != no ] && log_end_msg 1 ;; esac ;; restart|force-reload|reload) # If the "reload" option is implemented then remove the # 'force-reload' alias log_daemon_msg "Restarting $DESC" "$NAME" "NO Reload for $NAME" do_stop case "$?" in 0|1) do_start case "$?" in 0) log_end_msg 0 ;; 1) log_end_msg 1 ;; # Old process is still running *) log_end_msg 1 ;; # Failed to start esac ;; *) # Failed to stop log_end_msg 1 ;; esac ;; status) echo "NONE AVAIL AT THIS TIME" exit 3 ;; *) log_action_msg "Usage: $SCRIPTNAME {start|stop|restart|reload|force-reload|status}" >&2 exit 3 ;; esac : |
Sean,
i'm very interested to test the SOAP support into GLASS but i found some problem. My Linux knowledge is very limited ............ About your indications: I create a GemstoneFastCGI script file with your script text and save it into gemstone/product/EnvironmentA/ bin directory. ( i update the path in the script with EnvironmentA ) I change the main script for start the Gemstone stone with $Gemstone/EnvironmentA/ bin/GemstoneFastCGI start. When do it the script answer the error : * USER DOESNT EXIST I change the RUNASUSER= entry to 'dario' ( my profile ) and the terminal now report: /opt/gemstone/product/EnironmentA/defSeaside: 30 Bad substitution. How i can run this script ? I'm very sorry, but you can help me ? Thanks, Dario I i > <[hidden email]> wrote: >> Hi, >> i have a Gemstone update to the last ConfigurationOfGsSOAP project version: >> '0.232' . >> >> From >> http://gemstonesoup.wordpress.com/2009/04/15/glass-beta-update-working-with-soap-preview/ >> i read : >> >> FastCGI Server >> >> For FastCGI you need to edit your Apache (or lighttpd) config to route all >> requests to a single server. You also need to stop any FastCGI gems that may >> be running (you can use the Stop Seaside gems command on the Admin… menu). >> Then run the following expression to start a FastCGI server listening on >> port 9001 in your development vm: >> >> FSSeasideHandler startUp: 9001 >> >> First: >> when, into the gemstone workspace, i do the command: FSSeasideHandler >> startUp: 9001 >> the pharo system d'ont return anything and i can't submit any other >> command. > > its a blocking call that waits on the process to return, this would be normal. > >> I need to down and restart the pharo image. >> The seaside web request work fine. >> How i can start the system for manage standard and SOAP request ? >> > > Write a script that does it for you using topaz. > Assuming you are using the standard 2.8 setup, something like this > init.d script should do the trick: > > #!/bin/sh > ### BEGIN INIT INFO > # Provides: gemstone-fastcgi > # Required-Start: $local_fs $remote_fs > # Required-Stop: $local_fs $remote_fs > # Default-Start: 2 3 4 5 > # Default-Stop: 0 1 6 > # Short-Description: FastCGI Gemstone Service > # Description: Starts FastCGI Gemstone GS/SS service > # > ### END INIT INFO > > # Author: clayton cottingham <[hidden email]> > > # Do NOT "set -e" > > # PATH should only include /usr/* if it runs after the mountnfs.sh script > PATH=/sbin:/usr/sbin:/bin:/usr/bin > DESC="FastCGI Gemstone Service" > NAME=gs_fastcgi > DAEMON=/opt/gemstone/product/seaside/bin/runSeasideGems > SCRIPTNAME=/etc/init.d/$NAME > RUNASUSER=ah > DEFSEASIDE=/opt/gemstone/product/seaside/defSeaside > > # Read configuration variable file if it is present > [ -r /etc/default/$NAME ] && . /etc/default/$NAME > > # Load the VERBOSE setting and other rcS variables > . /lib/init/vars.sh > > # Define LSB log_* functions. > # Depend on lsb-base (>= 3.0-6) to ensure that this file is present. > . /lib/lsb/init-functions > > # Exit if the package is not installed > if [ ! -x "$DAEMON" ] ; > then > log_failure_msg "DAEMON DOES NOT EXIST" > exit 0 > fi > > # exit if no user is set > if [ ! $RUNASUSER ] ; > then > log_failure_msg "RUNASUSER NOT SET" > exit 3 > fi > > # also check user exists > if [ ! `grep "^$RUNASUSER:" /etc/passwd` ] ; > then > log_failure_msg "USER DOESNT EXIST" > exit 3 > fi > > # source the seaside environment if it exists > if [ ! -r $DEFSEASIDE ] ; > then > log_failure_msg "Seaside ENV script doesnt exists at $DEFSEASIDE" > exit 3 > fi > > . $DEFSEASIDE > > # Function that starts the daemon/service > do_start() > { > su $RUNASUSER -c "$DAEMON start" > } > > # Function that stops the daemon/service > do_stop() > { > $DAEMON stop > } > > case "$1" in > start) > [ "$VERBOSE" != no ] && log_daemon_msg "Starting $DESC" "$NAME" > do_start > case "$?" in > 0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;; > 2) [ "$VERBOSE" != no ] && log_end_msg 1 ;; > esac > ;; > stop) > [ "$VERBOSE" != no ] && log_daemon_msg "Stopping $DESC" "$NAME" > do_stop > case "$?" in > 0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;; > 2) [ "$VERBOSE" != no ] && log_end_msg 1 ;; > esac > ;; > > restart|force-reload|reload) > > # If the "reload" option is implemented then remove the > # 'force-reload' alias > > log_daemon_msg "Restarting $DESC" "$NAME" "NO Reload for $NAME" > do_stop > case "$?" in > 0|1) > do_start > case "$?" in > 0) log_end_msg 0 ;; > 1) log_end_msg 1 ;; # Old process is still running > *) log_end_msg 1 ;; # Failed to start > esac > ;; > > *) > # Failed to stop > log_end_msg 1 > ;; > esac > ;; > > status) > echo "NONE AVAIL AT THIS TIME" > exit 3 > ;; > *) > log_action_msg "Usage: $SCRIPTNAME > {start|stop|restart|reload|force-reload|status}" >&2 > exit 3 > ;; > esac > > : |
First question, seaside 3 or 2.8?
That script is an init.d script that would go in: /etc/init.d/ and be setup to run on startup using ( after installation ) sudo chmod a+x /etc/init.d/gs_fastcgi ( above assumes you name it gs_fastcgi ) sudo update-rc.d -f gs_fastcgi start 40 2 3 4 5 . stop 15 0 1 6 . ( note the periods are important ) it should then start gs_fastcgi on startup. On Mon, May 3, 2010 at 11:54 AM, Dario Trussardi <[hidden email]> wrote: > Sean, > > i'm very interested to test the SOAP support into GLASS but i found some problem. > > > My Linux knowledge is very limited ............ > > About your indications: > > I create a GemstoneFastCGI script file with your script text and save it into gemstone/product/EnvironmentA/ bin directory. > ( i update the path in the script with EnvironmentA ) > > > I change the main script for start the Gemstone stone with $Gemstone/EnvironmentA/ bin/GemstoneFastCGI start. > > When do it the script answer the error : * USER DOESNT EXIST > > I change the RUNASUSER= entry to 'dario' ( my profile ) and the terminal now report: > > /opt/gemstone/product/EnironmentA/defSeaside: 30 Bad substitution. > > How i can run this script ? > > I'm very sorry, but you can help me ? > > Thanks, > > Dario > > I > i >> <[hidden email]> wrote: >>> Hi, >>> i have a Gemstone update to the last ConfigurationOfGsSOAP project version: >>> '0.232' . >>> >>> From >>> http://gemstonesoup.wordpress.com/2009/04/15/glass-beta-update-working-with-soap-preview/ >>> i read : >>> >>> FastCGI Server >>> >>> For FastCGI you need to edit your Apache (or lighttpd) config to route all >>> requests to a single server. You also need to stop any FastCGI gems that may >>> be running (you can use the Stop Seaside gems command on the Admin… menu). >>> Then run the following expression to start a FastCGI server listening on >>> port 9001 in your development vm: >>> >>> FSSeasideHandler startUp: 9001 >>> >>> First: >>> when, into the gemstone workspace, i do the command: FSSeasideHandler >>> startUp: 9001 >>> the pharo system d'ont return anything and i can't submit any other >>> command. >> >> its a blocking call that waits on the process to return, this would be normal. >> >>> I need to down and restart the pharo image. >>> The seaside web request work fine. >>> How i can start the system for manage standard and SOAP request ? >>> >> >> Write a script that does it for you using topaz. >> Assuming you are using the standard 2.8 setup, something like this >> init.d script should do the trick: >> >> #!/bin/sh >> ### BEGIN INIT INFO >> # Provides: gemstone-fastcgi >> # Required-Start: $local_fs $remote_fs >> # Required-Stop: $local_fs $remote_fs >> # Default-Start: 2 3 4 5 >> # Default-Stop: 0 1 6 >> # Short-Description: FastCGI Gemstone Service >> # Description: Starts FastCGI Gemstone GS/SS service >> # >> ### END INIT INFO >> >> # Author: clayton cottingham <[hidden email]> >> >> # Do NOT "set -e" >> >> # PATH should only include /usr/* if it runs after the mountnfs.sh script >> PATH=/sbin:/usr/sbin:/bin:/usr/bin >> DESC="FastCGI Gemstone Service" >> NAME=gs_fastcgi >> DAEMON=/opt/gemstone/product/seaside/bin/runSeasideGems >> SCRIPTNAME=/etc/init.d/$NAME >> RUNASUSER=ah >> DEFSEASIDE=/opt/gemstone/product/seaside/defSeaside >> >> # Read configuration variable file if it is present >> [ -r /etc/default/$NAME ] && . /etc/default/$NAME >> >> # Load the VERBOSE setting and other rcS variables >> . /lib/init/vars.sh >> >> # Define LSB log_* functions. >> # Depend on lsb-base (>= 3.0-6) to ensure that this file is present. >> . /lib/lsb/init-functions >> >> # Exit if the package is not installed >> if [ ! -x "$DAEMON" ] ; >> then >> log_failure_msg "DAEMON DOES NOT EXIST" >> exit 0 >> fi >> >> # exit if no user is set >> if [ ! $RUNASUSER ] ; >> then >> log_failure_msg "RUNASUSER NOT SET" >> exit 3 >> fi >> >> # also check user exists >> if [ ! `grep "^$RUNASUSER:" /etc/passwd` ] ; >> then >> log_failure_msg "USER DOESNT EXIST" >> exit 3 >> fi >> >> # source the seaside environment if it exists >> if [ ! -r $DEFSEASIDE ] ; >> then >> log_failure_msg "Seaside ENV script doesnt exists at $DEFSEASIDE" >> exit 3 >> fi >> >> . $DEFSEASIDE >> >> # Function that starts the daemon/service >> do_start() >> { >> su $RUNASUSER -c "$DAEMON start" >> } >> >> # Function that stops the daemon/service >> do_stop() >> { >> $DAEMON stop >> } >> >> case "$1" in >> start) >> [ "$VERBOSE" != no ] && log_daemon_msg "Starting $DESC" "$NAME" >> do_start >> case "$?" in >> 0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;; >> 2) [ "$VERBOSE" != no ] && log_end_msg 1 ;; >> esac >> ;; >> stop) >> [ "$VERBOSE" != no ] && log_daemon_msg "Stopping $DESC" "$NAME" >> do_stop >> case "$?" in >> 0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;; >> 2) [ "$VERBOSE" != no ] && log_end_msg 1 ;; >> esac >> ;; >> >> restart|force-reload|reload) >> >> # If the "reload" option is implemented then remove the >> # 'force-reload' alias >> >> log_daemon_msg "Restarting $DESC" "$NAME" "NO Reload for $NAME" >> do_stop >> case "$?" in >> 0|1) >> do_start >> case "$?" in >> 0) log_end_msg 0 ;; >> 1) log_end_msg 1 ;; # Old process is still running >> *) log_end_msg 1 ;; # Failed to start >> esac >> ;; >> >> *) >> # Failed to stop >> log_end_msg 1 >> ;; >> esac >> ;; >> >> status) >> echo "NONE AVAIL AT THIS TIME" >> exit 3 >> ;; >> *) >> log_action_msg "Usage: $SCRIPTNAME >> {start|stop|restart|reload|force-reload|status}" >&2 >> exit 3 >> ;; >> esac >> >> : > > |
Hi,
> First question, seaside 3 or 2.8? I load Seaside2.8g1-jgf.630 into Gemstone. What change from 2.8 to 3.0 in this contest ? > > That script is an init.d script that would go in: > > /etc/init.d/ and be setup to run on startup using ( after installation ) > > sudo chmod a+x /etc/init.d/gs_fastcgi > > ( above assumes you name it gs_fastcgi ) > > sudo update-rc.d -f gs_fastcgi start 40 2 3 4 5 . stop 15 0 1 6 . > > ( note the periods are important ) > > it should then start gs_fastcgi on startup. > I follow your instruction and restart the system. In the Monitor processor i don't found any gs_..... process name. It's correct ? In general what is the configurations step to test the SOAP support ? Thanks, Dario > On Mon, May 3, 2010 at 11:54 AM, Dario Trussardi > <[hidden email]> wrote: >> Sean, >> >> i'm very interested to test the SOAP support into GLASS but i found some problem. >> >> >> My Linux knowledge is very limited ............ >> >> About your indications: >> >> I create a GemstoneFastCGI script file with your script text and save it into gemstone/product/EnvironmentA/ bin directory. >> ( i update the path in the script with EnvironmentA ) >> >> >> I change the main script for start the Gemstone stone with $Gemstone/EnvironmentA/ bin/GemstoneFastCGI start. >> >> When do it the script answer the error : * USER DOESNT EXIST >> >> I change the RUNASUSER= entry to 'dario' ( my profile ) and the terminal now report: >> >> /opt/gemstone/product/EnironmentA/defSeaside: 30 Bad substitution. >> >> How i can run this script ? >> >> I'm very sorry, but you can help me ? >> >> Thanks, >> >> Dario >> >> I >> i >>> <[hidden email]> wrote: >>>> Hi, >>>> i have a Gemstone update to the last ConfigurationOfGsSOAP project version: >>>> '0.232' . >>>> >>>> From >>>> http://gemstonesoup.wordpress.com/2009/04/15/glass-beta-update-working-with-soap-preview/ >>>> i read : >>>> >>>> FastCGI Server >>>> >>>> For FastCGI you need to edit your Apache (or lighttpd) config to route all >>>> requests to a single server. You also need to stop any FastCGI gems that may >>>> be running (you can use the Stop Seaside gems command on the Admin… menu). >>>> Then run the following expression to start a FastCGI server listening on >>>> port 9001 in your development vm: >>>> >>>> FSSeasideHandler startUp: 9001 >>>> >>>> First: >>>> when, into the gemstone workspace, i do the command: FSSeasideHandler >>>> startUp: 9001 >>>> the pharo system d'ont return anything and i can't submit any other >>>> command. >>> >>> its a blocking call that waits on the process to return, this would be normal. >>> >>>> I need to down and restart the pharo image. >>>> The seaside web request work fine. >>>> How i can start the system for manage standard and SOAP request ? >>>> >>> >>> Write a script that does it for you using topaz. >>> Assuming you are using the standard 2.8 setup, something like this >>> init.d script should do the trick: >>> >>> #!/bin/sh >>> ### BEGIN INIT INFO >>> # Provides: gemstone-fastcgi >>> # Required-Start: $local_fs $remote_fs >>> # Required-Stop: $local_fs $remote_fs >>> # Default-Start: 2 3 4 5 >>> # Default-Stop: 0 1 6 >>> # Short-Description: FastCGI Gemstone Service >>> # Description: Starts FastCGI Gemstone GS/SS service >>> # >>> ### END INIT INFO >>> >>> # Author: clayton cottingham <[hidden email]> >>> >>> # Do NOT "set -e" >>> >>> # PATH should only include /usr/* if it runs after the mountnfs.sh script >>> PATH=/sbin:/usr/sbin:/bin:/usr/bin >>> DESC="FastCGI Gemstone Service" >>> NAME=gs_fastcgi >>> DAEMON=/opt/gemstone/product/seaside/bin/runSeasideGems >>> SCRIPTNAME=/etc/init.d/$NAME >>> RUNASUSER=ah >>> DEFSEASIDE=/opt/gemstone/product/seaside/defSeaside >>> >>> # Read configuration variable file if it is present >>> [ -r /etc/default/$NAME ] && . /etc/default/$NAME >>> >>> # Load the VERBOSE setting and other rcS variables >>> . /lib/init/vars.sh >>> >>> # Define LSB log_* functions. >>> # Depend on lsb-base (>= 3.0-6) to ensure that this file is present. >>> . /lib/lsb/init-functions >>> >>> # Exit if the package is not installed >>> if [ ! -x "$DAEMON" ] ; >>> then >>> log_failure_msg "DAEMON DOES NOT EXIST" >>> exit 0 >>> fi >>> >>> # exit if no user is set >>> if [ ! $RUNASUSER ] ; >>> then >>> log_failure_msg "RUNASUSER NOT SET" >>> exit 3 >>> fi >>> >>> # also check user exists >>> if [ ! `grep "^$RUNASUSER:" /etc/passwd` ] ; >>> then >>> log_failure_msg "USER DOESNT EXIST" >>> exit 3 >>> fi >>> >>> # source the seaside environment if it exists >>> if [ ! -r $DEFSEASIDE ] ; >>> then >>> log_failure_msg "Seaside ENV script doesnt exists at $DEFSEASIDE" >>> exit 3 >>> fi >>> >>> . $DEFSEASIDE >>> >>> # Function that starts the daemon/service >>> do_start() >>> { >>> su $RUNASUSER -c "$DAEMON start" >>> } >>> >>> # Function that stops the daemon/service >>> do_stop() >>> { >>> $DAEMON stop >>> } >>> >>> case "$1" in >>> start) >>> [ "$VERBOSE" != no ] && log_daemon_msg "Starting $DESC" "$NAME" >>> do_start >>> case "$?" in >>> 0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;; >>> 2) [ "$VERBOSE" != no ] && log_end_msg 1 ;; >>> esac >>> ;; >>> stop) >>> [ "$VERBOSE" != no ] && log_daemon_msg "Stopping $DESC" "$NAME" >>> do_stop >>> case "$?" in >>> 0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;; >>> 2) [ "$VERBOSE" != no ] && log_end_msg 1 ;; >>> esac >>> ;; >>> >>> restart|force-reload|reload) >>> >>> # If the "reload" option is implemented then remove the >>> # 'force-reload' alias >>> >>> log_daemon_msg "Restarting $DESC" "$NAME" "NO Reload for $NAME" >>> do_stop >>> case "$?" in >>> 0|1) >>> do_start >>> case "$?" in >>> 0) log_end_msg 0 ;; >>> 1) log_end_msg 1 ;; # Old process is still running >>> *) log_end_msg 1 ;; # Failed to start >>> esac >>> ;; >>> >>> *) >>> # Failed to stop >>> log_end_msg 1 >>> ;; >>> esac >>> ;; >>> >>> status) >>> echo "NONE AVAIL AT THIS TIME" >>> exit 3 >>> ;; >>> *) >>> log_action_msg "Usage: $SCRIPTNAME >>> {start|stop|restart|reload|force-reload|status}" >&2 >>> exit 3 >>> ;; >>> esac >>> >>> : >> >> |
On Tue, May 4, 2010 at 4:04 AM, Dario Trussardi
<[hidden email]> wrote: > Hi, > >> First question, seaside 3 or 2.8? > > I load Seaside2.8g1-jgf.630 into Gemstone. > > What change from 2.8 to 3.0 in this contest ? > >> >> That script is an init.d script that would go in: >> >> /etc/init.d/ and be setup to run on startup using ( after installation ) >> >> sudo chmod a+x /etc/init.d/gs_fastcgi >> >> ( above assumes you name it gs_fastcgi ) >> >> sudo update-rc.d -f gs_fastcgi start 40 2 3 4 5 . stop 15 0 1 6 . >> >> ( note the periods are important ) >> >> it should then start gs_fastcgi on startup. >> > > I follow your instruction and restart the system. > > In the Monitor processor i don't found any gs_..... process name. because it isnt a process, its just a script that runs a gemstone script to startup fast cgi. You can test it from the command line by doing sudo /etc/init.d/gs_fastcgi stop sudo /etc/init.d/gs_fastcgi start > > It's correct ? > > In general what is the configurations step to test the SOAP support ? > When you install SOAP support, it doesnt automatically startup a SOAP server. No assumption is made about whether you want SOAP client support or SOAP server support. Check out the SOAP examples ( there is a class category for them ) for how to do a client and a server. If you want to run your own SOAP server, you would need to always start by hand from either topaz or gemtools or have a script that does it for you. |
Thanks Sean,
I need to change the RUNASUSER= ah to ....??? ..... ? I have two environment . First environment On Mac i have a Gemstone with Hyper Server started on port 50081. I open two pharo image and the relative GemTools. In the first gemtools , the Server i do: SoapExampleServiceImpl registerAllServices (Delay forMilliseconds: 100) wait. In the second gemtools, the Client i do: SoapExampleClient new callTimeNow This last command go in 'loop' and answer only when in the server i do a SoapExampleClient request and the system open a dialog with "auto commited failed ". How i wrong ? Second environment I have a stone run on Ubuntu with lighttpd web server. I'm interested to setup it how Soap server.
The script gs_fastcgi do it ? How i read from Gemstonesoup: For FastCGI you need to edit your Apache (or lighttpd) config to route all requests to a single server. I have do some lighttpd configuration test but i don't find how intercept the SOAP request and redirect it. Which point ( fastcgi - lighttpd - stone server ......???????? ) are involve in the right configurations ? Any pointers would be greatly appreciated ! Dario |
On Tue, May 4, 2010 at 9:47 AM, Dario Trussardi
<[hidden email]> wrote: > Thanks Sean, > > On Tue, May 4, 2010 at 4:04 AM, Dario Trussardi > <[hidden email]> wrote: > > Hi, > > First question, seaside 3 or 2.8? > > I load Seaside2.8g1-jgf.630 into Gemstone. > > What change from 2.8 to 3.0 in this contest ? > > > That script is an init.d script that would go in: > > /etc/init.d/ and be setup to run on startup using ( after installation ) > > sudo chmod a+x /etc/init.d/gs_fastcgi > > ( above assumes you name it gs_fastcgi ) > > sudo update-rc.d -f gs_fastcgi start 40 2 3 4 5 . stop 15 0 1 6 . > > ( note the periods are important ) > > it should then start gs_fastcgi on startup. > > > I follow your instruction and restart the system. > > In the Monitor processor i don't found any gs_..... process name. > > because it isnt a process, its just a script that runs a gemstone script > to startup fast cgi. You can test it from the command line by doing > > sudo /etc/init.d/gs_fastcgi stop > sudo /etc/init.d/gs_fastcgi start > > When do this command i found the error: * USER DOESNT EXIST > I need to change the RUNASUSER= ah to ....??? ..... ? > > right you need to change that ah to whatever user you want to run fast cgi as. in the appliance, that would be user 'glass' |
In reply to this post by dario trussardi
>
> > > I have two environment . > > First environment > On Mac i have a Gemstone with Hyper Server started on port 50081. > I open two pharo image and the relative GemTools. > In the first gemtools , the Server i do: > SoapExampleServiceImpl registerAllServices > (Delay forMilliseconds: 100) wait. > > In the second gemtools, the Client i do: > SoapExampleClient new callTimeNow > This last command go in 'loop' and answer only when in the server i do > a SoapExampleClient request and the system open a dialog with "auto > commited failed ". > How i wrong ? > Sorry I dont follow what you setup is. What are the pharo images? gemtools configured ones? > > > Second environment > > I have a stone run on Ubuntu with lighttpd web server. > I'm interested to setup it how Soap server. > > > It's correct ? > > In general what is the configurations step to test the SOAP support ? > > > When you install SOAP support, it doesnt automatically startup a SOAP > server. > No assumption is made about whether you want SOAP client support or SOAP > server > support. Check out the SOAP examples ( there is a class category for them ) > for > how to do a client and a server. > > If you want to run your own SOAP server, > you would need to always start by hand from either topaz or gemtools or > have a script that does it for you. > > The script gs_fastcgi do it ? > > No that is just for fast cgi which has nothing to do with SOAP. SOAP is entirely seperate. > How i read from Gemstonesoup: > For FastCGI you need to edit your Apache (or lighttpd) config to route all > requests to a single server. > I have do some lighttpd configuration test but i don't find how intercept > the SOAP request and redirect it. > Which point ( fastcgi - lighttpd - stone server ......???????? ) are > involve in the right configurations ? If you want to have a server in front of the SOAP, you would need to proxt requests from lighttpd/nginx/apache to the port your SOAP server is listening on. |
In reply to this post by SeanTAllen
Sean,
> On Tue, May 4, 2010 at 9:47 AM, Dario Trussardi > <[hidden email]> wrote: >> Thanks Sean, >> >> On Tue, May 4, 2010 at 4:04 AM, Dario Trussardi >> <[hidden email]> wrote: >> >> Hi, >> >> First question, seaside 3 or 2.8? >> >> I load Seaside2.8g1-jgf.630 into Gemstone. >> >> What change from 2.8 to 3.0 in this contest ? >> >> >> That script is an init.d script that would go in: >> >> /etc/init.d/ and be setup to run on startup using ( after installation ) >> >> sudo chmod a+x /etc/init.d/gs_fastcgi >> >> ( above assumes you name it gs_fastcgi ) >> >> sudo update-rc.d -f gs_fastcgi start 40 2 3 4 5 . stop 15 0 1 6 . >> >> ( note the periods are important ) >> >> it should then start gs_fastcgi on startup. >> >> >> I follow your instruction and restart the system. >> >> In the Monitor processor i don't found any gs_..... process name. >> >> because it isnt a process, its just a script that runs a gemstone script >> to startup fast cgi. You can test it from the command line by doing >> >> sudo /etc/init.d/gs_fastcgi stop >> sudo /etc/init.d/gs_fastcgi start >> >> When do this command i found the error: * USER DOESNT EXIST >> I need to change the RUNASUSER= ah to ....??? ..... ? >> >> > > right you need to change that ah to whatever user you want to run fast cgi as. > > in the appliance, that would be user 'glass' In change it to 'myname' my user profile name. Now when do a command: sudo /etc/init.d/gs_fastcgi start i found the error : /opt/gemstone/product/EnvironmentA/defSeaside: 30: Bad substitution ( I have some stone environment on the same server. Now i work whit EnvironmentA with specific directory e files ) Dario |
can you do: ls -al /bin/sh
and let me know what the output is? On Tue, May 4, 2010 at 10:58 AM, Dario Trussardi <[hidden email]> wrote: > Sean, > >> On Tue, May 4, 2010 at 9:47 AM, Dario Trussardi >> <[hidden email]> wrote: >>> Thanks Sean, >>> >>> On Tue, May 4, 2010 at 4:04 AM, Dario Trussardi >>> <[hidden email]> wrote: >>> >>> Hi, >>> >>> First question, seaside 3 or 2.8? >>> >>> I load Seaside2.8g1-jgf.630 into Gemstone. >>> >>> What change from 2.8 to 3.0 in this contest ? >>> >>> >>> That script is an init.d script that would go in: >>> >>> /etc/init.d/ and be setup to run on startup using ( after installation ) >>> >>> sudo chmod a+x /etc/init.d/gs_fastcgi >>> >>> ( above assumes you name it gs_fastcgi ) >>> >>> sudo update-rc.d -f gs_fastcgi start 40 2 3 4 5 . stop 15 0 1 6 . >>> >>> ( note the periods are important ) >>> >>> it should then start gs_fastcgi on startup. >>> >>> >>> I follow your instruction and restart the system. >>> >>> In the Monitor processor i don't found any gs_..... process name. >>> >>> because it isnt a process, its just a script that runs a gemstone script >>> to startup fast cgi. You can test it from the command line by doing >>> >>> sudo /etc/init.d/gs_fastcgi stop >>> sudo /etc/init.d/gs_fastcgi start >>> >>> When do this command i found the error: * USER DOESNT EXIST >>> I need to change the RUNASUSER= ah to ....??? ..... ? >>> >>> >> >> right you need to change that ah to whatever user you want to run fast cgi as. >> >> in the appliance, that would be user 'glass' > > > In change it to 'myname' my user profile name. > > Now when do a command: sudo /etc/init.d/gs_fastcgi start > > > i found the error : > > /opt/gemstone/product/EnvironmentA/defSeaside: 30: Bad substitution > > ( I have some stone environment on the same server. Now i work whit EnvironmentA with specific directory e files ) > > Dario > > > > > > |
Sean,
lrwxrwxrwx 1 root root 4 2008-04-06 14:40 /bin/sh -> dash
|
In reply to this post by SeanTAllen
Sean
I found this example: proxy.server = ( ".jsp" => ( ( "host" => "10.0.0.242", "port" => 81 ) ) ) but don't test the port 8823. Any idea... Dario |
In reply to this post by dario trussardi
All the gemstone scripts and the scripts I provided to start
everything up expect that you are using bash not dash as your default system shell. That is why there is a note in my how to build your own appliance directions NOT to do the optional make dash my default shell. You are going to find lots of shell scripts for linux expect /bin/sh to point to bash not dash. Dash has fewer features and is thus faster, but I personally have never had an issue with a bash script executing too slowly. I have had issues with scripts not working with dash so I dont use it. You can either change all #!/bin/sh at the start of shell scripts with #/bin/bash which might solve your problems ( or not I havent tried ) or you can switch /bin/sh from being dash to being bash. On Tue, May 4, 2010 at 12:49 PM, Dario Trussardi <[hidden email]> wrote: > Sean, > > can you do: ls -al /bin/sh > > and let me know what the output is? > > lrwxrwxrwx 1 root root 4 2008-04-06 14:40 /bin/sh -> dash > > On Tue, May 4, 2010 at 10:58 AM, Dario Trussardi > <[hidden email]> wrote: > > Sean, > > On Tue, May 4, 2010 at 9:47 AM, Dario Trussardi > > <[hidden email]> wrote: > > Thanks Sean, > > On Tue, May 4, 2010 at 4:04 AM, Dario Trussardi > > <[hidden email]> wrote: > > Hi, > > First question, seaside 3 or 2.8? > > I load Seaside2.8g1-jgf.630 into Gemstone. > > What change from 2.8 to 3.0 in this contest ? > > > That script is an init.d script that would go in: > > /etc/init.d/ and be setup to run on startup using ( after installation ) > > sudo chmod a+x /etc/init.d/gs_fastcgi > > ( above assumes you name it gs_fastcgi ) > > sudo update-rc.d -f gs_fastcgi start 40 2 3 4 5 . stop 15 0 1 6 . > > ( note the periods are important ) > > it should then start gs_fastcgi on startup. > > > I follow your instruction and restart the system. > > In the Monitor processor i don't found any gs_..... process name. > > because it isnt a process, its just a script that runs a gemstone script > > to startup fast cgi. You can test it from the command line by doing > > sudo /etc/init.d/gs_fastcgi stop > > sudo /etc/init.d/gs_fastcgi start > > When do this command i found the error: * USER DOESNT EXIST > > I need to change the RUNASUSER= ah to ....??? ..... ? > > > > right you need to change that ah to whatever user you want to run fast cgi > as. > > in the appliance, that would be user 'glass' > > > In change it to 'myname' my user profile name. > > Now when do a command: sudo /etc/init.d/gs_fastcgi start > > > i found the error : > > /opt/gemstone/product/EnvironmentA/defSeaside: 30: Bad substitution > > ( I have some stone environment on the same server. Now i work whit > EnvironmentA with specific directory e files ) > > Dario > > > > > > > > |
In reply to this post by dario trussardi
On Tue, May 4, 2010 at 1:25 PM, Dario Trussardi
<[hidden email]> wrote: > > Sean > > > > I have two environment . > > First environment > > On Mac i have a Gemstone with Hyper Server started on port 50081. > > I open two pharo image and the relative GemTools. > > In the first gemtools , the Server i do: > > SoapExampleServiceImpl registerAllServices > > (Delay forMilliseconds: 100) wait. > > In the second gemtools, the Client i do: > > SoapExampleClient new callTimeNow > > This last command go in 'loop' and answer only when in the server i do > > a SoapExampleClient request and the system open a dialog with "auto > > commited failed ". > > How i wrong ? > > > Sorry I dont follow what you setup is. > > What are the pharo images? gemtools configured ones? > > It's two separated Pharo image ( see http://pharo-project.org/home.) with > gemtools support. > > > > > Second environment > > I have a stone run on Ubuntu with lighttpd web server. > > I'm interested to setup it how Soap server. > > > It's correct ? > > In general what is the configurations step to test the SOAP support ? > > > When you install SOAP support, it doesnt automatically startup a SOAP > > server. > > No assumption is made about whether you want SOAP client support or SOAP > > server > > support. Check out the SOAP examples ( there is a class category for them ) > > for > > how to do a client and a server. > > If you want to run your own SOAP server, > > you would need to always start by hand from either topaz or gemtools or > > have a script that does it for you. > > The script gs_fastcgi do it ? > > > > No that is just for fast cgi which has nothing to do with SOAP. > SOAP is entirely seperate. > > How i read from Gemstonesoup: > > For FastCGI you need to edit your Apache (or lighttpd) config to route all > > requests to a single server. > > I have do some lighttpd configuration test but i don't find how intercept > > the SOAP request and redirect it. > > Which point ( fastcgi - lighttpd - stone server ......???????? ) are > > involve in the right configurations ? > > If you want to have a server in front of the SOAP, you would need to > proxt requests > from lighttpd/nginx/apache to the port your SOAP server is listening on. > > I found this example: > proxy.server = ( ".jsp" => > > ( ( > "host" => "10.0.0.242", > "port" => 81 > ) ) > ) > > but don't test the port 8823. > Any idea... > Dario > > I dont understand, what do you mean? What port are you starting the SOAP server on? |
Sean,
> On Tue, May 4, 2010 at 1:25 PM, Dario Trussardi > <[hidden email]> wrote: >> >> Sean >> >> >> >> I have two environment . >> >> First environment >> >> On Mac i have a Gemstone with Hyper Server started on port 50081. >> >> I open two pharo image and the relative GemTools. >> >> In the first gemtools , the Server i do: >> >> SoapExampleServiceImpl registerAllServices >> >> (Delay forMilliseconds: 100) wait. >> >> In the second gemtools, the Client i do: >> >> SoapExampleClient new callTimeNow >> >> This last command go in 'loop' and answer only when in the server i do >> >> a SoapExampleClient request and the system open a dialog with "auto >> >> commited failed ". >> >> How i wrong ? >> >> >> Sorry I dont follow what you setup is. >> >> What are the pharo images? gemtools configured ones? >> >> It's two separated Pharo image ( see http://pharo-project.org/home.) with >> gemtools support. >> >> >> >> >> Second environment >> >> I have a stone run on Ubuntu with lighttpd web server. >> >> I'm interested to setup it how Soap server. >> >> >> It's correct ? >> >> In general what is the configurations step to test the SOAP support ? >> >> >> When you install SOAP support, it doesnt automatically startup a SOAP >> >> server. >> >> No assumption is made about whether you want SOAP client support or SOAP >> >> server >> >> support. Check out the SOAP examples ( there is a class category for them ) >> >> for >> >> how to do a client and a server. >> >> If you want to run your own SOAP server, >> >> you would need to always start by hand from either topaz or gemtools or >> >> have a script that does it for you. >> >> The script gs_fastcgi do it ? >> >> >> >> No that is just for fast cgi which has nothing to do with SOAP. >> SOAP is entirely seperate. But this script is the equivalent of the command: $GEMSTONE/EnvironmentA/bin/runSeasideGems start. The difference is the automatic launch at startup. or i wrong ? >> >> How i read from Gemstonesoup: >> >> For FastCGI you need to edit your Apache (or lighttpd) config to route all >> >> requests to a single server. >> >> I have do some lighttpd configuration test but i don't find how intercept >> >> the SOAP request and redirect it. >> >> Which point ( fastcgi - lighttpd - stone server ......???????? ) are >> >> involve in the right configurations ? >> >> If you want to have a server in front of the SOAP, you would need to >> proxt requests >> from lighttpd/nginx/apache to the port your SOAP server is listening on. >> >> I found this example: >> proxy.server = ( ".jsp" => >> >> ( ( >> "host" => "10.0.0.242", >> "port" => 81 >> ) ) >> ) >> >> but don't test the port 8823. >> Any idea... >> Dario >> >> > > I dont understand, what do you mean? > > What port are you starting the SOAP server on? Into gemtools relative to stone run on Ubuntu with lighttpd web server, i do the command: FSSeasideHandler startup: 9001. The pharo system d'ont return anything and i can't submit any other command. The seaside web request work fine. How i can startup this service with a script ? From another image gemtools workspace i do the commands: SoapExampleClient hostAddress: 'www.mysever.com' SoapExampleClient port: 9001 when submit the soap request: SoapExampleClient new callHelloWorld the system erase the error: HyHTTPParseError: HTTP Version malformed. No leading "HTTP/"., 1, 'HTTP Version malformed. No leading "HTTP/".' This means that the stone server answer a the SOAP client request ? If yes, because this error ? I have some entry in lighttpd.conf file to intercept the seaside web application request and go it on the gems. fastcgi.server =( "/selection" -> ( "host" => "192.168.1.100" , "port" => 9001, "Check-local" => "disable", "mode" => "responder" ) I not understand how lighttpd server need configurated to manage the SOAP request. Thanks for any considerations . Dario |
On Tue, May 4, 2010 at 3:46 PM, Dario Trussardi
<[hidden email]> wrote: >>> No that is just for fast cgi which has nothing to do with SOAP. >>> SOAP is entirely seperate. > > But this script is the equivalent of the command: > > $GEMSTONE/EnvironmentA/bin/runSeasideGems start. > > The difference is the automatic launch at startup. > > or i wrong ? correct but it doesnt start SOAP. |
In reply to this post by dario trussardi
On Tue, May 4, 2010 at 3:46 PM, Dario Trussardi
<[hidden email]> wrote: >> I dont understand, what do you mean? >> >> What port are you starting the SOAP server on? > > Into gemtools relative to stone run on Ubuntu with lighttpd web server, > > i do the command: FSSeasideHandler startup: 9001. > > > The pharo system d'ont return anything and i can't submit any other command. > > The seaside web request work fine. > > How i can startup this service with a script ? because that is a blocking command. starting any server in gemstone will result in it blocking. you cant do anything else because your process is tied up listening for requests. You can write a topaz script that will do the same thing. Look at start gems, its a topaz script. If you do: ps aux | grep topaz after running the start gems script that gemstone supplies, you will see that those topaz processes are still running because they started a server that is listening for requests. > > > > > From another image gemtools workspace i do the commands: > > SoapExampleClient hostAddress: 'www.mysever.com' > > SoapExampleClient port: 9001 > > > when submit the soap request: > > SoapExampleClient new callHelloWorld > > the system erase the error: HyHTTPParseError: HTTP Version malformed. No leading "HTTP/"., 1, 'HTTP Version malformed. No leading "HTTP/".' > > > This means that the stone server answer a the SOAP client request ? > Debug it. It sounds like a client side error. And just to make sure, you don't have swazoo installed right? Just hyper? Not both? Because they don't play nice together and you will get all sorts of weird errors. I have a version of the Soap Client that works in the same gemstone image as swazoo, haven't tested the server. > > I have some entry in lighttpd.conf file to intercept the seaside web application request and go it on the gems. > > fastcgi.server =( "/selection" -> ( "host" => "192.168.1.100" , "port" => 9001, "Check-local" => "disable", "mode" => "responder" ) Fast cgi has nothing to do with SOAP. Are you trying to access SOAP on 9001 or Seaside? They are two totally different things that you seem to be confusing with one another. Seaside has nothing to do with SOAP at all. |
Sean, i'm confusing.
How i read from Gemstonesoap GLASS Beta Update: Working with SOAP (Preview)Then run the following expression to start a FastCGI server listening on port 9001 in your development vm: FSSeasideHandler startUp: 9001. Therefore this don't start SOAP service. This start a "FastCGI server" ready to manage fastcgi request on port 9001. It's right ? For start a SOAP server i do: SoapSetting defaultPort: 9001 SoapExampleServiceImpl registerAllServices (Delay forMilliseconds: 100) wait. It's right ? For setup SOAP client request i do: SoapExampleClient hostAddress: 'www.myserver.com' SoapExampleClient port: 9001 It's right ? For do SOAP request i do:
SoapExampleClient new callHelloWorld It's right ? I test it and i found the same error.
No, i don't have any swazoo category.
If yes how i can configure lighttpd to do it ?
Thanks, Dario |
On Tue, May 4, 2010 at 5:37 PM, Dario Trussardi
<[hidden email]> wrote: > > Sean, > i'm confusing. > > What port are you starting the SOAP server on? > > Into gemtools relative to stone run on Ubuntu with lighttpd web server, > > i do the command: FSSeasideHandler startup: 9001. > > > The pharo system d'ont return anything and i can't submit any other > command. > > The seaside web request work fine. > > How i can startup this service with a script ? > > > How i read from Gemstonesoap > > GLASS Beta Update: Working with SOAP (Preview) > > Then run the following expression to start a FastCGI server listening on > port 9001 in your development vm: > > FSSeasideHandler startUp: 9001. > > Therefore this don't start SOAP service. > This start a "FastCGI server" ready to manage fastcgi request on port 9001. > It's right ? > > > For start a SOAP server i do: > SoapSetting defaultPort: 9001 > SoapExampleServiceImpl registerAllServices > (Delay forMilliseconds: 100) wait. > It's right ? > > > For setup SOAP client request i do: > SoapExampleClient hostAddress: 'www.myserver.com' > SoapExampleClient port: 9001 > It's right ? > > For do SOAP request i do: SoapExampleClient new callHelloWorld > It's right ? > You tried to start multiple things on a single port. Only one application can listen on a single port. So if you start the fast cgi service on port 9001, you cant then start a SOAP server on that port. > Because they don't play nice together and you will get all sorts of > weird errors. > > No, i don't have any swazoo category. > > I have a version of the Soap Client that works in the same gemstone > image as swazoo, haven't tested the server. > > > I have some entry in lighttpd.conf file to intercept the seaside web > application request and go it on the gems. > > fastcgi.server =( "/selection" -> ( "host" => "192.168.1.100" , > "port" => 9001, "Check-local" => "disable", "mode" => "responder" ) > This is for a fast cgi server. If you start the soap server on port 9001 and then tell the client to connect to port 9001, then there is no proxy server needed. So, dont start fast cgi on the same port as the soap server and you dont need lighttpd if you are trying to connect directly to the soap server. |
Free forum by Nabble | Edit this page |