Page 1 of 1

Revigniter v2 "Unable to load the requested stack" error

Posted: Tue Nov 23, 2021 1:13 pm
by istech
Hi all,

Revigniter upgrade path - v1.10.3 to 2.3.1

Just tested some more features after doing an upgrade from Revigniter v1 to V2 and I have been unable to load my custom stacks using the rigLoadStack function.

stack location: application/stacks

ERROR received from Revigniter "unable to load requested stack "stack name"" (But stack is in location) (My usage code is "rigLoadStack tStack" and tried rigLoadStack "literal stack name")

Remedies tried: Moved stack to location system/stacks - received ERROR "bad target error" see attached

Tried direct Livecode function "start using stack ("full link to stack in application folder") - THIS WORKS AS EXPECTED

In my log I did get this error "Auth OTP: OTP table missing!". Saying that I don't use the OTP lib and have disabled it in my config file. So not sure if it is relevant.

Would love to know your thoughts if it is a bug or maybe something I missed during the upgrade?

Commenting on the forums so maybe this can help someone else doing the same process.

Maybe my revigniter "rigLoadStack" is grabbing an incorrect path? I have looked at the global gRigA and the path looks good.

Re: Revigniter v2 "Unable to load the requested stack" error

Posted: Tue Nov 23, 2021 8:14 pm
by Ralf Bitter
Hi istech,

did you check the permissions of application/stacks?. For whatever
reason it seems that the permissions for this directory have changed.

You explained that you moved the stack to system/stacks. The error
tells me that this directory has the correct permissions but it also tells
me that the filename of your stack may include a hyphen. Is this correct?
If so, please remove or replace the hyphen because stack names should
not include hyphens.

Re: Revigniter v2 "Unable to load the requested stack" error

Posted: Tue Nov 23, 2021 10:41 pm
by istech
Hi Raff,

Thanks for the response.

I have set the permissions for both folders and files to 755. So not sure what to do with the application/stacks folder as all seems correct permission-wise.

For the system/stacks folder, the permissions are the same. I originally had the stack name as a number (i.e 1.livecode) which has worked previously fine for me but decided to try to change it to (test.livecode) but received the same ERROR result as previously mentioned. The only other stack name I tried was "MY_1.livecode". But still got the same error message. (definitely no hyphens. I have read the LoadStack documentation a couple of times :D )

I'll look at the permissions again and let you know if I find anything.

Re: Revigniter v2 "Unable to load the requested stack" error

Posted: Wed Nov 24, 2021 1:22 am
by Ralf Bitter
Hi istech,

got it. Due to modifications in the Loader library of version 2.2.1, stack
names must match stack file names ever since. Something I have overlooked
when making adding configuration and debugging code to custom stacks
optional.
I will change that, but for now you need to make sure that stack name
and stack file name are the same.

Of course this is not an explanation for the issue related to loading stacks
from application/stacks. If you check the names as described above the stack
should be loaded at least from system/stacks, otherwise there would not have
been this specific LC server error message.
The revIgniter error message is due to a stack not found or insufficient permissions
for the "stacks" directory.
If your stack loads from system/stacks it should actually load from
application/stacks too. Please keep me informed.

Re: Revigniter v2 "Unable to load the requested stack" error

Posted: Wed Nov 24, 2021 8:07 pm
by Ralf Bitter
Hi istech,

there is a new revIgniter version (2.3.2) that fixes
the problem that stack names must match stack file names.

Re: Revigniter v2 "Unable to load the requested stack" error

Posted: Wed Nov 24, 2021 11:35 pm
by istech
Thanks Ralf

I'll give this a go and let you know. I have double-checked the permissions on the directory and stack for "application/stacks" and it is the same as "system/stack". Could be some other server issue I suppose.

I would love to get your take on one more issue I'm having with Revigniter V2 if it does not take up too much of your time. I started another thread with a sanitizing issue I've come across while doing some more testing. I won't start it here as I don't want to confuse the issues. Again thanks for your time and dedication to Revigniter.