Skip to content
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

Installation issue AWS EC2 #407

Closed
sara-stalhammar opened this issue Nov 29, 2019 · 9 comments
Closed

Installation issue AWS EC2 #407

sara-stalhammar opened this issue Nov 29, 2019 · 9 comments

Comments

@sara-stalhammar
Copy link

sara-stalhammar commented Nov 29, 2019

I get the following errors when I do a sift install after I've installed the latest cli (1.8.0) on an AWS EC2 Ubuntu 16.04 Desktop:

>> Incomplete due to Failures -- Success: 543, Failure: 13



>>>> List of Failures (first 10 only)



    NOTE: First failure is generally the root cause.



    IMPORTANT: If opening a ticket, please include this information.



     - ID: sift-config-terminal-profiles-install
       SLS: sift.config.user.terminal_xenial
       Run#: 490
       Comment: Command "dconf load /org/gnome/terminal/ < /usr/share/sift/terminal-profiles.txt" run
     - ID: undefined
       SLS: sift.config.user.terminal
       Run#: 491
       Comment: One or more requisite failed: sift.config.user.terminal_xenial.sift-config-terminal-profiles-install
     - ID: sift-config-theme-gtk
       SLS: sift.config.user.theme_xenial
       Run#: 494
       Comment: Command "gsettings set org.gnome.desktop.interface gtk-theme Arc" run
     - ID: sift-config-theme-icon
       SLS: sift.config.user.theme_xenial
       Run#: 495
       Comment: Command "gsettings set org.gnome.desktop.interface icon-theme Arc-Icons" run
     - ID: undefined
       SLS: sift.config.user.theme
       Run#: 500
       Comment: One or more requisite failed: sift.config.user.theme_xenial.sift-config-theme-gtk, sift.config.user.theme_xenial.sift-config-theme-icon
     - ID: sift-config-unity-launcher-user
       SLS: sift.config.user.unity
       Run#: 501
       Comment: Command "gsettings set com.canonical.Unity.Launcher launcher-position Bottom" run
     - ID: sift-config-unity-disable-scopes
       SLS: sift.config.user.unity
       Run#: 502
       Comment: Command "gsettings set com.canonical.Unity.Lenses disabled-scopes "['more_suggestions-amazon.scope', 'more_suggestions-u1ms.scope', 'more_suggestions-populartracks.scope', 'music-musicstore.scope', 'more_suggestions-ebay.scope', 'more_suggestions-ubuntushop.scope', 'more_suggestions-skimlinks.scope']"" run
     - ID: sift-config-unity-favorites
       SLS: sift.config.user.unity
       Run#: 503
       Comment: Command "gsettings set com.canonical.Unity.Launcher favorites "['application://gnome-terminal.desktop', 'application://firefox.desktop', 'application://org.gnome.Nautilus.desktop', 'application://unity-control-center.desktop', 'unity://running-apps', 'unity://expo-icon', 'unity://devices']"" run
     - ID: sift-config-unity-icon-size
       SLS: sift.config.user.unity
       Run#: 504
       Comment: Command "dconf write /org/compiz/profiles/unity/plugins/unityshell/icon-size 32" run
     - ID: sift-config-unity-minimize-window
       SLS: sift.config.user.unity
       Run#: 505
       Comment: Command "dconf write /org/compiz/profiles/unity/plugins/unityshell/launcher-minimize-window true" run

saltstack.log

@ekristen
Copy link
Contributor

You are running 16.04 Desktop in EC2? Please make sure you in a terminal with a valid TTY. For the desktop mode to be installed properly, you should be logged into the desktop and in a terminal there, not via SSH.

I would recommend --mode=server for EC2 instances.

We also have an AWS AMI built on 18.04 that you could test. If interested please let me know and I will share the details.

@sara-stalhammar
Copy link
Author

sara-stalhammar commented Dec 2, 2019

Thanks! It worked with --mode=server.
Are there any features missing in the server mode, as there are 447 "tasks" in server mode and 556 in normal mode?

