question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot install on Ubuntu 16.04

See original GitHub issue

Hello. I am trying to install modoboa on digitalocean droplet. This is output of sudo ./run.py site.com --debug:

Welcome to Modoboa installer!
Your mail server sitename.com will be installed with the following components:
modoboa amavis clamav dovecot nginx razor postfix spamassassin uwsgi
Do you confirm? (Y/n) Y
The process can be long, feel free to take a coffee and come back later ;)
Starting...
Get:1 http://security.ubuntu.com/ubuntu xenial-security InRelease [94.5 kB]
Hit:2 http://mirrors.digitalocean.com/ubuntu xenial InRelease
Get:3 http://mirrors.digitalocean.com/ubuntu xenial-updates InRelease [95.7 kB]
Hit:4 http://mirrors.digitalocean.com/ubuntu xenial-backports InRelease
Fetched 190 kB in 0s (469 kB/s)
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
sudo is already the newest version (1.8.16-0ubuntu1.2).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Overwrite the existing SSL certificate? (y/N) N
Installing modoboa
Reading package lists...
Building dependency tree...
Reading state information...
build-essential is already the newest version (12.1ubuntu2).
cron is already the newest version (3.0pl1-128ubuntu2).
libffi-dev is already the newest version (3.2.1-4).
libjpeg-dev is already the newest version (8c-2ubuntu8).
librrd-dev is already the newest version (1.5.5-4).
libxslt1-dev is already the newest version (1.1.28-2.1).
python-dev is already the newest version (2.7.11-1).
rrdtool is already the newest version (1.5.5-4).
libxml2-dev is already the newest version (2.9.3+dfsg1-1ubuntu0.1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists...
Building dependency tree...
Reading state information...
postgresql is already the newest version (9.5+173).
postgresql-server-dev-all is already the newest version (173).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
0
-sh: 1: /srv/modoboa/env/bin/pip: not found
bash: /srv/modoboa/env/bin/activate: No such file or directory
bash: modoboa-admin.py: command not found
Traceback (most recent call last):
  File "./run.py", line 70, in <module>
    main()
  File "./run.py", line 60, in main
    scripts.install("modoboa", config)
  File "/home/andrew/modoboa-installer/modoboa_installer/scripts/__init__.py", line 21, in install
    getattr(script, appname.capitalize())(config).run()
  File "/home/andrew/modoboa-installer/modoboa_installer/scripts/base.py", line 151, in run
    self.post_run()
  File "/home/andrew/modoboa-installer/modoboa_installer/scripts/modoboa.py", line 157, in post_run
    self.apply_settings()
  File "/home/andrew/modoboa-installer/modoboa_installer/scripts/modoboa.py", line 132, in apply_settings
    utils.mkdir(d, stat.S_IRWXU | stat.S_IRWXG, pw[2], pw[3])
  File "/home/andrew/modoboa-installer/modoboa_installer/utils.py", line 79, in mkdir
    os.mkdir(path, mode)
OSError: [Errno 2] No such file or directory: '/srv/modoboa/instance/media/webmail'

I see there is a problem with pip, but it is installed. When I list files in /srv/modoboa/env/bin I get only: python python2 python2.7. How to fix installation?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
koxu1996commented, Oct 21, 2016

Nginx was running, but I gave up with installing own mail server, because clamav require much CPU speed and my VPS was lagging. Now I am using G Suite, but maybe someday I will switch to better computer and install modoboa.

0reactions
tonioocommented, Oct 21, 2016

@koxu1996 ping

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can't install ubuntu-16.04.4 on new PC
I presume you can boot from the USB stick, and the problem occurs when you try to actually install. It's likely you either...
Read more >
Install Ubuntu 16.04 desktop - Tutorials
This tutorial covers the installation of Ubuntu 16.04 LTS which released in 2016 and is now end-of-life. This means it is no longer...
Read more >
[Ubuntu 16.04] Cannot install via snap - Help
I've never seen Ubuntu 16 without snap - and can only assume something went far off course during the installation. That said, what...
Read more >
Cannot Install Fog on new Ubuntu 16.04 Server - FOG Project
I built a new Ubuntu 16.04 Server VM on XenCenter 6.5, installed XenTools, changed IP to static, and updated system to latest patch...
Read more >
I am unable to install Ubuntu 16.04 alongside Windows 10. In ...
You might have done something wrong. Go to the boot menu and try to boot it from EFI files. If, you have not...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found