-
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 v2023.35.1 > v2023.36.1 Fails #150
Comments
Hi @ShanHolo , a new version was released just after you posted this issue which should resolve the problem you encountered. Can you try your install again? |
Hi @digitalsleuth thanks for your quick response. I tried the upgrade again with the following errors: pdate returned exit code not zero Errors on /var/cache/remnux/cli/v2023.37.1/saltstack.log file_|-remnux-addon-version-file_|-/etc/remnux-version_|-managed: \ packages: pyelftools\n Attempting uninstall: pyelftools\n Found existing test_|-remnux-dedicated_|-remnux-dedicated_|-nop: test_|-remnux-python3-packages_|-remnux-python3-packages_|-nop: |
Hi @ShanHolo! @digitalsleuth Is there a way in salt to test if the 0.29 folder exists already and if it does for salt to remove it prior to trying to update pyelftool? That might fix this issue for some. |
Hi @ShanHolo , the release you attempted is missing one command, which is being pushed to the next release. It should be out shortly. |
Thanks a lot for your appreciated support Trying to update again to the version 37.2 I had the similar issue. @digitalsleuth did you mean the release 37.3? right Thanks again. |
@ShanHolo , yes 37.3 is the upcoming release, which hopefully we can get out today. |
@digitalsleuth @ShanHolo Did the 37.3 do anything with Thug because I got a bunch of errors today relating to Thug and Speakeasy while trying to run the update. Otherwise I guess I might have done something to screw it up and the update process. |
@geeksailor Can you provide your log file so I can see the errors? I know Thug released an update yesterday, but speakeasy hasn't had anything recently updated. |
@digitalsleuth here's the grepped version. I can grab you the full stack too if you wish |
Ran and a pip3 list for both of them for good measure
The Warning no metadata warning seems like the setuptools folder is broken and it is breaking everything else. Gonna go check it out EDIT 2: Ok that got rid of the spaghetti of errors for doing the show on thug and setuptools. Gonna try running an update again and see if it works. Not sure what happened there to leave those scraps behind but hopefully it fixes it. |
Side note, I am up to Remnux v2023.37.1 but I still see folders for 35.1 and 36.1 in my /var/cache/remnux/cli/v2023-3* directory. Should those have been auto cleaned up or is that something manual that I can remove? |
@geeksailor Given that you've made a number of changes to your python setup (ie. manually deleting folders under /usr/local/lib/python3.8), this may be an issue with some of the changes you made. However, I will need the full saltstack.log file so I can see what occurred around the installation. As for the over directories under /var/cache, you can delete 35.1 and 36.1, they don't get cleaned up because they retain the log files. |
Ran another update and still have problems I think similar to the first. Haven't done a comparison yet. |
@geeksailor Can you try the following, exactly as below: Once that is done, please take a look in the |
@digitalsleuth Will run it now. Be back in a minute with the results |
Seems I have another hangup folder. Removing and running again. |
Try running the following now: Do not remove the folder. |
Once you've run those commands, try the previous command I gave you for 68.2.2 |
Oh whoops I'll re-add it now. I think it is actually pip that is doing it and leaving these shells. It sees the old versions and tries to remove them but possibly doesn't clean it up completely
|
Is the "REQUESTED" file the only thing in the folder? |
Yes, it is the only thing left.
|
68.2.2 is also in there but not on the pip list? |
Something seems to be wrong with the way pip is installing your packages. Try running this: |
@digitalsleuth Sorry had some stuff that came up and had to respond to really quick.
I don't think touching those files helps. I can trying coping them from 68.2.2 to see if that works |
Okay, after a bit of research and searching, it looks like this has become more widespread in the python community: I'm going to need to rework the solution it seems. |
Oomph. Sorry to add to the workload. |
Not at all, I'm glad we're discovering this now so I can nip it in the bud for anyone else. Cheers! |
Glad to contribute! |
What a pity!! when I tried to update 37.3 version I had even more errors. Even from a fresh Remnux VM installation I had the same errors..... cat /var/cache/remnux/cli/v2023.37.3/saltstack.log | grep -i 'result: false' -B 8 file_|-remnux-addon-version-file_|-/etc/remnux-version_|-managed: id: remnux-config-bash-completion-unfurl file_|-remnux-config-bash-completion-xxxswf_|-/etc/bash_completion.d/xxxswf_|-managed: ? file_|-remnux-config-volatility3-permissions_|-/usr/local/lib/python3.8/dist-packages/volatility3/framework/symbols_|-directory file_|-remnux-python3-packages-dotnetfile-dump-shebang_|-/usr/local/bin/dotnetfile_dump.py_|-prepend: file_|-remnux-python3-packages-dotnetfile-dump_|-/usr/local/bin/dotnetfile_dump.py_|-managed: file_|-remnux-python3-packages-old-speakeasy-wrapper_|-/usr/local/bin/run_speakeasy.py_|-absent: file_|-remnux-python3-packages-speakeasy-emudll-shebang_|-/usr/local/bin/emu_dll.py_|-prepend: file_|-remnux-python3-packages-speakeasy-emudll_|-/usr/local/bin/emu_dll.py_|-managed: file_|-remnux-python3-packages-speakeasy-emuexe-shebang_|-/usr/local/bin/emu_exe.py_|-prepend: file_|-remnux-python3-packages-speakeasy-emuexe_|-/usr/local/bin/emu_exe.py_|-managed: file_|-remnux-python3-packages-volatility-rename-vol_|-/usr/local/bin/vol3_|-rename: file_|-remnux-python3-packages-volatility-rename-volshell_|-/usr/local/bin/volshell3_|-rename:
? pip_|-remnux-pip3-stpyv8_|-/usr/local/src/remnux/stpyv8-ubuntu-20.04-3.8/stpyv8-10.1.124.12-cp38-cp38-linux_x86_64.whl_|-installed
or: setup.py cmd --help\n \n error: invalid command 'egg_info'\n or: setup.py cmd --help\n \n error: invalid command 'egg_info'\n or: setup.py cmd --help\n \n error: invalid command 'egg_info'\n or: setup.py cmd --help\n \n error: invalid command 'egg_info'\n
pip_|-remnux-python3-packages-speakeasy_|-git+https://github.com/mandiant/speakeasy.git_|-installed:
pip_|-remnux-python3-packages-unfurl_|-git+https://github.com/obsidianforensics/unfurl.git_|-installed:
pip_|-remnux-tools-peepdf-3-source_|-git+https://github.com/digitalsleuth/peepdf-3.git_|-installed:
test_|-remnux-dedicated_|-remnux-dedicated_|-nop:
|
Hi @ShanHolo , to fix this, you can run the following then try the install again: The reason for the setuptools 68.0.0 is because that is the broken package on your system: The command above will fix the actual broken Python package, allowing it to be replaced during the next run. |
Thanks a lot for you support! However I still have errors.... I'm the only whit these errors trying to update?. file_|-remnux-addon-version-file_|-/etc/remnux-version_|-managed: packages: pyelftools\n Attempting uninstall: pyelftools\n Found existing test_|-remnux-dedicated_|-remnux-dedicated_|-nop: test_|-remnux-python3-packages_|-remnux-python3-packages_|-nop: |
HI @ShanHolo! |
Hi @ShanHolo , to fix this issue, you can run the following: sudo python3 -m pip install --force-reinstall --break-system-packages pyelftools==0.29 This will fix the missing METADATA file and allow the remnux install to complete properly. Cheers |
Everything was solved!!! I reinstalled pyelftools==0.29 and everything has been solved. Thanks to @digitalsleuth and @geeksailor for your appreciated support. I learnt new things about the Remnux upgrade process. |
@ShanHolo |
Good to hear @ShanHolo ! Cheers! |
@lennyzeltser I believe we can close this one out. |
Hello world
When I tried to upgrade to 2023.36.1 I had the following issues
Update returned exit code not zero
Error: Update returned exit code not zero
at ChildProcess. (/snapshot/remnux-cli/remnux-cli.js:571: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)
Checking the saltstack log I figured out the following:
file_|-remnux-addon-version-file_|-/etc/remnux-version_|-managed:
id: remnux-addon-version-file
run_num: 780
sls: remnux.addon
changes: {}
comment: 'One or more requisite failed: remnux.python3-packages.remnux-python3-packages'
duration: 0.005
name: /etc/remnux-version
result: false
\ packages: pyelftools\n Attempting uninstall: pyelftools\n Found existing
\ installation: pyelftools 0.29 WARNING: Error parsing requirements for pyelftools:
\ [Errno 2] No such file or directory: '/usr/local/lib/python3.8/dist-packages/pyelftools-0.29.dist-info/METADATA'\n
\ WARNING: No metadata found in /usr/local/lib/python3.8/dist-packages\n
ERROR: Cannot uninstall pyelftools 0.29, RECORD file not found. You might be
\ able to recover from this via: 'pip install --force-reinstall --no-deps pyelftools==0.29'."
duration: 2328.396
name: pyelftools
result: false
test_|-remnux-dedicated_|-remnux-dedicated_|-nop:
id: remnux-dedicated
run_num: 837
sls: remnux.dedicated
changes: {}
comment: 'One or more requisite failed: remnux.addon.remnux-addon-version-file'
duration: 0.004
name: remnux-dedicated
result: false
test_|-remnux-python3-packages_|-remnux-python3-packages_|-nop:
id: remnux-python3-packages
run_num: 413
sls: remnux.python3-packages
changes: {}
comment: 'One or more requisite failed: remnux.python3-packages.pyelftools.remnux-python3-packages-pyelftools'
duration: 0.033
name: remnux-python3-packages
result: false
Just in case I attach the saltstack log:
saltstack.log
The text was updated successfully, but these errors were encountered: