locking, permissions, data

View: New views
4 Messages — Rating Filter:   Alert me  

locking, permissions, data

by Peter Alcibiades :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Here is a very weird situation.  The program consists of a launcher, call it
launcher, and the program proper, call it program.rev, and they are both in
the same folder.

I get a call that launcher is not starting up the program.  On inspection of
the folder, one sees the following:

launcher [executable, 2.5mb]
program.rev [unknown, 20k]
program.rev~ [unknown, 300k]

So, I delete program.rev, remove the tilde from the other name, and everything
works fine.

The only way I can think of to account for this is that someone opened the
program.rev file in a text editor, and then saved it.  All Linux text editors
I know seem to make a backup copy with a tilde to distinguish them, on
saving.  

Yet, the users at the time are definitely incapable of opening a file with a
text editor and then saving it.  This is the second time its happened.  

What to do?  One could make program.rev read only, but then it would mean that
all the data would have to be stored in external files, and then read in for
any processing, which is getting very complicated.    Is there some way using
finely grained permissions to stop this happening, but to allow data to be
added to the data fields and custom properties?  Should I perhaps make the
default application for the .rev extension something totally harmless like
maybe mplayer?  

Any ideas on how it could happen, and what to do, gratefully received!

Peter

_______________________________________________
use-revolution mailing list
use-revolution@...
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Re: locking, permissions, data

by Martin Baxter-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Peter,

I believe the .rev~ file is made by the revolution engine automatically
when you do a stack save. It is a backup of the exisiting stack file
prior to the save command. If the save is successful it is deleted, so
you only see it if something went wrong.

Assuming this is correct, this would suggest that the stack save
operation is failing part way through, for some reason.

Martin Baxter

Peter Alcibiades wrote:

> Here is a very weird situation.  The program consists of a launcher, call it
> launcher, and the program proper, call it program.rev, and they are both in
> the same folder.
>
> I get a call that launcher is not starting up the program.  On inspection of
> the folder, one sees the following:
>
> launcher [executable, 2.5mb]
> program.rev [unknown, 20k]
> program.rev~ [unknown, 300k]
>
> So, I delete program.rev, remove the tilde from the other name, and everything
> works fine.
>
> The only way I can think of to account for this is that someone opened the
> program.rev file in a text editor, and then saved it.  All Linux text editors
> I know seem to make a backup copy with a tilde to distinguish them, on
> saving.  
>
> Yet, the users at the time are definitely incapable of opening a file with a
> text editor and then saving it.  This is the second time its happened.  
>
>
> Any ideas on how it could happen, and what to do, gratefully received!
>
> Peter
>

--
I am Not a Number, I am a free NaN
_______________________________________________
use-revolution mailing list
use-revolution@...
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Re: locking, permissions, data

by Peter Alcibiades :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Yes, this could be it.  They do every so often close it down using the on-off switch, which invokes the shutdown procedure, but too fast for rev to close and save properly.  Could be.  Thanks - at least it frees one from worrying that someone is trying to use a text editor on it.

Now what to do about it!  At least it is fairly easy to recover from.  

Peter

Martin Baxter-4 wrote:
Peter,

I believe the .rev~ file is made by the revolution engine automatically
when you do a stack save. It is a backup of the exisiting stack file
prior to the save command. If the save is successful it is deleted, so
you only see it if something went wrong.

Assuming this is correct, this would suggest that the stack save
operation is failing part way through, for some reason.

Martin Baxter

Peter Alcibiades wrote:
> Here is a very weird situation.  The program consists of a launcher, call it
> launcher, and the program proper, call it program.rev, and they are both in
> the same folder.
>
> I get a call that launcher is not starting up the program.  On inspection of
> the folder, one sees the following:
>
> launcher [executable, 2.5mb]
> program.rev [unknown, 20k]
> program.rev~ [unknown, 300k]
>
> So, I delete program.rev, remove the tilde from the other name, and everything
> works fine.
>
> The only way I can think of to account for this is that someone opened the
> program.rev file in a text editor, and then saved it.  All Linux text editors
> I know seem to make a backup copy with a tilde to distinguish them, on
> saving.  
>
> Yet, the users at the time are definitely incapable of opening a file with a
> text editor and then saving it.  This is the second time its happened.  
>
>
> Any ideas on how it could happen, and what to do, gratefully received!
>
> Peter
>

--
I am Not a Number, I am a free NaN
_______________________________________________
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Parent Message unknown Re: locking, permissions, data

by Henk van der Velden :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

We have seen this issue two times when an existing installation of  
one of our apps was copied to a new server. I didn't understand how  
it could happen, but probably Peter is right and using the on-off  
switch instead of properly shutting down the application is the cause.

Maybe we could check for the existence of a .rev~ file, and if one  
exists, remove the corresponding .rev file and change the extension  
from rev~ to rev.

Kind regards,
Henk


On Jul 23, 2008, at 06:34 , use-revolution-request@...  
wrote:

> Yes, this could be it.  They do every so often close it down using  
> the on-off
> switch, which invokes the shutdown procedure, but too fast for rev  
> to close
> and save properly.  Could be.  Thanks - at least it frees one from  
> worrying
> that someone is trying to use a text editor on it.
>
> Now what to do about it!  At least it is fairly easy to recover from.
>
> Peter
>
>
> Martin Baxter-4 wrote:
>>
>> Peter,
>>
>> I believe the .rev~ file is made by the revolution engine  
>> automatically
>> when you do a stack save. It is a backup of the exisiting stack file
>> prior to the save command. If the save is successful it is  
>> deleted, so
>> you only see it if something went wrong.
>>
>> Assuming this is correct, this would suggest that the stack save
>> operation is failing part way through, for some reason.

_______________________________________________
use-revolution mailing list
use-revolution@...
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution
LightInTheBox - Buy quality products at wholesale price!