Skip to content
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

Error #226

Closed
ChetanGaonkar opened this issue Dec 7, 2021 · 14 comments
Closed

Error #226

ChetanGaonkar opened this issue Dec 7, 2021 · 14 comments

Comments

@ChetanGaonkar
Copy link

Autogenerated report:

{
  "name": "Error",
  "message": "Error trying to execute raxml binary '/tmp/.mount_raxmlGw2KeKS/resources/static/bin/raxml-ng': spawn /tmp/.mount_raxmlGw2KeKS/resources/static/bin/raxml-ng EACCES",
  "stack": "Error: Error trying to execute raxml binary '/tmp/.mount_raxmlGw2KeKS/resources/static/bin/raxml-ng': spawn /tmp/.mount_raxmlGw2KeKS/resources/static/bin/raxml-ng EACCES\n    at IpcMainImpl.<anonymous> (/tmp/.mount_raxmlGw2KeKS/resources/app.asar/build/electron.js:1:21843)"
}

Active state:

{
  "command": "raxml-ng --all --msa /home/campbelllab/synology/transcriptome_data/metabarcoding/HAB_paper/hab_v4_dec21.txt --model GTR+I --prefix /home/campbelllab/synology/transcriptome_data/metabarcoding/HAB_paper/hab_v4_dec21 --seed 128646 --bs-metric tbe --tree rand{10} --bs-trees 1000",
  "stdout": ""
}

Process: renderer
raxmlGUI 2.0.6
Electron 13.5.1
linux 5.8.0-50-generic
Locale: en-US

@danieledler
Copy link
Member

Hi @ChetanGaonkar and thanks for reporting the issue.

The spawn /tmp/.mount_raxmlGw2KeKS/resources/static/bin/raxml-ng EACCES part means that raxmlGUI doesn't have access to the directory. From what I have found it seems to be a sandboxing issue with Debian:

AppImages based on Electron require the kernel to be configured in a certain way to allow for its sandboxing to work as intended (specifically, the kernel needs to be allowed to provide “unprivileged namespaces”). Many distributions come with this configured out of the box (like Ubuntu for instance), but some do not (for example Debian).

It also seems that this was solved in later versions:

If you run the Debian 10 (Buster) stable kernel 4.19 you will still be affected by this issue.
If you upgrade to Bullseye (which will become the new stable release in a few months) you will not be affected.
If you install the 5.10 kernel from Buster-backports you will not be affected.

As you have kernel 5.8, this seems to be a likely cause of the problem. Are you able to upgrade the kernel or Debian?

@ChetanGaonkar
Copy link
Author

ChetanGaonkar commented Dec 8, 2021 via email

@danieledler
Copy link
Member

Ok, in raxmlGUI 2.0.6 there was a new version of raxml-ng added, maybe @jtklein knows something about this?

@danieledler
Copy link
Member

In the meantime @ChetanGaonkar, if you can upgrade the kernel pleasy try that. That will help us if more get the same problem.

@ChetanGaonkar
Copy link
Author

ChetanGaonkar commented Dec 8, 2021 via email

@thauffe
Copy link

thauffe commented Feb 16, 2022

I'm having the same issue. My kernel version is 5.10-98.
I checked that unprivileged namespaces are enabled by my distribution and they are.

Keep up the good work!
Torsten

@danieledler
Copy link
Member

Hi @thauffe, thanks for your information!

To help us check if the problem is the new raxml-ng binary since 2.0.6, can you or @ChetanGaonkar try running the 2.0.5 version and tell us how it goes?

@thauffe
Copy link

thauffe commented Feb 18, 2022

Hi, Version 2.0.5 works.

I run a sudo ./raxmlGUI-2.0.5.AppImage --no-sandbox with version 2.0.5 and 2.0.6 and attach the output as text file. There are some more detailed messages than in the standard error report.

Beginning in line 85 of v205.txt:

ALIGNMENT_SELECTED {
  canceled: false,
  filePaths: [ '/home/.../Pota_cytb.fas' ]
}
Parse alignment /home/.../Pota_cytb.fas
error Error: Command failed: /tmp/.mount_raxmlGTZ1NCf/resources/static/bin/readal -in /home/.../Pota_cytb.fas -type -format
/bin/sh: line 1: /tmp/.mount_raxmlGTZ1NCf/resources/static/bin/readal: Permission denied

    at ChildProcess.exithandler (child_process.js:317:12)
    at ChildProcess.emit (events.js:315:20)
    at maybeClose (internal/child_process.js:1048:16)
    at Socket.<anonymous> (internal/child_process.js:439:11)
    at Socket.emit (events.js:315:20)
    at Pipe.<anonymous> (net.js:673:12) {
  killed: false,
  code: 126,
  signal: null,
  cmd: '/tmp/.mount_raxmlGTZ1NCf/resources/static/bin/readal -in /home/.../Pota_cytb.fas -type -format',
  stdout: '',
  stderr: '/bin/sh: line 1: /tmp/.mount_raxmlGTZ1NCf/resources/static/bin/readal: Permission denied\n'
}

v205.txt
v206.txt

.

@danieledler
Copy link
Member

Thanks @thauffe, that is very helpful!

From this we should investigate the readal binary too.

@jtklein, do you know if the raxml-ng in 2.0.6 was compiled or signed in another way than the version in 2.0.5? Are you able to test the latest in a linux environment? We can take the opportunity to replace raxml-ng 1.0.3 with the latest 1.1.0 also.

@ChetanGaonkar
Copy link
Author

ChetanGaonkar commented Feb 22, 2022 via email

@danieledler
Copy link
Member

@ChetanGaonkar, we are testing a new version today, hopefully that will solve the issue. Will let you know.

@danieledler
Copy link
Member

Hi all, we just released v2.0.7 that should fix this Linux issue. You should get it on the automatic update check when raxmlGUI starts. Please try and write if it solves the issue for you!

@thauffe
Copy link

thauffe commented Feb 22, 2022

Great, works in my case. Thank you!

@ChetanGaonkar
Copy link
Author

ChetanGaonkar commented Feb 22, 2022 via email

@jtklein jtklein closed this as completed Jun 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants