Ubuntu 14 desktop fresh easy install failing

Hi

Can anyone shed some light on the error im getting:

TASK [dns_caching : unmask NetworkManager service] ***************************************************************************
fatal: [localhost]: FAILED! => {“changed”: false, “cmd”: “systemctl unmask NetworkManager”, “failed”: true, “msg”: “[Errno 2] No such file or directory”, “rc”: 2}
to retry, use: --limit @/tmp/.bench/playbooks/production/install.retry

PLAY RECAP *******************************************************************************************************************
localhost : ok=11 changed=2 unreachable=0 failed=1

Traceback (most recent call last):
File “install.py”, line 388, in
install_bench(args)
File “install.py”, line 114, in install_bench
run_playbook(‘production/install.yml’, sudo=True, extra_vars=extra_vars)
File “install.py”, line 326, in run_playbook
success = subprocess.check_call(args, cwd=os.path.join(cwd, ‘playbooks’))
File “/usr/lib/python2.7/subprocess.py”, line 540, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command ‘[‘ansible-playbook’, ‘-c’, ‘local’, ‘production/install.yml’, ‘-e’, ‘@/tmp/extra_vars.json’, ‘–become’, ‘–become-user=frappe’]’ returned non-zero exit status 2

Ive read a many posts on the forum but still struggling to fing the connection with my issue.

Ive tried the easy install many times in the past and never had an issue. Im using VMWare Workstation (also tried VirtualBox with same issue) running on windows host.

I also tried this on a digital ocean droplet today and all went without a glitch, so im suspecting that my vm is not configured correctly or im missing something on the desktop environment.

Im trying to get a dev environment setup to try and path my way to contibuting what I can so prefer the desktop version of ubuntu so I can install the other dev tools I used on my previous image as I also have current windows dev I need to maintain for Aptronics.

Any light on this will be greatly appreciated.

Thanks

regards
Hemant

UPDATE: I tried ubuntu 14 server iso and used easy install - no problem, works perfectly. So there is something on the desktop ISO of ubuntu that is missing, now just need to figure out what…the digging continues…

So what I can confirm is that Easy Install doesn’t work on Ubuntu Desktop 17. The setup script won’t even run since it is not suppoerted. I haven’t tried it on 16 LTS or 14 LTS versions.

Got it further by installing systemd using
apt-get install systemd libpam-systemd

but now at the next hurdle:
TASK [ntpd : Install ntpd] **************************************************************************************
ok: [localhost] => (item=[u’ntp’, u’ntpdate’])

TASK [ntpd : enable ntpd] ***************************************************************************************
fatal: [localhost]: FAILED! => {“changed”: false, “failed”: true, “msg”: “Error loading unit file ‘ntp’: org.freedesktop.DBus.Error.FileNotFound "No such file or directory"”}
to retry, use: --limit @/tmp/.bench/playbooks/production/install.retry

PLAY RECAP ******************************************************************************************************
localhost : ok=14 changed=3 unreachable=0 failed=1

Traceback (most recent call last):
File “install.py”, line 388, in
install_bench(args)
File “install.py”, line 114, in install_bench
run_playbook(‘production/install.yml’, sudo=True, extra_vars=extra_vars)
File “install.py”, line 326, in run_playbook
success = subprocess.check_call(args, cwd=os.path.join(cwd, ‘playbooks’))
File “/usr/lib/python2.7/subprocess.py”, line 540, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command ‘[‘ansible-playbook’, ‘-c’, ‘local’, ‘production/install.yml’, ‘-e’, ‘@/tmp/extra_vars.json’, ‘–become’, ‘–become-user=frappe’]’ returned non-zero exit status 2

will keep diging but it looks like the ubuntu depenencies for desktop is not complete as none of this appear on the server version of ubuntu 14

am using ubuntu latest version with MATE Desktop Environment 1.12.1
looks the Redis not working well cuz I run sudo python install.py --develop --user frappe again and got this error

Hit:1 http://archive.ubuntu.com/ubuntu xenial InRelease
Reading package lists... Done
Reading package lists... Done
Building dependency tree       
Reading state information... Done
build-essential is already the newest version (12.1ubuntu2).
libffi-dev is already the newest version (3.2.1-4).
python-dev is already the newest version (2.7.11-1).
python-setuptools is already the newest version (20.7.0-1).
libssl-dev is already the newest version (1.0.2g-1ubuntu4.8).
git is already the newest version (1:2.7.4-0ubuntu1.3).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up redis-server (2:3.0.6-1) ...
Job for redis-server.service failed because the control process exited with error code. See "systemctl status redis-server.service" and "journalctl -xe" for details.
invoke-rc.d: initscript redis-server, action "start" failed.
● redis-server.service - Advanced key-value store
   Loaded: loaded (/lib/systemd/system/redis-server.service; enabled; vendor preset: enabled)
   Active: activating (auto-restart) (Result: exit-code) since ن 2017-10-16 17:57:47 AST; 4ms ago
     Docs: http://redis.io/documentation,
           man:redis-server(1)
  Process: 62202 ExecStart=/usr/bin/redis-server /etc/redis/redis.conf (code=exited, status=1/FAILURE)
  Process: 62198 ExecStartPre=/bin/run-parts --verbose /etc/redis/redis-server.pre-up.d (code=exited, status=0/SUCCESS)

أكت 16 17:57:47 erpnext systemd[1]: redis-server.service: Unit entered f...e.
أكت 16 17:57:47 erpnext systemd[1]: redis-server.service: Failed with re...'.
Hint: Some lines were ellipsized, use -l to show in full.
dpkg: error processing package redis-server (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 redis-server
E: Sub-process /usr/bin/dpkg returned an error code (1)
Traceback (most recent call last):
  File "install.py", line 388, in <module>
    install_bench(args)
  File "install.py", line 21, in install_bench
    'sudo yum install -y epel-release redhat-lsb-core git python-setuptools python-devel openssl-devel libffi-devel'
  File "install.py", line 222, in run_os_command
    returncode = subprocess.check_call(command, shell=True)
  File "/usr/lib/python2.7/subprocess.py", line 541, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command 'sudo apt-get install -y git build-essential python-setuptools python-dev libffi-dev libssl-dev' returned non-zero exit status 100

@kyabroudi

Are you using LTS 16.04?

Did run smoothly the following commands:

sudo apt-get update
Then
sudo apt-get upgrade

It seem you have some leftovers:
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.