Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
New ruote user - having problems with storage corruption
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  7 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Steve Sexton  
View profile  
 More options May 21 2012, 1:24 pm
From: Steve Sexton <ssexto...@gmail.com>
Date: Mon, 21 May 2012 10:24:26 -0700 (PDT)
Local: Mon, May 21 2012 1:24 pm
Subject: New ruote user - having problems with storage corruption
Hi,

First off let me say that I am very pleased with ruote.  I come from a
BPM background, it was nice to be able to create high level
definitions and not cobble together state machines for my project.

However, I am having some problems with the storage, it appears not
always to update properly.  Likely this is a configuration issue on my
end but I'm quickly running out of ideas as to what it could be. I
notice the following symptoms:

  1.  A newly created process never gets expanded/processed.  It is
stuck in the "define" stage, with only 1 expression active.  ie. the
process creates but never goes anywhere.
  2.  Steps (expressions) that are completed, do not get removed from
the storage.  For example if I have a sequence with step A and step B,
when step A completes my process will then show *both* A and B as
active.

I have tried using both file system and sequel storage drivers.

Currently the project is in development and we are seeing these issues
with small numbers of users (2-3).  We would like to go to production
by end of summer and will be going into beta in June.  So I need to
get this problem under control.  I don't want to have to babysit ruote
and I would hate to have to rip it out and replace it at this stage.

Thanks in advance,
  Steve


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
John Mettraux  
View profile  
 More options May 21 2012, 9:09 pm
From: John Mettraux <jmettr...@gmail.com>
Date: Tue, 22 May 2012 10:09:18 +0900
Local: Mon, May 21 2012 9:09 pm
Subject: Re: [ruote:3544] New ruote user - having problems with storage corruption

Hello Steve,

welcome to the ruote mailing list.

On Mon, May 21, 2012 at 10:24:26AM -0700, Steve Sexton wrote:

> First off let me say that I am very pleased with ruote.  I come from a
> BPM background, it was nice to be able to create high level
> definitions and not cobble together state machines for my project.

Thanks a lot!

> However, I am having some problems with the storage, it appears not
> always to update properly.  Likely this is a configuration issue on my
> end but I'm quickly running out of ideas as to what it could be. I
> notice the following symptoms:

>   1.  A newly created process never gets expanded/processed.  It is
> stuck in the "define" stage, with only 1 expression active.  ie. the
> process creates but never goes anywhere.

The way you describe it, it seems that all the processes never go further the
first step. But you mention previously "not always". That's weird.

>   2.  Steps (expressions) that are completed, do not get removed from
> the storage.  For example if I have a sequence with step A and step B,
> when step A completes my process will then show *both* A and B as
> active.

Is this consistent with the two storage you've been trying?

> I have tried using both file system and sequel storage drivers.

Now time for the questions:

- which platform, OS?
- which Ruby version?
- which version of ruote? (master is recommended)
- single worker architecture?
- sequel against which database? Is the database on the same host as the
  workers?
- ...

> Currently the project is in development and we are seeing these issues
> with small numbers of users (2-3).  We would like to go to production
> by end of summer and will be going into beta in June.  So I need to
> get this problem under control.  I don't want to have to babysit ruote
> and I would hate to have to rip it out and replace it at this stage.

The issue you describe tell me "your ruote install is utterly crippled", it
wouldn't be babysitting but life support.

Thanks in advance,

--
John Mettraux - http://lambda.io/jmettraux


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Steve Sexton  
View profile  
 More options May 21 2012, 11:02 pm
From: Steve Sexton <ssexto...@gmail.com>
Date: Mon, 21 May 2012 20:02:30 -0700 (PDT)
Local: Mon, May 21 2012 11:02 pm
Subject: Re: New ruote user - having problems with storage corruption

Hi John,
Thanks for the fast response!

On May 21, 9:09 pm, John Mettraux <jmettr...@gmail.com> wrote:

...*snip*...

> >   1.  A newly created process never gets expanded/processed.  It is
> > stuck in the "define" stage, with only 1 expression active.  ie. the
> > process creates but never goes anywhere.

> The way you describe it, it seems that all the processes never go further the
> first step. But you mention previously "not always". That's weird.

It is a random occurrence.  I'd say maybe 90% of the time the
processes behave.  When they don't, this is one of the two symptoms.
In this case it acts as if no worker is running (but there is one,
afaik), and no process gets instantiated.

> >   2.  Steps (expressions) that are completed, do not get removed from
> > the storage.  For example if I have a sequence with step A and step B,
> > when step A completes my process will then show *both* A and B as
> > active.

> Is this consistent with the two storage you've been trying?

Yes.  What seems to be happening here is that the step completes but
the record in the documents table hangs around.  This is a problem for
me because I have a UI that queries the active steps of a process and
displays them to the user.  If I manually delete the record from the
database, all seems to be well.

> > I have tried using both file system and sequel storage drivers.

> Now time for the questions:

> - which platform, OS?

CentOS 5.5 on a x86 VPS

> - which Ruby version?

1.9.2-p290

> - which version of ruote? (master is recommended)

2.2.0, the last official release  : )
I suppose I can give the latest stable git version a try, if you think
it will help.

I'm one of those guys that has a preference for only using "official"
releases in production.  I'm not religious about it though.  As long
as I can configure my app to pull a specific git snapshot, and it
works, that is good enough for me.  I just don't like being surprised
by upstream updates when I'm not expecting/ready for them.

> - single worker architecture?

I think this could well be the problem, but I'm not sure which is why
I asked for help.  To me, the problem smells like it might be locking,
or a race condition.  I have a single worker in each instance of the
rails app.  However, I'm running under Apache+Passenger and I have
multiple (currently 6) passenger instances => multiple instances of
rails app => multiple workers, one worker per instance of my rails
app.  If that makes sense.

Short-term, scaling back to one worker may be an option.  But longer
term I think I will need multiple workers to get the throughput I
need.  Also (see below) I see this problem in dev sometimes with
single worker, as well.

> - sequel against which database? Is the database on the same host as the
>   workers?

MySQL 5.1.  Same host as everything else; workers, apache, passenger,
rails app.  It did occur to me this could be a sizing problem. I'm
starting to run out of things to try / places to look, so rather than
guess I thought I'd ask the experts.

I suppose I should add, these problems occur far less often in
development, running under "rails server" (WEBrick) where I *know*
there is only one worker.  But they do occur.  I get the problems if I
start a lot of processes quickly, close together in time.  Our process
definition is still changing, and I have a script I run to re-launch
all the processes with the new definition.  If I have, say, 10-15+
definitions getting launched one after the other, I will sometimes see
the above symptoms in dev as well.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
John Mettraux  
View profile  
 More options May 22 2012, 3:30 am
From: John Mettraux <jmettr...@gmail.com>
Date: Tue, 22 May 2012 16:30:00 +0900
Subject: Re: [ruote:3546] Re: New ruote user - having problems with storage corruption
Hello Steve,

thanks for the information.

I'd say you shouldn't be afraid to use the master, especially in the Bundler
world we now live in. You can peg at the version that works for you.

I'm supposed to release 2.3.0 in June (I'm hoping people on the list we'll
get vocal about it so I get some pressure to release).

If you still encounter the issue, it'd be great if you could "package" it:
"hey John, I'm launching this flow 20 times in a row, and it stalls, we're
using this storage with those settigs, etc". I've seen such issues in the
past and I've done my best to fix them, but sometimes they can re-appear.
Those issues usually don't require much work to reproduce since they're just
jamming the system, a loop is sufficient.

I've quite a number of people using the file system storage and I can think
of an organization in the user list that is using the Sequel storage (they've
been contributing patches (they follow the master version of ruote and
ruote-sequel)).

So I'd say you should try 2.3.0 on master (ruote[ and ruote-sequel]) and
report in detail any weirdness you might find.

Cheers,

--
John Mettraux - http://lambda.io/jmettraux


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Hartog De Mik  
View profile  
 More options May 22 2012, 4:42 am
From: Hartog De Mik <hartog.de....@gmail.com>
Date: Tue, 22 May 2012 10:42:31 +0200
Local: Tues, May 22 2012 4:42 am
Subject: Re: [ruote:3547] Re: New ruote user - having problems with storage corruption
2012/5/22 John Mettraux <jmettr...@gmail.com>:

> Hello Steve,

> <hartog/snip: politeness and bundler stuff>

> I'm supposed to release 2.3.0 in June (I'm hoping people on the list we'll
> get vocal about it so I get some pressure to release).

Like so?: https://twitter.com/coffeeaddict_nl/status/204854140269109248

> <hartog/snip: other non relevant infos>

> Cheers,

Grtz,
Big wink,
Hartog.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
John Mettraux  
View profile  
 More options May 22 2012, 4:44 am
From: John Mettraux <jmettr...@gmail.com>
Date: Tue, 22 May 2012 17:44:00 +0900
Subject: Re: [ruote:3548] Re: New ruote user - having problems with storage corruption

On Tue, May 22, 2012 at 10:42:31AM +0200, Hartog De Mik wrote:

> 2012/5/22 John Mettraux <jmettr...@gmail.com>:

> > I'm supposed to release 2.3.0 in June (I'm hoping people on the list we'll
> > get vocal about it so I get some pressure to release).

> Like so?: https://twitter.com/coffeeaddict_nl/status/204854140269109248

Yes, exactly!

John


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Steve Sexton  
View profile  
 More options May 22 2012, 1:35 pm
From: Steve Sexton <ssexto...@gmail.com>
Date: Tue, 22 May 2012 10:35:14 -0700 (PDT)
Local: Tues, May 22 2012 1:35 pm
Subject: Re: New ruote user - having problems with storage corruption

On May 22, 3:30 am, John Mettraux <jmettr...@gmail.com> wrote:

> I'd say you shouldn't be afraid to use the master, especially in the Bundler
> world we now live in. You can peg at the version that works for you.

Thanks, I'll give that a try.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »