Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

DotNet SDK Runtime Error in Isolate Box #175

Open
raviprakash007 opened this issue Jan 25, 2025 · 1 comment
Open

DotNet SDK Runtime Error in Isolate Box #175

raviprakash007 opened this issue Jan 25, 2025 · 1 comment

Comments

@raviprakash007
Copy link

I am running isolate in containerized environment (Debian Buster Container). I am using isolate to compile C/C++/PHP/C#/java and its working fine. Today, I installed DotNet SDK 8 to support F#.

Installation is successfull and container goes up easily. I am running dotnet on console without any problem.

root@workers-5df5cc7cdb-gckm8:/api/app# /usr/local/dotnet-8-sdk/dotnet --version
8.0.405
root@workers-5df5cc7cdb-gckm8:/api/app# 

But when I try to run same command to check version in isolate , it gives error.

root@workers-5df5cc7cdb-gckm8:/api/app# isolate --cg -s -b 3459 --open-files=4000 -M /var/local/lib/isolate/3459/metadata.txt -t 5.0 -x 1.0 -w 10.0 -k 64000 -p60 --cg-mem=128000 -f 1024 -E HOME=/tmp -E PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" -d /etc:noexec --run -- /bin/bash $(basename /var/local/lib/isolate/3459/box/run.sh)
run.sh: line 2:     3 File size limit exceeded/usr/local/dotnet-8-sdk/dotnet --version

root@workers-5df5cc7cdb-gckm8:/api/app# isolate --cg -s -b 3459 --open-files=4000 -f 50000 -M /var/local/lib/isolate/3459/metadata.txt -t 5.0 -x 1.0 -w 10.0 -k 64000 -p60 --cg-mem=128000 -f 1024 -E HOME=/tmp -E PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" -d /etc:noexec --run -- /bin/bash $(basename /var/local/lib/isolate/3459/box/run.sh)
run.sh: line 2:     3 File size limit exceeded/usr/local/dotnet-8-sdk/dotnet --version

root@workers-5df5cc7cdb-gckm8:/api/app#  cat /var/local/lib/isolate/3459/box/run.sh
#mkdir -p ~/.dotnet && touch ~/.dotnet/8.0.405.dotnetFirstUseSentinel && /usr/local/dotnet-8-sdk/dotnet fsi script.fsx
/usr/local/dotnet-8-sdk/dotnet --version


Why isolate is not able to run the script (run.sh) and hence dotnet. And how can we make it running?

@gollux
Copy link
Member

gollux commented Jan 25, 2025

I suspect that your file size limit is too low. I would recommend dropping the -f option altogether. (As the manual page suggests, it is much better to use disk quotas anyway.)

Otherwise sorry, I have no idea what is your dotnet binary trying to do. Use strace to figure it out.

Besides, Debian Buster is a rather old system, which might cause problems of its own.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants