Installing Servoy on Linux in 10 seconds !!

A nice thought and one that would be really helpful RIGHT NOW !!

OK so I followed the instructions on the servoy blog here

http://blog.servoy.com/2010/11/03/insta … 0-seconds/

…and sure enough it does as it suggests and runs throughout the installer in the terminal and all looks fine ! BUT for some reason Servoy does not want to start. I have had a look a the processes running and it appears that neither Servoy or Postgresql are running despite the ./servoy_server.sh & from correct directory.

SO the questions are:

  1. Can anyone show me where this

postgres_db/bin/pg_ctl start -D database -l
postgres_db/postgres_log.txt

Needs to be inserted into:

#!/bin/sh                                                                           

while true
do
        java -Djava.awt.headless=true -Xmx1280m -Xms64m -XX:MaxPermSize=128m -class\
path .:lib/activation.jar:lib/antlr.jar:lib/apache-mime4j.jar:lib/BrowserLauncher2.\
jar:lib/commons-codec.jar:lib/commons-collections.jar:lib/commons-dbcp.jar:lib/comm\
ons-fileupload.jar:lib/commons-io.jar:lib/commons-logging.jar:lib/commons-pool.jar:\
lib/dom4j.jar:lib/hibernate3.jar:lib/httpclient.jar:lib/httpclient-cache.jar:lib/ht\
tpcore.jar:lib/httpmime.jar:lib/j2db.jar:lib/j2dbdev.jar:lib/jabsorb.jar:lib/javass\
ist.jar:lib/jcifs.jar:lib/joda-time.jar:lib/js.jar:lib/jta.jar:lib/jug.jar:lib/log4\
j.jar:lib/mail.jar:lib/MRJAdapter.jar:lib/networktnl.jar:lib/rmitnl.jar:lib/server-\
bootstrap.jar:lib/servlet-api.jar:lib/slf4j-api.jar:lib/slf4j-log4j.jar:lib/wicket.\
jar:lib/wicket-calendar.jar:lib/wicket-extentions.jar com.servoy.j2db.server.main.A\
pplicationServer "$@" 1>> server.log 2>> server.log
        EXITCODE=$?
        if [ "$EXITCODE" != 99 ]; then exit $EXITCODE; fi
done
  1. Is it possible to run both Servoy 5.2 and 6 on the same machine

Really urgently need to get this running so any help from Servoy would be GREAT !!

Cheers
Gordon

Gordon,

ad 1)
The postgres start command needs to go before the line with while:

#!/bin/sh                                                                           

postgres_db/bin/pg_ctl start -D database -l postgres_db/postgres_log.txt

while true
do
     ....

ad 2)
You can run any number of Servoy instances with any version on the same machine, but you will have to configure them so that they do not conflict in port usage

http://wiki.servoy.com/display/public/D … 1510C753F0

Hope this helps,

Rob

Hi Rob

Thanks for the prompt reply, I have slotted in the required string and its started PostgreSQL, but for some reason I am still not getting a response from Servoy. The following is a clip of the processes running on the machine if you have ideas I would be very interested !!

ubuntu@ebs-servoy:~/servoy_6/application_server$ ps -A
  PID TTY          TIME CMD
    1 ?        00:00:00 init
    2 ?        00:00:00 kthreadd
    3 ?        00:00:00 ksoftirqd/0
    4 ?        00:00:00 kworker/0:0
    5 ?        00:00:00 kworker/u:0
    6 ?        00:00:00 migration/0
    7 ?        00:00:00 cpuset
    8 ?        00:00:00 khelper
    9 ?        00:00:00 netns
   10 ?        00:00:00 xenwatch
   11 ?        00:00:00 xenbus
   12 ?        00:00:00 sync_supers
   13 ?        00:00:00 bdi-default
   14 ?        00:00:00 kintegrityd
   15 ?        00:00:00 kblockd
   16 ?        00:00:00 ata_sff
   17 ?        00:00:00 khubd
   18 ?        00:00:00 md
   19 ?        00:00:00 kworker/0:1
   20 ?        00:00:00 kworker/u:1
   22 ?        00:00:00 khungtaskd
   23 ?        00:00:00 kswapd0
   24 ?        00:00:00 ksmd
   25 ?        00:00:00 fsnotify_mark
   26 ?        00:00:00 aio
   27 ?        00:00:00 ecryptfs-kthrea
   28 ?        00:00:00 crypto
   32 ?        00:00:00 kthrotld
   34 ?        00:00:00 khvcd
   35 ?        00:00:00 kmpathd
   36 ?        00:00:00 kmpath_handlerd
   37 ?        00:00:00 kondemand
   38 ?        00:00:00 kconservative
  147 ?        00:00:00 jbd2/xvda1-8
  148 ?        00:00:00 ext4-dio-unwrit
  196 ?        00:00:00 upstart-udev-br
  206 ?        00:00:00 udevd
  264 ?        00:00:00 udevd
  265 ?        00:00:00 udevd
  343 ?        00:00:00 portmap
  375 ?        00:00:00 upstart-socket-
  381 ?        00:00:00 dhclient3
  536 ?        00:00:00 rsyslogd
  544 ?        00:00:00 sshd
  548 ?        00:00:00 dbus-daemon
  570 ?        00:00:00 avahi-daemon
  571 ?        00:00:00 rpc.statd
  574 ?        00:00:00 avahi-daemon
  583 ?        00:00:00 kjournald
  585 ?        00:00:00 rpciod
  595 ?        00:00:00 nfsiod
  596 ?        00:00:00 nfsv4.0-svc
  624 tty4     00:00:00 getty
  629 tty5     00:00:00 getty
  632 tty2     00:00:00 getty
  633 tty3     00:00:00 getty
  639 tty6     00:00:00 getty
  647 ?        00:00:00 cron
  648 ?        00:00:00 atd
  662 ?        00:00:00 mysqld
  710 tty1     00:00:00 getty
  777 ?        00:00:00 sshd
  806 ?        00:00:00 sshd
  807 pts/0    00:00:00 bash
  903 ?        00:00:00 flush-202:1
  934 pts/0    00:00:00 postgres
  945 ?        00:00:00 postgres
  946 ?        00:00:00 postgres
  947 ?        00:00:00 postgres
  948 ?        00:00:00 postgres
  952 pts/0    00:00:00 ps
[2]+  Exit 1                  ./servoy_server.sh
ubuntu@ebs-servoy:~/servoy_6/application_server$

Not entirely sure what this means has Servoy quit ??

[2]+ Exit 1 ./servoy_server.sh

Best
Gordon

[2]+ Exit 1 ./servoy_server.sh

Yes, this means that the process has been terminated, check the servoy_log.txt and server.log to see why. Probably it’s because you don’t have the Repository tables in your database.
To create the repository tables start Servoy like this:

./servoy_server.sh -upgradeRepository

It will create the necessary tables and quit, start it again normally and it should be ok.

Hi Nicola

Thanks very much for that - never ceases to amaze me how often I miss the most blindingly obvious things - kinda hard for Servoy to run with no data even if the database is there !!

Best wishes
Gordon