Comments (8)
if ssh to the server, all work OK.
we were watching the /var/log/messages while testing on the rstudio web gui. whenever that "bad file descriptor on the web interface" occurs, the overlay lowerpath message is displayed on the server .
from apptainer.
here are the captured the strace output (the complete output is attached as file):
access("/lmod/apps/apptainer/1.2.2/bin/apptainer", R_OK) = 0
rt_sigprocmask(SIG_BLOCK, [INT CHLD], [], 8) = 0
lseek(255, -1, SEEK_CUR) = 105
clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x152f477bde50) = 2385409
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigaction(SIGINT, {sa_handler=0x558c001f1c60, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0x152f46dfeb50}, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0x152f46dfeb50}, 8) = 0
wait4(-1, ERROR : Failed to get file information for file descriptor 11: Bad file descriptor
[{WIFEXITED(s) && WEXITSTATUS(s) == 1}], 0, NULL) = 2385409
rt_sigaction(SIGINT, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0x152f46dfeb50}, {sa_handler=0x558c001f1c60, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0x152f46dfeb50}, 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=2385409, si_uid=90023, si_status=1, si_utime=2, si_stime=6} ---
wait4(-1, 0x7ffcc1699510, WNOHANG, NULL) = -1 ECHILD (No child processes)
rt_sigreturn({mask=[]}) = 0
read(255, "\n", 106) = 1
read(255, "", 106) = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
close(5) = 0
exit_group(1) = ?
+++ exited with 1 +++
from apptainer.
I uploaded the entire strace output as a file: RStudio_strace_output.txt
from apptainer.
Is there any way you can reproduce it outside of Posit Workench? It looks like installing that is an awful lot to ask someone who doesn't have it.
That strace is not helpful because it doesn't actually trace apptainer, it traces "bedtools" and does not follow to subprocesses. A problem with using the strace -f
option however is that typically it hangs on apptainer. I suggest renaming your libexec/apptainer/starter command and replacing it with a shell script that runs strace on the starter, and saving that output. The script probably needs to have full paths in it to strace and to starter. I also recommend the -s1024
option on strace.
from apptainer.
there are no problems if we ssh to the server. everything just works fine. I have given this link to the Posit support and hopefully they can help you to install a rstudio. it is quite simple, just get the rpm and a temp license, then it should work.
from apptainer.
We have resolved the “bad file descriptor” issue. it was the hyperthreading caused the problem. we have enabled and disabled logic processors a few times and the error is reproducible.
from apptainer.
The issue has been solved and can be closed. I summarised the issue and the resolution below.
The issue only appears on the RStudio Server (Posit Workbench) when you use Apptainer in the R Console or the R Terminal, and only if you have Hyperthreading enabled. Intermittently, the error message ERROR : Failed to get file information for file descriptor 11: Bad file descriptor will appear. It took us some time and effort to get to the bottom of it.
Thank you for your help and for looking into this!
from apptainer.
I would say you found a workaround, although the problem was never really understood. Oh well, since you no longer have the problem, I'm closing the issue as requested.
from apptainer.
Related Issues (20)
- Missing EGL ICD when using --nv HOT 2
- Couldn't always determine user account information in slurm HOT 7
- oras download gets stuck HOT 1
- Timeout seems changed in stopping mounts from 10 secs to 1 sec. HOT 2
- RFE: Add `--sandbox` option to `apptainer pull`
- Yum bootstrap fails on el8 & el9 "while copying pseudo devices" with "operation not permitted" HOT 3
- Unknown image format/type HOT 1
- v1.3.1 Docker credentials not read from ~/.docker/config.json HOT 2
- Apptainer cannot download Docker image even when properly logged in HOT 3
- Apptainer getting stuck at tzdata configuration despite export DEBIAN_FRONTEND=noninteractive HOT 1
- Building from source with --with-suid: make fails with uninformative error HOT 1
- X.509 Integration in Apptainer HOT 2
- Building on local image fails with error mounting `tmpfs` HOT 11
- No access to usernames except myself in apptainer container HOT 1
- Problems getting the CernVM-FS client working from inside of a container. HOT 1
- Guidance on Choosing Between Apptainer and SingularityCE for Computational Materials Science Applications. HOT 8
- Facing Library link not found issue when launching Monolix 2024 in container through apptainer HOT 3
- How to Submit Jobs from Materials Studio GUI running on Microsoft Windows to Apptainer Container with DS BIOVIA Materials Studio Installed on Ubuntu 22.04.4 LTS. HOT 1
- Segmentation violation when attempting an Apptainer Checkpoint
- "apptainer --nv" does not inject libcudadebugger.so.1, required by newer cuda-gdb HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from apptainer.