-
Notifications
You must be signed in to change notification settings - Fork 11
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
Remnux upgrade --mode=addon fails on WSL2 #142
Comments
Hi @tuttimann , this issue is due to a SaltStack compatibility problem with the current version of importlib-metadata. To fix this, you can run the following: Once that's done, try your install again and let us know how it goes. |
I tried the command and it gave the following output:
Afterwards the upgrade still fails. |
Does the upgrade fail with the same error? If so, can you try running If it failed with a different error, can you provide your saltstack.log file? Cheers |
I tried the 2 commands, for both I get following warning:
After that upgrade still fails and saltstack.log file has following input:
|
Anything I can do to help investigating this? |
HI @tuttimann , can you run the following from within your WSL installation and provide the output: |
Sure, this is the output: |
Hi @tuttimann , I think I may have been able to duplicate the error you've been getting. Can you provide me the output of the following command: |
@tuttimann , I believe that with the new REMnux CLI and the soon to be submitted PR for fixing pip, setuptools, and wheel, you should have no issues installing REMnux in WSL. The PR will be coming this afternoon, so once it's released, you should be able to try again. |
@tuttimann We've figured out the core issue with this installation, caused originally by a pip, setuptools, and wheel issue. You can fix this by running the following in your WSL, then re-running the installation: sudo python3 -m pip install --force-reinstall --break-system-packages "requests==2.30.0" Your current Cheers! |
after this command i get error: could not find a version that satidfies the requirement request==2.30.0 (from versions: none) |
Hi @Pohambap , if this error is in relation to #172 , then this command is not going to work for what you are attempting. However, if this is separate from #172 , then the command you're running should actually be |
@Pohambap Can you please confirm if the previous comment managed to resolve your issue? |
I am trying to upgrade remnux on WSL2, but always fails with following error code:
Update returned exit code not zero
Error: Update returned exit code not zero
at ChildProcess. (/snapshot/remnux-cli/remnux-cli.js:569:23)
at ChildProcess.emit (events.js:315:20)
at maybeClose (internal/child_process.js:1021:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:286:5)
Sometimes problems occur due to network or server issues when
downloading packages, in which case retrying your operation
a bit later might lead to good results.
To determine the nature of the issue, please review the
saltstack.log file under /var/cache/remnux/cli in the
subdirectory that matches the REMnux version you're installing.
Search for the log file for "result: false" messages and look at
the surrounding lines to diagnose the issue.
For assistance go to https://github.com/REMnux/remnux-cli/issues
This is the content of latest saltstack.log:
_/usr/bin/salt-call:6: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
from pkg_resources import load_entry_point
[DEBUG ] Missing configuration file: /etc/salt/minion
[DEBUG ] Using cached minion ID from /etc/salt/minion_id: DESKTOP-4F2NMQ9.
[DEBUG ] Using importlib_metadata to load entry points
[ERROR ] 'EntryPoints' object has no attribute 'items'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/salt/utils/parsers.py", line 210, in parse_args
mixin_after_parsed_func(self)
File "/usr/lib/python3/dist-packages/salt/utils/parsers.py", line 887, in __setup_extended_logging
log.setup_extended_logging(self.config)
File "/usr/lib/python3/dist-packages/salt/log/setup.py", line 414, in setup_extended_logging
providers = salt.loader.log_handlers(opts)
File "/usr/lib/python3/dist-packages/salt/loader/init.py", line 686, in log_handlers
_module_dirs(
File "/usr/lib/python3/dist-packages/salt/loader/init.py", line 148, in _module_dirs
for entry_point in entrypoints.iter_entry_points("salt.loader"):
File "/usr/lib/python3/dist-packages/salt/utils/entrypoints.py", line 43, in _wrapped
return f(*args, **kwargs)
File "/usr/lib/python3/dist-packages/salt/utils/entrypoints.py", line 62, in iter_entry_points
for entry_point_group, entry_points_list in entry_points.items():
AttributeError: 'EntryPoints' object has no attribute 'items'
Usage: salt-call [options] [arguments]
salt-call: error: Error while processing <function LogLevelMixIn.__setup_extended_logging at 0x7feb1620b670>: Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/salt/utils/parsers.py", line 210, in parse_args
mixin_after_parsed_func(self)
File "/usr/lib/python3/dist-packages/salt/utils/parsers.py", line 887, in __setup_extended_logging
log.setup_extended_logging(self.config)
File "/usr/lib/python3/dist-packages/salt/log/setup.py", line 414, in setup_extended_logging
providers = salt.loader.log_handlers(opts)
File "/usr/lib/python3/dist-packages/salt/loader/init.py", line 686, in log_handlers
_module_dirs(
File "/usr/lib/python3/dist-packages/salt/loader/init.py", line 148, in _module_dirs
for entry_point in entrypoints.iter_entry_points("salt.loader"):
File "/usr/lib/python3/dist-packages/salt/utils/entrypoints.py", line 43, in _wrapped
return f(*args, **kwargs)
File "/usr/lib/python3/dist-packages/salt/utils/entrypoints.py", line 62, in iter_entry_points
for entry_point_group, entry_points_list in entry_points.items():
AttributeError: 'EntryPoints' object has no attribute 'items'
The text was updated successfully, but these errors were encountered: