Notes on ruote-web2 Windows install

5 views
Skip to first unread message

Coondog

unread,
Apr 3, 2009, 3:07:44 PM4/3/09
to Ruote (OpenWFEru) users
Hello RuoteFolks-

I'm keen to take a look at your working examples, since I think this
looks awesome.

However, I'm beholden to Windoze. Since Git support and integration in
the Win IDEs (I've got both Netbeans6.5 and RadRails1.3) basically
blows, the default install instructions from http://github.com/jmettraux/ruote-web2/tree/master
failed for me @ rake submodule:install.

<btw, I'm Ruby 1.8.6 & Rails 2.3.2, atop InstantRails 2.0, using
Netbeans6.5 fyi>

I dug into ruote.rake and simply manually followed these steps you so
kindly automated (with evil Git commands):

1) download git://github.com/jmettraux/ruote.git, and copy into ruote-
web2/vendor/ruote_plugin/

2) following through ruote.rake, next command was to place fluo-
can.js, fluo-json.js & fluo-tred.js into ruote-web2/public/javascripts
--> cool beans, they're already there (somehow). Already downloaded
ruote-fluo, but okay.

3) to complete '>>rake gems:install' I had to edit ruote-web2/
environment.rb to add the following line (to circumvent a HOME
undefined error):
ENV['HOME'] = 'c:\dev\InstantRails\rails_apps\ruote-web2'

4) created db (rake db:create)

5) I had to edit config/initializer/participant.rb to comment out the
sample participant because it was erroring out my attempts to
db:migrate

6) rake db:migrate

7) rake db:fixtures:load FIXTURE_PATH=db/dev_fixtures

And at long last

8) script/server & live at http://127.0.0.1:3000/session/new -- whew!

Been running a brief while now, and most features appear to be
working. Except I know better than to rename 'admins' now.

Downloading 700mb of Git install turned out to be a complete waste of
time for me, though I'll likely start using it locally for my own
version control. Hope these steps spare any other n00bs that time in
the future.

Cheers-
--Jeff

John Mettraux

unread,
Apr 3, 2009, 8:48:03 PM4/3/09
to openwfe...@googlegroups.com
On Sat, Apr 4, 2009 at 4:07 AM, Coondog <jefe...@gmail.com> wrote:
>
> I'm keen to take a look at your working examples, since I think this
> looks awesome.
>
> However, I'm beholden to Windoze. Since Git support and integration in
> the Win IDEs (I've got both Netbeans6.5 and RadRails1.3) basically
> blows, the default install instructions from http://github.com/jmettraux/ruote-web2/tree/master
> failed for me @ rake submodule:install.

Hello Jeff,

thanks a lot for sharing your "process".

Which version of Git are you using. IIRC, "submodule" are a feature of
Git 1.6.x, it doesn't work with git 1.5.x

(I will add a warning about that to the install procedure on github).


> <btw, I'm Ruby 1.8.6 & Rails 2.3.2, atop InstantRails 2.0, using
> Netbeans6.5 fyi>
>
> I dug into ruote.rake and simply manually followed these steps you so
> kindly automated (with evil Git commands):
>
> 1) download git://github.com/jmettraux/ruote.git, and copy into ruote-
> web2/vendor/ruote_plugin/
>
> 2) following through ruote.rake, next command was to place fluo-
> can.js, fluo-json.js & fluo-tred.js into ruote-web2/public/javascripts
> --> cool beans, they're already there (somehow).  Already downloaded
> ruote-fluo, but okay.

This "fetch_fluo" task is not run on install, I provide it as an easy
way for people to upgrade their ruote-fluo when there are changes in
it.

> 3) to complete '>>rake gems:install' I had to edit ruote-web2/
> environment.rb to add the following line (to circumvent a HOME
> undefined error):
>   ENV['HOME'] = 'c:\dev\InstantRails\rails_apps\ruote-web2'
>
> 4) created db (rake db:create)
>
> 5) I had to edit config/initializer/participant.rb to comment out the
> sample participant because it was erroring out my attempts to
> db:migrate
>
> 6) rake db:migrate
>
> 7) rake db:fixtures:load FIXTURE_PATH=db/dev_fixtures
>
> And at long last
>
> 8) script/server & live at http://127.0.0.1:3000/session/new  -- whew!
>
> Been running a brief while now, and most features appear to be
> working.  Except I know better than to rename 'admins' now.
>
> Downloading 700mb of Git install turned out to be a complete waste of
> time for me, though I'll likely start using it locally for my own
> version control.  Hope these steps spare any other n00bs that time in
> the future.

Thanks a lot Jeff, I will immediately write something about git 1.5.x
/ 1.6.x on the ruote-web2 install procedure.


Best regards,

--
John Mettraux - http://jmettraux.wordpress.com

Coondog

unread,
Apr 6, 2009, 12:49:32 PM4/6/09
to Ruote (OpenWFEru) users
Hi John-

I installed MSysGit v 1.6.1 from <http://code.google.com/p/msysgit/
downloads/list>. As such, I _think_ this is Git 1.6.x including
submodule, et al. I couldn't get these commands to work from a rails
console, in either NetBeans or RadRails. Generally speaking I've
found RadRails integration of command-line better, so I expected it to
work there.

So, a bit more time consuming, but a lot _less_ time consuming than
trying to write my own OpenWfeRu/Rufus/Ruote sample app.

Cheers & best-
--Jeff

On Apr 3, 5:48 pm, John Mettraux <jmettr...@openwfe.org> wrote:
> On Sat, Apr 4, 2009 at 4:07 AM, Coondog <jefec...@gmail.com> wrote:
>
> > I'm keen to take a look at your working examples, since I think this
> > looks awesome.
>
> > However, I'm beholden to Windoze. Since Git support and integration in
> > the Win IDEs (I've got both Netbeans6.5 and RadRails1.3) basically
> > blows, the default install instructions fromhttp://github.com/jmettraux/ruote-web2/tree/master
> > 8) script/server & live athttp://127.0.0.1:3000/session/new -- whew!

Coondog

unread,
Apr 8, 2009, 6:50:15 PM4/8/09
to Ruote (OpenWFEru) users
Hello again John & RuoteCo.

Fired up (my supposed 'install') of ruote-web2, created some
additional users & groups, got them connected, and went to start
kicking off processes to work through so I can learn more about the
process, err, 'processing.'

Unfortunately, my apparent 'install' seems to have some core issue in
launching the actual OpenWfeRu/Ruote engine:
> from /definitions
> select 'Launch' process of either of the pre-installed procs (simple sequence or leave request)
> taken to /processes/new, and I enter some simple sample data for 'leave request' [ alice, 20090415, 20090411, 'visit family']
> click "launch new process instance" button
> able to see the page change briefly, i assume to package the request, then receive
RuntimeError in ProcessesController#create
:remote_definitions_allowed is set to false

trace::
C:/dev/InstantRails/rails_apps/ruote-web2/vendor/plugins/ruote/lib/
openwfe/expool/def_parser.rb:83:in `read_uri'
C:/dev/InstantRails/rails_apps/ruote-web2/vendor/plugins/ruote/lib/
openwfe/engine/launch_methods.rb:192:in `prepare_raw_expression'
C:/dev/InstantRails/rails_apps/ruote-web2/vendor/plugins/ruote/lib/
openwfe/engine/launch_methods.rb:96:in `launch'
C:/dev/InstantRails/rails_apps/ruote-web2/app/controllers/
processes_controller.rb:137:in `create'

request params::
{"commit"=>"launch new process instance",
"fields"=>{"employee"=>"alice",
"to_date"=>"20090415",
"from_date"=>"20090411",
"reason"=>"visit family"},
"authenticity_token"=>"qYBGPK/MK1f0/nGCm9BI2wgWnTus0ffKfpEZaNpGBhA=",
"definition_id"=>"4",
"definition_url"=>"C:/dev/InstantRails/rails_apps/ruote-web2/public/
defs/leave_request1.rb"}

I've googled and found the 'examples/engine_template.rb' which
provides:
#application_context[:remote_definitions_allowed] = true
#
# unless this parameter is set to true, the engine will not accept
# to launch processes whose definition is given by a URL, only
# local process definitions (file:) or direct process definitions
# will be allowed.

However, given my rather awkward/cumbersome/goofy steps to try to get
ruote-web2 running, methinks I may have missed something rather
substantial, e.g. _not_ actually correctly incorporating open-wfe/
ruote/?

Any words of wisdom (aside from 'spend the time to download *nix and
rebuild your dev environment there so you don't have to put up with
Windows & all its baggage in this area) would be greatly appreciated.
Til then, think it's time to fire up my other sys and see if I can get
Ubuntu to (finally) install a working wireless driver so I can get all
LAMPyRoRy like all the kool kids.

Thanks much-
--Jeff

John Mettraux

unread,
Apr 8, 2009, 7:12:05 PM4/8/09
to openwfe...@googlegroups.com
On Thu, Apr 9, 2009 at 7:50 AM, Coondog <jefe...@gmail.com> wrote:
>
> RuntimeError in ProcessesController#create
> :remote_definitions_allowed is set to false
>
> trace::
> C:/dev/InstantRails/rails_apps/ruote-web2/vendor/plugins/ruote/lib/
> openwfe/expool/def_parser.rb:83:in `read_uri'
> C:/dev/InstantRails/rails_apps/ruote-web2/vendor/plugins/ruote/lib/
> openwfe/engine/launch_methods.rb:192:in `prepare_raw_expression'
> C:/dev/InstantRails/rails_apps/ruote-web2/vendor/plugins/ruote/lib/
> openwfe/engine/launch_methods.rb:96:in `launch'
> C:/dev/InstantRails/rails_apps/ruote-web2/app/controllers/
> processes_controller.rb:137:in `create'
>
> request params::
> {"commit"=>"launch new process instance",
>  "fields"=>{"employee"=>"alice",
>  "to_date"=>"20090415",
>  "from_date"=>"20090411",
>  "reason"=>"visit family"},
>  "authenticity_token"=>"qYBGPK/MK1f0/nGCm9BI2wgWnTus0ffKfpEZaNpGBhA=",
>  "definition_id"=>"4",
>  "definition_url"=>"C:/dev/InstantRails/rails_apps/ruote-web2/public/
> defs/leave_request1.rb"}

Hello Jeff,

Ah OK, C:/..., the engine thinks it's a remote thing / URI.


> However, given my rather awkward/cumbersome/goofy steps to try to get
> ruote-web2 running, methinks I may have missed something rather
> substantial, e.g. _not_ actually correctly incorporating open-wfe/
> ruote/?

No, you haven't missed anything.

Feel free to set :remote_definitions_allowed to true in
vendor/plugins/ruote_plugin/init.rb

h[:remote_definitions_allowed] = true

until I fix this issue :

http://rubyforge.org/tracker/index.php?func=detail&aid=25301&group_id=2609&atid=10023


Thanks for your efforts, best regards,

Coondog

unread,
Apr 8, 2009, 9:48:30 PM4/8/09
to Ruote (OpenWFEru) users
Hello again John-

Thanks for the quick response; much appreciated.

I've added
h[:remote_definitions_allowed] = true
to my /vendor/plugins/ruote_plugin/init.

Rebooted server, attempted to launch same process, and received:
RuntimeError in ProcessesController#create
can't handle scheme 'C' for C:/dev/InstantRails/rails_apps/ruote-
web2/public/defs/leave_request1.rb

This may be the same c:\... being perceived as some alien being issue.

Thanks again-
--Jeff


On Apr 8, 4:12 pm, John Mettraux <jmettr...@openwfe.org> wrote:
>  http://rubyforge.org/tracker/index.php?func=detail&aid=25301&group_id...

John Mettraux

unread,
Apr 10, 2009, 4:59:52 AM4/10/09
to openwfe...@googlegroups.com
On Thu, Apr 9, 2009 at 10:48 AM, Coondog <jefe...@gmail.com> wrote:
>
> Rebooted server, attempted to launch same process, and received:
>  RuntimeError in ProcessesController#create
>  can't handle scheme 'C' for C:/dev/InstantRails/rails_apps/ruote-
> web2/public/defs/leave_request1.rb
>
> This may be the same c:\... being perceived as some alien being issue.

Hello Jeff,

I committed a tentative fix :
http://github.com/jmettraux/ruote/commit/40ebd454af2e709a0a8a131f3127bfb01b8acfb4

If you have some time, could you tell me if it works for you ?


Thanks in advance,

Coondog

unread,
Apr 10, 2009, 3:54:03 PM4/10/09
to Ruote (OpenWFEru) users
Hi John-

Thanks for taking the time to try to resolve this.

I downloaded the updated rev of Ruote from Github, then manually
copied it into my existing ruote-web2 directory, as both
/vendor/ruote_plugin &
/vendor/plugins/ruote

Also uninstalled the ruote 0.9.20 gem (from this working rubygems
path).

Then started my rw2 server, and tried to launch a process; received:
RuntimeError in ProcessesController#create
can't handle scheme 'C' for C:/dev/InstantRails/rails_apps/ruote-
web2/public/defs/ft_flow1.xml

c:/dev/InstantRails/ruby/lib/ruby/gems/1.8/gems/rufus-verbs-0.10/
lib/rufus/verbs.rb:127:in `fopen'
C:/dev/InstantRails/rails_apps/ruote-web2/vendor/plugins/ruote/
lib/openwfe/expool/def_parser.rb:91:in `read_uri'
C:/dev/InstantRails/rails_apps/ruote-web2/vendor/plugins/ruote/
lib/openwfe/engine/launch_methods.rb:192:in `prepare_raw_expression'
C:/dev/InstantRails/rails_apps/ruote-web2/vendor/plugins/ruote/
lib/openwfe/engine/launch_methods.rb:96:in `launch'
C:/dev/InstantRails/rails_apps/ruote-web2/app/controllers/
processes_controller.rb:137:in `create'

Tried a few diff things, none of which got around this error (not
surprisingly).

Also have installed Wubi/Ubuntu8.10 on my system; unfortunately chose
to use 'latest' Ruby, 1.9.1... seems the hot new goodness in town has
all sorts of deprecations & other issues, e.g. no longer supporting
MD5 in Digest, which is raising all sorts of havoc. Lunchtime, then
likely to boot into Ubuntu, remove all evidence of RoR, and start over
there from scratch with ruby 1.8.7 + rails 2.3.2 and see if I can
experiment with ruote-web2 there. Perfectly happy to try further
debug steps on Win if you'd like though.

Cheers & best-
--Jeff

On Apr 10, 1:59 am, John Mettraux <jmettr...@openwfe.org> wrote:
> On Thu, Apr 9, 2009 at 10:48 AM, Coondog <jefec...@gmail.com> wrote:
>
> > Rebooted server, attempted to launch same process, and received:
> >  RuntimeError in ProcessesController#create
> >  can't handle scheme 'C' for C:/dev/InstantRails/rails_apps/ruote-
> > web2/public/defs/leave_request1.rb
>
> > This may be the same c:\... being perceived as some alien being issue.
>
> Hello Jeff,
>
> I committed a tentative fix :http://github.com/jmettraux/ruote/commit/40ebd454af2e709a0a8a131f3127...

Freddy Peña

unread,
Apr 16, 2009, 7:22:54 PM4/16/09
to Ruote (OpenWFEru) users
Hi John,

Sorry for pushing this issue, I'm kinda experiencing it too and can't
find a fix. I've tried the "h[:remote_definitions_allowed] = true" fix
and some workarounds like using an absolute URI (http://localhost:3000/
defs/leave_request1.rb) and it seemed to work, however, rails started
complaining with "marshal data too short", which I think it's about
the data in the "work_*" folder being corrupted.

I'd very much appreciate some pointers for fixing this.

Thanks for your time spent into this.


On Apr 10, 4:59 am, John Mettraux <jmettr...@openwfe.org> wrote:
> On Thu, Apr 9, 2009 at 10:48 AM, Coondog <jefec...@gmail.com> wrote:
>
> > Rebooted server, attempted to launch same process, and received:
> >  RuntimeError in ProcessesController#create
> >  can't handle scheme 'C' for C:/dev/InstantRails/rails_apps/ruote-
> > web2/public/defs/leave_request1.rb
>
> > This may be the same c:\... being perceived as some alien being issue.
>
> Hello Jeff,
>
> I committed a tentative fix :http://github.com/jmettraux/ruote/commit/40ebd454af2e709a0a8a131f3127...

John Mettraux

unread,
Apr 16, 2009, 7:26:38 PM4/16/09
to openwfe...@googlegroups.com
On Fri, Apr 17, 2009 at 8:22 AM, Freddy Peña <fredd...@gmail.com> wrote:
>
> Sorry for pushing this issue, I'm kinda experiencing it too and can't
> find a fix. I've tried the "h[:remote_definitions_allowed] = true" fix
> and some workarounds like using an absolute URI (http://localhost:3000/
> defs/leave_request1.rb) and it seemed to work, however, rails started
> complaining with "marshal data too short", which I think it's about
> the data in the "work_*" folder being corrupted.
>
> I'd very much appreciate some pointers for fixing this.
>
> Thanks for your time spent into this.

Hello Freddy,

could I have the backtrace for "marshal data too short" ? Else I won't
be able to help you.

May I have some details about your windows version and your ruby
version ? Cygwin or ruby.exe something ?

Freddy Peña

unread,
Apr 16, 2009, 7:42:42 PM4/16/09
to Ruote (OpenWFEru) users
Hi John,

This happens when I launch a process instance with an URI like "http://
localhost:3000/defs/leave_request1.rb". Here's the App Trace:


-------------------------------

http://localhost:3001/processes/20090416-nakaditeza

ArgumentError in ProcessesController#show

marshal data too short

C:/instantrails/rails_apps/ruote-web2/vendor/plugins/ruote_plugin/
lib_ruote/openwfe/expool/fs_expstorage.rb:222:in `load'
C:/instantrails/rails_apps/ruote-web2/vendor/plugins/ruote_plugin/
lib_ruote/openwfe/expool/fs_expstorage.rb:222:in `load_fexp'
C:/instantrails/rails_apps/ruote-web2/vendor/plugins/ruote_plugin/
lib_ruote/openwfe/expool/fs_expstorage.rb:220:in `open'
C:/instantrails/rails_apps/ruote-web2/vendor/plugins/ruote_plugin/
lib_ruote/openwfe/expool/fs_expstorage.rb:220:in `load_fexp'
C:/instantrails/rails_apps/ruote-web2/vendor/plugins/ruote_plugin/
lib_ruote/openwfe/expool/fs_expstorage.rb:150:in `find_expressions'
C:/instantrails/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
31:in `inject'
C:/instantrails/rails_apps/ruote-web2/vendor/plugins/ruote_plugin/
lib_ruote/openwfe/expool/fs_expstorage.rb:148:in `each'
C:/instantrails/rails_apps/ruote-web2/vendor/plugins/ruote_plugin/
lib_ruote/openwfe/expool/fs_expstorage.rb:148:in `inject'
C:/instantrails/rails_apps/ruote-web2/vendor/plugins/ruote_plugin/
lib_ruote/openwfe/expool/fs_expstorage.rb:148:in `find_expressions'
C:/instantrails/rails_apps/ruote-web2/vendor/plugins/ruote_plugin/
lib_ruote/openwfe/expool/expstorage.rb:257:in `find_expressions'
C:/instantrails/rails_apps/ruote-web2/vendor/plugins/ruote_plugin/
lib_ruote/openwfe/engine/status_methods.rb:314:in `process_statuses'
C:/instantrails/rails_apps/ruote-web2/vendor/plugins/ruote_plugin/
lib_ruote/openwfe/engine/status_methods.rb:369:in `process_status'
C:/instantrails/rails_apps/ruote-web2/app/controllers/
processes_controller.rb:73:in `show'

-------------------------------

I'm using Windows XP SP2, Ruby 1.8.6, no cygwing (standalone Ruby
installation set in the PATH).

Thank you!




On Apr 16, 7:26 pm, John Mettraux <jmettr...@openwfe.org> wrote:

John Mettraux

unread,
Apr 16, 2009, 7:47:22 PM4/16/09
to openwfe...@googlegroups.com
On Fri, Apr 17, 2009 at 8:42 AM, Freddy Peña <fredd...@gmail.com> wrote:
>
> This happens when I launch a process instance with an URI like "http://
> localhost:3000/defs/leave_request1.rb". Here's the App Trace:
>
> ...

>
> http://localhost:3001/processes/20090416-nakaditeza
>
> ArgumentError in ProcessesController#show
>
> marshal data too short

Thanks for the information, what happens if you stop, erase work/ and
restart ? Does this "marshal data too short" come back ?

Freddy Peña

unread,
Apr 16, 2009, 7:56:12 PM4/16/09
to Ruote (OpenWFEru) users

On Apr 16, 7:47 pm, John Mettraux <jmettr...@openwfe.org> wrote:
> On Fri, Apr 17, 2009 at 8:42 AM, Freddy Peña <freddyp...@gmail.com> wrote:
>
> > This happens when I launch a process instance with an URI like "http://
> > localhost:3000/defs/leave_request1.rb". Here's the App Trace:
>
> > ...
>
> >http://localhost:3001/processes/20090416-nakaditeza
>
> > ArgumentError in ProcessesController#show
>
> > marshal data too short
>
> Thanks for the information, what happens if you stop, erase work/ and
> restart ? Does this "marshal data too short" come back ?
>

Nope, it doesn't. However, I get a "process launch failed" in the
application. Checking the "ar_workitems" table, the process was
actually created.

John Mettraux

unread,
Apr 16, 2009, 7:57:28 PM4/16/09
to openwfe...@googlegroups.com
On Fri, Apr 17, 2009 at 8:56 AM, Freddy Peña <fredd...@gmail.com> wrote:
>
> Nope, it doesn't. However, I get a "process launch failed" in the
> application. Checking the "ar_workitems" table, the process was
> actually created.

Thanks for the info, is there some information about the "process
launch failed" in the log ?

Freddy Peña

unread,
Apr 16, 2009, 8:06:53 PM4/16/09
to Ruote (OpenWFEru) users
Just made another attempt, here's the log:

--------------------------------------------

OpenWFE::ExpressionPool 's_expression_pool' - s_expression_pool
operation :apply on (fei 0.9.21 engine http://localhost:3001/defs/sequence1.rb
Sequence 1 20090417-dekejeba participant 0.1.0) failed with
exception : dead beef !
C:/instantrails/rails_apps/ruote-web2/config/initializers/
participants.rb:7
C:/instantrails/rails_apps/ruote-web2/vendor/plugins/ruote_plugin/
lib_ruote/openwfe/participants/participant.rb:121:in `call'
C:/instantrails/rails_apps/ruote-web2/vendor/plugins/ruote_plugin/
lib_ruote/openwfe/participants/participant.rb:121:in `call_block'
C:/instantrails/rails_apps/ruote-web2/vendor/plugins/ruote_plugin/
lib_ruote/openwfe/participants/participants.rb:154:in `consume'
C:/instantrails/rails_apps/ruote-web2/vendor/plugins/ruote_plugin/
lib_ruote/openwfe/participants/participant_map.rb:223:in `do_dispatch'
C:/instantrails/rails_apps/ruote-web2/vendor/plugins/ruote_plugin/
lib_ruote/openwfe/participants/participant_map.rb:180:in `dispatch'
C:/instantrails/rails_apps/ruote-web2/vendor/plugins/ruote_plugin/
lib_ruote/openwfe/participants/participant_map.rb:180:in `initialize'
C:/instantrails/rails_apps/ruote-web2/vendor/plugins/ruote_plugin/
lib_ruote/openwfe/participants/participant_map.rb:180:in `new'
C:/instantrails/rails_apps/ruote-web2/vendor/plugins/ruote_plugin/
lib_ruote/openwfe/participants/participant_map.rb:180:in `dispatch'
C:/instantrails/rails_apps/ruote-web2/vendor/plugins/ruote_plugin/
lib_ruote/openwfe/expressions/fe_participant.rb:142:in `apply'
C:/instantrails/rails_apps/ruote-web2/vendor/plugins/ruote_plugin/
lib_ruote/openwfe/expressions/raw.rb:71:in `apply'
C:/instantrails/rails_apps/ruote-web2/vendor/plugins/ruote_plugin/
lib_ruote/openwfe/expool/expressionpool.rb:781:in `send'
C:/instantrails/rails_apps/ruote-web2/vendor/plugins/ruote_plugin/
lib_ruote/openwfe/expool/expressionpool.rb:781:in `do_apply_reply'
C:/instantrails/rails_apps/ruote-web2/vendor/plugins/ruote_plugin/
lib_ruote/openwfe/util/workqueue.rb:64:in `send'
C:/instantrails/rails_apps/ruote-web2/vendor/plugins/ruote_plugin/
lib_ruote/openwfe/util/workqueue.rb:64:in `service_init'
C:/instantrails/rails_apps/ruote-web2/vendor/plugins/ruote_plugin/
lib_ruote/openwfe/util/workqueue.rb:59:in `loop'
C:/instantrails/rails_apps/ruote-web2/vendor/plugins/ruote_plugin/
lib_ruote/openwfe/util/workqueue.rb:59:in `service_init'
C:/instantrails/rails_apps/ruote-web2/vendor/plugins/ruote_plugin/
lib_ruote/openwfe/util/workqueue.rb:58:in `initialize'
C:/instantrails/rails_apps/ruote-web2/vendor/plugins/ruote_plugin/
lib_ruote/openwfe/util/workqueue.rb:58:in `new'
C:/instantrails/rails_apps/ruote-web2/vendor/plugins/ruote_plugin/
lib_ruote/openwfe/util/workqueue.rb:58:in `service_init'
C:/instantrails/rails_apps/ruote-web2/vendor/plugins/ruote_plugin/
lib_ruote/openwfe/service.rb:82:in `initialize'
C:/instantrails/rails_apps/ruote-web2/vendor/plugins/ruote_plugin/
lib_ruote/openwfe/contextual.rb:73:in `new'
C:/instantrails/rails_apps/ruote-web2/vendor/plugins/ruote_plugin/
lib_ruote/openwfe/contextual.rb:73:in `init_service'
C:/instantrails/rails_apps/ruote-web2/vendor/plugins/ruote_plugin/
lib_ruote/openwfe/engine/engine.rb:360:in `build_workqueue'
C:/instantrails/rails_apps/ruote-web2/vendor/plugins/ruote_plugin/
lib_ruote/openwfe/engine/engine.rb:125:in `initialize'
C:/instantrails/rails_apps/ruote-web2/vendor/plugins/ruote_plugin/lib/
ruote_plugin.rb:45:in `new'
C:/instantrails/rails_apps/ruote-web2/vendor/plugins/ruote_plugin/lib/
ruote_plugin.rb:45:in `engine_init'
C:/instantrails/rails_apps/ruote-web2/vendor/plugins/ruote_plugin/
init.rb:81:in `evaluate_init_rb'
C:/instantrails/ruby/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/rails/
plugin.rb:146:in `evaluate_init_rb'
C:/instantrails/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/
active_support/core_ext/kernel/reporting.rb:11:in `silence_warnings'
C:/instantrails/ruby/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/rails/
plugin.rb:142:in `evaluate_init_rb'
C:/instantrails/ruby/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/rails/
plugin.rb:48:in `load'
C:/instantrails/ruby/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/rails/
plugin/loader.rb:38:in `load_plugins'
C:/instantrails/ruby/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/rails/
plugin/loader.rb:37:in `each'
C:/instantrails/ruby/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/rails/
plugin/loader.rb:37:in `load_plugins'
C:/instantrails/ruby/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/
initializer.rb:348:in `load_plugins'
C:/instantrails/ruby/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/
initializer.rb:163:in `process'
C:/instantrails/ruby/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/
initializer.rb:113:in `send'
C:/instantrails/ruby/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/
initializer.rb:113:in `run'
C:/instantrails/rails_apps/ruote-web2/config/environment.rb:9
C:/instantrails/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
31:in `gem_original_require'
C:/instantrails/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
31:in `require'
C:/instantrails/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/
active_support/dependencies.rb:156:in `require'
C:/instantrails/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/
active_support/dependencies.rb:521:in `new_constants_in'
C:/instantrails/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/
active_support/dependencies.rb:156:in `require'
C:/instantrails/ruby/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/commands/
server.rb:84
C:/instantrails/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
31:in `gem_original_require'
C:/instantrails/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
31:in `require'
script/server:3

--------------------------------------------


On Apr 16, 7:57 pm, John Mettraux <jmettr...@openwfe.org> wrote:

John Mettraux

unread,
Apr 16, 2009, 8:23:33 PM4/16/09
to openwfe...@googlegroups.com
On Fri, Apr 17, 2009 at 9:06 AM, Freddy Peña <fredd...@gmail.com> wrote:
>
> Just made another attempt, here's the log:
>
> --------------------------------------------
>
> OpenWFE::ExpressionPool 's_expression_pool' - s_expression_pool
> operation :apply on (fei 0.9.21 engine http://localhost:3001/defs/sequence1.rb
> Sequence 1 20090417-dekejeba participant 0.1.0) failed with
> exception : dead beef !

argh, sorry.

in public/defs/sequence1.rb remove the participant "herr_murphy" line,
it's a test participant that triggers that "dead beef" error. It's on
purpose.

I shouldn't have committed that. So nothing wrong.


Best regards,

Freddy Peña

unread,
Apr 16, 2009, 8:39:26 PM4/16/09
to Ruote (OpenWFEru) users
On Apr 16, 8:23 pm, John Mettraux <jmettr...@openwfe.org> wrote:
> On Fri, Apr 17, 2009 at 9:06 AM, Freddy Peña <freddyp...@gmail.com> wrote:
>
> > Just made another attempt, here's the log:
>
> > --------------------------------------------
>
> > OpenWFE::ExpressionPool 's_expression_pool' - s_expression_pool
> > operation :apply on (fei 0.9.21 enginehttp://localhost:3001/defs/sequence1.rb
> > Sequence 1 20090417-dekejeba participant 0.1.0) failed with
> > exception : dead beef !
>
> argh, sorry.
>
> in public/defs/sequence1.rb remove the participant "herr_murphy" line,
> it's a test participant that triggers that "dead beef" error. It's on
> purpose.
>
> I shouldn't have committed that. So nothing wrong.
>


No harm done :). However, I'm afraid to say that it still can't launch
a process. Maybe we should focus back to the original
":remote_definitions_allowed is set to false" instead of the "marshal
data too short" issue? or is it supposed to work fine when I define a
process with "http://" URI's instead of "C:\"?

I'm sorry for all the inconveniences, and I'm really thankful for all
your time you've put into this.

John Mettraux

unread,
Apr 16, 2009, 8:41:19 PM4/16/09
to openwfe...@googlegroups.com
On Fri, Apr 17, 2009 at 9:39 AM, Freddy Peña <fredd...@gmail.com> wrote:
>
> No harm done :). However, I'm afraid to say that it still can't launch
> a process. Maybe we should focus back to the original
> ":remote_definitions_allowed is set to false" instead of the "marshal
> data too short" issue? or is it supposed to work fine when I define a
> process with "http://" URI's instead of "C:\"?

Hello Freddy,

OK, I found a windows laptop. Trying to install / test right now. I
hope to have a decent test environment soon.

I'll come back with results in this thread.


Thanks and best regards,

John Mettraux

unread,
Apr 17, 2009, 4:19:20 AM4/17/09
to openwfe...@googlegroups.com
On Fri, Apr 17, 2009 at 9:41 AM, John Mettraux <jmet...@openwfe.org> wrote:
> On Fri, Apr 17, 2009 at 9:39 AM, Freddy Peña <fredd...@gmail.com> wrote:
>>
>> No harm done :). However, I'm afraid to say that it still can't launch
>> a process. Maybe we should focus back to the original
>> ":remote_definitions_allowed is set to false" instead of the "marshal
>> data too short" issue? or is it supposed to work fine when I define a
>> process with "http://" URI's instead of "C:\"?

Hi Jeff + Freddy,

I now have a windows install and I think I have fixed the C:/ issue :
http://github.com/jmettraux/ruote/commit/f33623b6f72224325f883f7076e2c94391ea776a

I myself have an issue with mysql 5.0.77 and the gem mysql (version
2.7.3). Which version of this gem are you guys using ? (gem search
mysql). I will try with sqlite3 for now.


Best regards,

Freddy Peña

unread,
Apr 17, 2009, 10:17:08 AM4/17/09
to Ruote (OpenWFEru) users
Hello John,

Your fix seems to be working great now! Thanks!

As for mysql, I'm using MySQL 5.1.11 standard with the 2.7.3 gem.
Seems to be working fine. What issue are you having?

I'm still having the "marshal data too short" error, but I guess
that's just me (you didn't get it, right?). I'll look into it.

Again, thanks for your hard work.


On Apr 17, 4:19 am, John Mettraux <jmettr...@openwfe.org> wrote:
> On Fri, Apr 17, 2009 at 9:41 AM, John Mettraux <jmettr...@openwfe.org> wrote:
> > On Fri, Apr 17, 2009 at 9:39 AM, Freddy Peña <freddyp...@gmail.com> wrote:
>
> >> No harm done :). However, I'm afraid to say that it still can't launch
> >> a process. Maybe we should focus back to the original
> >> ":remote_definitions_allowed is set to false" instead of the "marshal
> >> data too short" issue? or is it supposed to work fine when I define a
> >> process with "http://" URI's instead of "C:\"?
>
> Hi Jeff + Freddy,
>
> I now have a windows install and I think I have fixed the C:/ issue :http://github.com/jmettraux/ruote/commit/f33623b6f72224325f883f7076e2...

Freddy Peña

unread,
Apr 17, 2009, 3:57:22 PM4/17/09
to Ruote (OpenWFEru) users
Hi John,

After a lot of looking around I finally found a temporary hack to make
it work on my box. I noticed the files on \work_ENV\expool\*.ruote
were being saved with some weird encoding. I looked around
fs_expstorage.rb and noticed you had the choice for storing the
persistence files with either Ruby Marshalling or YAML, so I forced it
to use YAML by replacing line 59, "@persist_as_yaml =
(application_context[:persist_as_yaml] == true)" with
"@persist_as_yaml = true"

However, I still don't know why the Marshalling fails. Maybe you have
to force UTF-8? Or Marshal files are not plain files but HEX or
something else?

Thanks again, and I hope this is useful for someone!


On Apr 17, 4:19 am, John Mettraux <jmettr...@openwfe.org> wrote:
> On Fri, Apr 17, 2009 at 9:41 AM, John Mettraux <jmettr...@openwfe.org> wrote:
> > On Fri, Apr 17, 2009 at 9:39 AM, Freddy Peña <freddyp...@gmail.com> wrote:
>
> >> No harm done :). However, I'm afraid to say that it still can't launch
> >> a process. Maybe we should focus back to the original
> >> ":remote_definitions_allowed is set to false" instead of the "marshal
> >> data too short" issue? or is it supposed to work fine when I define a
> >> process with "http://" URI's instead of "C:\"?
>
> Hi Jeff + Freddy,
>
> I now have a windows install and I think I have fixed the C:/ issue :http://github.com/jmettraux/ruote/commit/f33623b6f72224325f883f7076e2...

John Mettraux

unread,
Apr 18, 2009, 1:01:26 AM4/18/09
to openwfe...@googlegroups.com
On Sat, Apr 18, 2009 at 4:57 AM, Freddy Peña <fredd...@gmail.com> wrote:
>
> After a lot of looking around I finally found a temporary hack to make
> it work on my box. I noticed the files on \work_ENV\expool\*.ruote
> were being saved with some weird encoding. I looked around
> fs_expstorage.rb and noticed you had the choice for storing the
> persistence files with either Ruby Marshalling or YAML, so I forced it
> to use YAML by replacing line 59, "@persist_as_yaml =
> (application_context[:persist_as_yaml] == true)" with
> "@persist_as_yaml = true"

Hi Freddy,

as you've spotted, you can set the :persist_as_yaml to true in the
application_context, ie replace the line 48 of config/environment.rb
with that one :

RUOTE_ENV = { :persist_as_yaml => true }

It will have the same effect as the change you've described.

> However, I still don't know why the Marshalling fails. Maybe you have
> to force UTF-8? Or Marshal files are not plain files but HEX or
> something else?

This commit fixes the issue (for me at least) :

http://github.com/jmettraux/ruote/commit/fb533e799128b43a8941660dadc744bcaabebde1


Now, I'd really love if you'd answer these previous questions of mine :

On Apr 17, 4:19 am, John Mettraux <jmettr...@openwfe.org> wrote:
>
> Hi Jeff + Freddy,
>

> I myself have an issue with mysql 5.0.77 and the gem mysql (version
> 2.7.3). Which version of this gem are you guys using ? (gem search mysql).

Which version of MySQL are you using ?
Which version of the ruby mysql gem are you using ?

That would really help me.


Thanks in advance, que le vaya bien,

Freddy Peña

unread,
Apr 18, 2009, 1:15:37 AM4/18/09
to Ruote (OpenWFEru) users
On Apr 18, 1:01 am, John Mettraux <jmettr...@openwfe.org> wrote:
> This commit fixes the issue (for me at least) :
>
>  http://github.com/jmettraux/ruote/commit/fb533e799128b43a8941660dadc7...
>

Arigatou gozaimasu!


> Now, I'd really love if you'd answer these previous questions of mine :
>
> > I myself have an issue with mysql 5.0.77 and the gem mysql (version
> > 2.7.3). Which version of this gem are you guys using ? (gem search mysql).
>
> Which version of MySQL are you using ?
> Which version of the ruby mysql gem are you using ?


Actually, I already did! You can see my reply in the first of my two
previous posts:

"As for mysql, I'm using MySQL 5.1.11 standard with the 2.7.3 gem.
Seems to be working fine. What issue are you having?"

Hope that helps! If you need anything else, don't hesitate to ask.

John Mettraux

unread,
Apr 18, 2009, 1:31:21 AM4/18/09
to openwfe...@googlegroups.com
On Sat, Apr 18, 2009 at 2:15 PM, Freddy Peña <fredd...@gmail.com> wrote:
>
> Actually, I already did! You can see my reply in the first of my two
> previous posts:
>
> "As for mysql, I'm using MySQL 5.1.11 standard with the 2.7.3 gem.
> Seems to be working fine. What issue are you having?"

Ah great,

sorry, I read your answer on the iPhone at first and it made me skip
your first answer.

My issue is active-record (well, the whole ruby runtime) dying after a
while when re-connecting to mysql.

I will try with 5.1.11.

Thanks !

pranav

unread,
May 11, 2009, 1:15:28 AM5/11/09
to Ruote (OpenWFEru) users


Hi-

I am trying to launch a process definition in ruote-web2 and I am
facing the following problems -

1. no connection available
dump
--------------------------------------------------------------------------
C:/pranav latest/1.2.0/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/
active_record/connection_adapters/abstract/query_cache.rb:70:in
`columns_with_query_cache'
C:/pranav latest/1.2.0/lib/ruby/gems/1.8/gems/activerecord-jdbc-
adapter-0.9/lib/jdbc_adapter/jdbc_mssql.rb:224:in `columns'
C:/pranav latest/1.2.0/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/
active_record/base.rb:1276:in `columns'
C:/pranav latest/1.2.0/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/
active_record/base.rb:1289:in `column_names'
C:/pranav latest/1.2.0/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/
active_record/base.rb:1302:in `column_methods_hash'
C:/pranav latest/1.2.0/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/
active_record/base.rb:1991:in `all_attributes_exists?'
C:/pranav latest/1.2.0/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/
active_record/base.rb:1991:in `each'
C:/pranav latest/1.2.0/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/
active_record/base.rb:1991:in `all?'
C:/pranav latest/1.2.0/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/
active_record/base.rb:1991:in `all_attributes_exists?'
C:/pranav latest/1.2.0/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/
active_record/base.rb:1847:in `method_missing'
C:/pranav latest/1.2.0/lib/ruby/gems/1.8/gems/ruote-0.9.20/lib/openwfe/
extras/expool/db_errorjournal.rb:106:in `get_error_log'
C:/pranav latest/1.2.0/lib/ruby/gems/1.8/gems/ruote-0.9.20/lib/openwfe/
engine/status_methods.rb:324:in `process_statuses'
C:/pranav latest/1.2.0/lib/ruby/gems/1.8/gems/ruote-0.9.20/lib/openwfe/
engine/status_methods.rb:320:in `each'
C:/pranav latest/1.2.0/lib/ruby/gems/1.8/gems/ruote-0.9.20/lib/openwfe/
engine/status_methods.rb:320:in `process_statuses'
C:/pranav latest/1.2.0/lib/ruby/gems/1.8/gems/ruote-0.9.20/lib/openwfe/
engine/status_methods.rb:369:in `process_status'

-----------------------------------------------------------------------------------------------------------------------------

2. ActiveRecord::ConnectionNotEstablished: no connection available:
SELECT * FROM process_errors WHERE (process_errors.[wfid] = '20090511-
deyupuheja') ORDER BY id asc

This post has helped me a lot as I faced same errors.. As mentioned in
this thread..
I have added h[:remote_definitions_allowed] = true to the ruote_plugin/
init.rb
Also, I have updated my lib/openwfe/expool/def_parser.rb

I am working on windows.. I am using MS-SQL Server, JRuby 1.2.0,
activerecord 2.3.2, activerecord-jdbc-adapter (0.9)
Please suggest how to resolve this problem.

Thanks,
Pranav

John Mettraux

unread,
May 11, 2009, 1:24:42 AM5/11/09
to openwfe...@googlegroups.com
On Mon, May 11, 2009 at 2:15 PM, pranav <rpra...@gmail.com> wrote:
>
> I am trying to launch a process definition in ruote-web2 and I am
> facing the following problems -
>
> 1. no connection available
>
> (...)

>
> 2. ActiveRecord::ConnectionNotEstablished: no connection available:
> SELECT * FROM process_errors WHERE (process_errors.[wfid] = '20090511-
> deyupuheja')  ORDER BY id asc
>
> This post has helped me a lot as I faced same errors.. As mentioned in
> this thread..
> I have added h[:remote_definitions_allowed] = true to the ruote_plugin/
> init.rb
> Also, I have updated my lib/openwfe/expool/def_parser.rb
>
> I am working on windows.. I am using MS-SQL Server, JRuby 1.2.0,
> activerecord 2.3.2, activerecord-jdbc-adapter (0.9)
> Please suggest how to resolve this problem.

Hello,

I don't own any copy of ms-sql, I can't help you much.

Have you tried to google a bit :

http://www.google.com/search?ie=UTF-8&oe=UTF-8&sourceid=navclient&q=activerecod+mssql+connection+not+established

?

Next time, could you please start a new thread of discussion ? This
connection problem is not related directly to the thread started by
Coondog. Thanks in advance.


Best regards,

bahaw

unread,
May 25, 2009, 11:43:02 AM5/25/09
to Ruote (OpenWFEru) users
I got past the :remote_definitions allowed issue, but encountered
another one instead: When trying to launch leaverequest, I get the
ff:

can't handle scheme 'd' for d:/development/workspace/ruote-web2/public/
defs/leave_request1.rb

Parameters:

{"authenticity_token"=>"hw8ydYksKtNIUPRHGJiFnI5kUCT0dS8p8zLJdeyIktc=",
"definition_id"=>"4",
"fields"=>{"from_date"=>"20090525",
"reason"=>"test",
"employee"=>"charly",
"to_date"=>"20090529"},
"commit"=>"launch new process instance",
"definition_url"=>"d:/development/workspace/ruote-web2/public/defs/
leave_request1.rb"}

I'm using Win XP, Jruby 1.1.6, MySQL 5.0.41-community-nt, activerecord-
jdbcmysql-adapter (0.9).

Appreciate the help.

b4h4w

John Mettraux

unread,
May 25, 2009, 6:41:52 PM5/25/09
to openwfe...@googlegroups.com
On Tue, May 26, 2009 at 12:43 AM, bahaw <baha...@gmail.com> wrote:
>
> I got past the :remote_definitions allowed issue, but encountered
> another one instead:  When trying to launch leaverequest, I get the
> ff:
>
> can't handle scheme 'd' for d:/development/workspace/ruote-web2/public/
> defs/leave_request1.rb
>
> Parameters:
>
> {"authenticity_token"=>"hw8ydYksKtNIUPRHGJiFnI5kUCT0dS8p8zLJdeyIktc=",
>  "definition_id"=>"4",
>  "fields"=>{"from_date"=>"20090525",
>  "reason"=>"test",
>  "employee"=>"charly",
>  "to_date"=>"20090529"},
>  "commit"=>"launch new process instance",
>  "definition_url"=>"d:/development/workspace/ruote-web2/public/defs/
> leave_request1.rb"}
>
> I'm using Win XP, Jruby 1.1.6, MySQL 5.0.41-community-nt, activerecord-
> jdbcmysql-adapter (0.9).

Hi Bahaw,

please do not "steal" an old discussion thread, if you encounter an
issue, you have to create a new thread of discussion.

The issue you are encountering is/was discussed in

http://groups.google.com/group/openwferu-users/browse_frm/thread/a802c856569c05f8

ending in a further issue about the mysql driver.

As said to Pranav, I will not be able to track this problem before next month.


Best regards,

Reply all
Reply to author
Forward
0 new messages