-
Notifications
You must be signed in to change notification settings - Fork 111
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
infinitely looped path for my jobs app #3426
Comments
Follow up: Added some more codes to handle more general situation when the DATAOOT is set.
if Pathname.new(ENV['OOD_DATAROOT']).fnmatch?(File.join(path,'**')) Please see the link here : cf4cb9b |
Thanks for the ticket and the followup. I'll take a look at this this week. |
Hey, I'm just circling back to this to get it fixed in the next release. I can't however replicate the issue. If I specify Here I have a screenshot illustrating the same with my network tab open to confirm I sent |
Is this still an issue @prod-feng? I can't replicate, can you? If so, what version of OnDemand can you replicate this with? (I tried 3.1.x and the master branch). |
Hi Jeff,
It is 3.0.3. Rocky Linux 8.8, kernel 4.18.0
Best,
Feng
…On Fri, Nov 8, 2024 at 11:39 AM Jeff Ohrstrom ***@***.***> wrote:
Is this still an issue @prod-feng <https://github.com/prod-feng>? I can't
replicate, can you? If so, what version of OnDemand can you replicate this
with? (I tried 3.1.x and the master branch).
—
Reply to this email directly, view it on GitHub
<#3426 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABVLAZP6APKXA3CTPCJYXADZ7TSNXAVCNFSM6AAAAABQBUMZ42VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINRVGIZTMOJUGE>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Jeff,
The reason you could not repeat might be because your HOME has huge data
sets there, and it caused the timeout...
Best,
Feng
…On Fri, Nov 8, 2024 at 12:55 PM Feng Zhang ***@***.***> wrote:
Hi Jeff,
It is 3.0.3. Rocky Linux 8.8, kernel 4.18.0
Best,
Feng
On Fri, Nov 8, 2024 at 11:39 AM Jeff Ohrstrom ***@***.***>
wrote:
> Is this still an issue @prod-feng <https://github.com/prod-feng>? I
> can't replicate, can you? If so, what version of OnDemand can you replicate
> this with? (I tried 3.1.x and the master branch).
>
> —
> Reply to this email directly, view it on GitHub
> <#3426 (comment)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/ABVLAZP6APKXA3CTPCJYXADZ7TSNXAVCNFSM6AAAAABQBUMZ42VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINRVGIZTMOJUGE>
> .
> You are receiving this because you were mentioned.Message ID:
> ***@***.***>
>
|
to repeat the issue, you might need to use a different user account with a
small HOME folder, or, increase the timeout threshold.
Best,
Feng
…On Fri, Nov 8, 2024 at 1:01 PM Feng Zhang ***@***.***> wrote:
Jeff,
The reason you could not repeat might be because your HOME has huge data
sets there, and it caused the timeout...
Best,
Feng
On Fri, Nov 8, 2024 at 12:55 PM Feng Zhang ***@***.***> wrote:
> Hi Jeff,
>
> It is 3.0.3. Rocky Linux 8.8, kernel 4.18.0
>
> Best,
>
> Feng
>
>
> On Fri, Nov 8, 2024 at 11:39 AM Jeff Ohrstrom ***@***.***>
> wrote:
>
>> Is this still an issue @prod-feng <https://github.com/prod-feng>? I
>> can't replicate, can you? If so, what version of OnDemand can you replicate
>> this with? (I tried 3.1.x and the master branch).
>>
>> —
>> Reply to this email directly, view it on GitHub
>> <#3426 (comment)>,
>> or unsubscribe
>> <https://github.com/notifications/unsubscribe-auth/ABVLAZP6APKXA3CTPCJYXADZ7TSNXAVCNFSM6AAAAABQBUMZ42VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINRVGIZTMOJUGE>
>> .
>> You are receiving this because you were mentioned.Message ID:
>> ***@***.***>
>>
>
|
Hello,
I found there's might be a bug that handles the path, when user uses "Job Composer-> From Specified Path". By dafault OnDemand will use $HOME as the DATAROOT for "myjobs" app. So when user use $HOME(like ~/) as the "Source path" for the "From Specified Path), it will cause infinitely looped path of ~/ondemand/data folder rsynced. OOD only checks the size of the "Source folder", and uses "du" command timeout fo safe copy check, which can not absolutely avoid this situation.
Th finitely looped path rsynced looks like the following:
/home/user1/ondemand/data/sys/myjobs/projects/default/2/ondemand/data/sys/myjobs/projects/default/2/ondemand/data/sys/myjobs/projects/default/2/ondemand/data/sys/myjobs/projects/default/2/ondemand/data/sys/myjobs/projects/default/2/ondemand/data/sys/myjobs/projects/default/2/ondemand/data/sys/myjobs/projects/default/2/ondemand/data/sys/myjobs/projects/default/2/ondemand/data/sys/myjobs/projects/default/2/ondemand/data/sys/myjobs/projects/default/2/ondemand/data/sys/myjobs/projects/default/2/ondemand/data/sys/myjobs/projects/default/2/ondemand/data/sys/myjobs/projects/default/2/ondemand/data/sys/myjobs/projects/default/2/ondemand/data/sys/myjobs/projects/default/2/ondemand/data/sys/myjobs/projects/default/2/ondemand/data/sys/myjobs/projects/default/2/ondemand/data/sys/myjobs/projects/default/2/ondemand/data/sys/myjobs/projects/default/2/ondemand/data/sys/myjobs/projects/default/2/
I have prepared a solution for this issue, by adding 3 lines of codes in app/models/filesystem.rb, to block the use of $HOME by users and give warning message:
The patching codes can be found here in my fork of OnDemand:
prod-feng@b03f091
Best,
Feng
The text was updated successfully, but these errors were encountered: