sift icon indicating copy to clipboard operation
sift copied to clipboard

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

Open IreSec73 opened this issue 2 years ago • 10 comments

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'

IreSec73 avatar Jul 06 '22 14:07 IreSec73

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

digitalsleuth avatar Jul 08 '22 00:07 digitalsleuth

[ saltstack.log ](url)

IreSec73 avatar Jul 14 '22 14:07 IreSec73

Thanks digitalsleuth, I've attached above

IreSec73 avatar Jul 14 '22 14:07 IreSec73

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

digitalsleuth avatar Jul 14 '22 19:07 digitalsleuth

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

tompolth avatar Aug 27 '22 21:08 tompolth

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?

digitalsleuth avatar Aug 27 '22 22:08 digitalsleuth

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 avatar Aug 28 '22 08:08 tompolth

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

tompolth avatar Aug 28 '22 09:08 tompolth

saltstack (3).log

Hi digitalsleuth - Attached is the log file

IreSec73 avatar Aug 29 '22 10:08 IreSec73

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?

digitalsleuth avatar Aug 29 '22 13:08 digitalsleuth

Closing due to staleness.

ekristen avatar Feb 01 '23 23:02 ekristen