teamdfir / sift

SIFT
MIT License
492 stars 65 forks source link

>> Running: /etc/sift-version Update returned exit code not zero #567

Closed IreSec73 closed 1 year ago

IreSec73 commented 2 years ago

Hi Guys

I`m installing SIFT on Ubuntu (20.04.1-Ubuntu) in AWS using an EC2 (I cant use the AMIs you provided in my company because of guard rails) and I'm having the issue below - Any idea how I solve it please - As a test I ran it on my own private AWS account to make sure it wasn't something related to the company account and had the identical issue.

Thanks

Running: /etc/sift-version Update returned exit code not zero Error: Update returned exit code not zero at ChildProcess. (/snapshot/sift-cli/sift-cli.js:556:23) at ChildProcess.emit (events.js:400:28) at maybeClose (internal/child_process.js:1058:16) at Socket. (internal/child_process.js:443:11) at Socket.emit (events.js:400:28) at Pipe. (net.js:686:12)

----- PLEASE READ ----------------------

A lot of failures are caused by the apt system being locked or unhealthy.

Before opening an issue in GitHub, please check to see if your apt system is healthy.

Try running 'apt-get update' then remove any packages that aren't used by running 'apt-get autoremove'

digitalsleuth commented 2 years ago

Hi @IreSec73, are you able to provide the saltstack.log file which gets generates so we can review the possible issue?

IreSec73 commented 2 years ago

[saltstack.log](https://github.com/teamdfir/sift/files/9112473/saltstack.log)

IreSec73 commented 2 years ago

Thanks digitalsleuth, I've attached above

digitalsleuth commented 2 years ago

Hi @IreSec73 , it looks like your log file is incomplete. Looks like it was cut off. Can you re-upload?

tompolth commented 2 years ago

I am having a similar issue. The upgrade seems to be ok but there is a similar message to the one especified by IreSec73. Here it is my log file saltstack.log

digitalsleuth commented 2 years ago

Hi @tompolth , It looks like there was an issue finding a package from the repos, which in turn caused a couple of errors. Can you provide me a listing of your /etc/apt/sources.list.d directory and possibly try the installation again?

tompolth commented 2 years ago

Here is the list. source.list.d.txt Probably there is some entrances coming from the previous version. Yesterday I upgraded the 18.04 version to the 20.04

tompolth commented 2 years ago

I've just reviewed the source.list.d directory removing some old entrances and enable the related with sift that were disabled during the dist-upgrade. After that I upgraded the Ubuntu again and then the sift. Voila!! It worked flawlessly. Thanks for your help

IreSec73 commented 2 years ago

saltstack (3).log

Hi digitalsleuth - Attached is the log file

digitalsleuth commented 2 years ago

Hi @IreSec73 , it looks like there's a network connectivity issue when trying to use and configure pip during the process. I'm guessing it's a configuration issue with the AMI, as it keeps trying to search a non-existent python index:

# [ERROR   ] Command '/usr/bin/python3' failed with return code: 1
# [ERROR   ] stdout: Looking in indexes: https://repo.forge.lmig.com/api/pypi/python/simple
# [ERROR   ] stderr: WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f634af038b0>: Failed to establish a new connection: [Errno -2] Name or service not known')': /api/pypi/python/simple/pip/

Can you confirm that you can manually install a python package within your AMI instance?

ekristen commented 1 year ago

Closing due to staleness.