Comments (4)
After some testing having a try/catch may not be a solution.
The problem come from line 571, logger.critical
stop the app. A fix would be to change logger.critical
to logger.error
and exit function (with a return for example).
What I did to "fix":
if volume_type == 'bind' and not host_path.startswith("\\\\"):
try:
os.makedirs(host_path, exist_ok=True)
except PermissionError:
logger.error("Unable to create the volume folder on the filesystem locally.")
logger.error(f"Insufficient permissions to create the folder: {host_path}")
return 0
except FileExistsError:
# The volume targets a file that already exists on the file system
pass
mount = Mount(container_path, host_path, read_only=read_only, type=volume_type)
self.__mounts.append(mount)
Running again gives:
[V] Config: Enabling host timezones
[-] Unable to create the volume folder on the filesystem locally.
[-] Insufficient permissions to create the folder: /etc/timezone
[V] Config: Enabling shared resources volume
┌──────────────────┬─────────────────────────────────────────────────────────┐
│ Volumes │ /tmp/.X11-unix ➡ /tmp/.X11-unix │
│ │ /etc/localtime ➡ /etc/localtime (RO) │
│ │ /home/user/.exegol/my-resources ➡ /my-resources │
│ │ /home/user/ctf/Exegol/exegol-resources ➡ /opt/resources │
└──────────────────┴─────────────────────────────────────────────────────────┘
from exegol.
Hi, thanks for the feedback!
Indeed this situation had not been foreseen.
The critical behavior with the program exit is however intended in case the volume is manually specified by the user via CLI.
Don't worry, I'll handle it
from exegol.
Fixed in the dev branch, will be included in the next release.
I close the ticket, feel free to test (in the dev branch) and reopen it if the problem is not completely corrected.
from exegol.
Thanks @Dramelac ! Fyi @naacbin you can test those changes by running exegol update -v
and then choose dev
when the program asks to select a git branch for the wrapper source code, or by checking out the dev branch from this repo manually.
from exegol.
Related Issues (20)
- [Warn] - During an image update HOT 3
- Share workspace as a non-root user on the host HOT 4
- Exegol Image fails to start on Mac HOT 7
- [Question] - All my images have been deleted, what can I do? HOT 3
- Docker download error when trying to install nightly HOT 1
- [Question] - The version of the main OS can affect the software? HOT 2
- Fails to install on Windows (issue from docker-py) HOT 5
- No such file or directory: 'cmd.exe' on Windows HOT 4
- Missing timezone file on host prevents container start HOT 4
- Support for dotfiles HOT 5
- Can't reach github API HOT 7
- Container is not running HOT 8
- Exegol full image update failure HOT 10
- dependencies issue HOT 2
- [HELP] How to get X11 forwarding with Wayland and Xwayland ? HOT 5
- add command line argument -P HOT 6
- [BUG] Error when abort install of nighlty after error update to 4.1.0 HOT 3
- X11 / GUI Tools issue when using Exegol on WSL HOT 7
- Image up to date but not really HOT 5
- Sudo / Python long start HOT 1
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 exegol.