Also, noticed that a sift update doesn't work. Get the following error message:
`ubuntu@ip:~$ sudo sift update

sift-cli@1.8.0
sift-version: v2019.11.0

downloading v2019.11.0

downloading sift-saltstack-v2019.11.0.tar.gz.asc
downloading sift-saltstack-v2019.11.0.tar.gz.sha256
downloading sift-saltstack-v2019.11.0.tar.gz.sha256.asc
downloading sift-saltstack-v2019.11.0.tar.gz
validating file sift-saltstack-v2019.11.0.tar.gz
validating signature for sift-saltstack-v2019.11.0.tar.gz.sha256
extracting update sift-saltstack-v2019.11.0.tar.gz
performing update v2019.11.0
Log file: /var/cache/sift/cli/v2019.11.0/saltstack.log
(node:8931) UnhandledPromiseRejectionWarning: Error: Update returned exit code not zero
at ChildProcess. (/snapshot/sift-cli/sift-cli.js:534:23)
at ChildProcess.emit (events.js:196:13)
at maybeClose (internal/child_process.js:1011:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:268:5)
(node:8931) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:8931) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
`

@ekristen
Copy link
Contributor

ekristen commented Dec 2, 2019

The difference between desktop & server is mostly superficial. In desktop mode, for those using the VM as a desktop it'll update the theme and the some UX things, all the same tools & packages get installed though.

Interesting, I'll double check the update function.

@sara-stalhammar
Copy link
Author

Btw, could you perhaps share the AWS AMI for SIFT so I could try it?

@sara-stalhammar
Copy link
Author

Hi,
Have you had time to look at this?

@ekristen
Copy link
Contributor

  • us-west-2 -- ami-0c19a79c98b477534

@jonanathan
Copy link

@ekristen I did attempt to spin up the AMI (ami-0c19a79c98b477534) on an Ubuntu 18.04 EC2 instance. After spinning it up, I didn't see sift installed. The only reference to sift on the instance is "/etc/apt/preferences.d/sift"

@ekristen
Copy link
Contributor

ekristen commented Feb 5, 2020 via email

@ShahJainam24
Copy link

hello! i am trying to install sift on AWS EC2 ubuntu 16.04 and i am getting the following errors!

ubuntu@ip-172-31-19-137:~$ sudo sift install

sift-cli@1.5.1-beta.0-master.154cb2f
sift-version: notinstalled

Installing and configuring SaltStack properly ...

Command failed: wget -O - https://repo.saltstack.com/apt/ubuntu/16.04/amd64/latest/SALTSTACK-GPG-KEY.pub | apt-key add -
--2022-04-01 11:03:34-- https://repo.saltstack.com/apt/ubuntu/16.04/amd64/latest/SALTSTACK-GPG-KEY.pub
Resolving repo.saltstack.com (repo.saltstack.com)... 99.86.231.38, 99.86.231.46, 99.86.231.54, ...
Connecting to repo.saltstack.com (repo.saltstack.com)|99.86.231.38|:443... connected.
HTTP request sent, awaiting response... 404 Not Found
2022-04-01 11:03:34 ERROR 404: Not Found.

gpg: no valid OpenPGP data found.

Error: Command failed: wget -O - https://repo.saltstack.com/apt/ubuntu/16.04/amd64/latest/SALTSTACK-GPG-KEY.pub | apt-key add -
--2022-04-01 11:03:34-- https://repo.saltstack.com/apt/ubuntu/16.04/amd64/latest/SALTSTACK-GPG-KEY.pub
Resolving repo.saltstack.com (repo.saltstack.com)... 99.86.231.38, 99.86.231.46, 99.86.231.54, ...
Connecting to repo.saltstack.com (repo.saltstack.com)|99.86.231.38|:443... connected.
HTTP request sent, awaiting response... 404 Not Found
2022-04-01 11:03:34 ERROR 404: Not Found.

gpg: no valid OpenPGP data found.

at ChildProcess.exithandler (child_process.js:205:12)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:194:7)
at maybeClose (internal/child_process.js:899:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)

ubuntu@ip-172-31-19-137:~$

Please help me resolve this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants