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

Continuous Release 20240506 app image fails to create a directory due to the mount point being read-only. #172

Open
kevlar700 opened this issue May 9, 2024 · 1 comment

Comments

@kevlar700
Copy link

kevlar700 commented May 9, 2024

When the appimage is ran rather than extracted.
clicking the button "build target: clean all" results in the following error.

alr -d --non-interactive --no-color --no-tty -q clean -- -XELOGS_LIBRARY_TYPE=static -XLIBRARY_TYPE=static -XSTM32U599_HAL_LIBRARY_TYPE=static -XADAFLAGS=
stderr: GNATCOLL.VFS.VFS_DIRECTORY_ERROR
stderr: creation of new directory "/tmp/.mount_GNAT_SH1xKUt/usr/etc/alire" failed
stderr: raised GNATCOLL.VFS.VFS_DIRECTORY_ERROR : creation of new directory "/tmp/.mount_GNAT_SH1xKUt/usr/etc/alire" failed
[/usr/local/bin/alr]
0xf24272 Gnatcoll.Vfs.Make_Dir at gnatcoll-vfs.adb:1566
0x541f03 Alr.Commands.Create_Alire_Folders at alr-commands.adb:223
0x54560c Alr.Commands.Execute at alr-commands.adb:531
0x436183 Alr.Main at alr-main.adb:13
0x438de1 Main at b__alr-main.adb:2257
[/lib/x86_64-linux-gnu/libc.so.6]
0x766484f95248
0x766484f95303
[/usr/local/bin/alr]
0x43601c _start at ???
0xfffffffffffffffe

ERROR: creation of new directory "/tmp/.mount_GNAT_SH1xKUt/usr/etc/alire" failed
ERROR: alr encountered an unexpected error, re-run with -d for details.
ERROR: error location: 0xf24272 Gnatcoll.Vfs.Make_Dir at gnatcoll-vfs.adb:1566
[2024-05-09 17:55:03] process exited with status 1, elapsed time: 00.51s

Using the following just moves the mount point so the alire directory still can't be created

env TMPDIR=/tmp/gnat_studio alr edit
@kevlar700 kevlar700 changed the title GNAT Studio Continuous Release 20240506 app image fails to create a directory due to the mount point being read-only. Continuous Release 20240506 app image fails to create a directory due to the mount point being read-only. May 10, 2024
@kevlar700
Copy link
Author

kevlar700 commented Sep 20, 2024

Looks like it is writing to etc/alire now that I have extracted from the app image and installed as it has been left owned by my user when it should normally be owned by root. I guess it should be writing this to somewhere in $HOME (~/).

https://forum.ada-lang.io/t/issue-with-gnat-studio-community-and-alire/1223

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

1 participant