[GH-ISSUE #2465] Folder > frontend_dist - Not Found (When Upgrading from 1.17.0 to 2.0.0-beta.3) #1607

Closed
opened 2026-02-27 11:18:04 +03:00 by kerem · 8 comments
Owner

Originally created by @michael-v-bloom on GitHub (Feb 18, 2022).
Original GitHub issue: https://github.com/modoboa/modoboa/issues/2465

Impacted versions

  • OS Type: Ubuntu
  • OS Version: 20.04 (LTS) x64
  • Database Type: MySQL
  • Database version: 15.1
  • Modoboa: 1.17.0
  • installer used: Yes
  • Webserver: Nginx

Steps to reproduce

We're trying to upgrade our current version of Modoboa to the Beta version with new Admin interface.

So, we followed the steps from the upgrade guide:

First we activate the dev environment:
> source /srv/modoboa/env/bin/activate

Then we execute the commands for the upgrade:
> pip install modoboa==2.0.0-beta.3
> cd /srv/modoboa/instance

Then we follow the next step:
> python manage.py migrate

The output is:

Operations to perform:
  Apply all migrations: admin, auth, authtoken, contenttypes, core, dnstools, lib, limits, maillog, modoboa_amavis, modoboa_contacts, modoboa_postfix_autoreply, modoboa_radicale, otp_static, otp_totp, relaydomains, reversion, sessions, sites, transport
Running migrations:
  No migrations to apply. 

Then we do:
> python manage.py collectstatic

The output is:

You have requested to collect static files at the destination
location as specified in your settings:

    /srv/modoboa/instance/sitestatic

This will overwrite existing files!
Are you sure you want to do this?

Type 'yes' to continue, or 'no' to cancel:

We type YES and the output is:

Type 'yes' to continue, or 'no' to cancel: yes
Found another file with the destination path 'index.html'. It will be ignored since only the first encountered file is collected. If this is not what you want, make sure every static file has a unique path.

0 static files copied to '/srv/modoboa/instance/sitestatic', 3150 unmodified.
(env) dmail@mail:/srv/modoboa/instance$ python manage.py check --deploy
System check identified some issues:

WARNINGS:
?: (modoboa-amavis.W001) AMAVIS_DEFAULT_DATABASE_ENCODING does not match the character encoding used by the Amavis database.
	HINT: Check your database character encoding and set/update AMAVIS_DEFAULT_DATABASE_ENCODING.
?: (security.W001) You do not have 'django.middleware.security.SecurityMiddleware' in your MIDDLEWARE so the SECURE_HSTS_SECONDS, SECURE_CONTENT_TYPE_NOSNIFF, SECURE_BROWSER_XSS_FILTER, and SECURE_SSL_REDIRECT settings will have no effect.

System check identified 2 issues (3 silenced).

Then we go to the version specific instructions where we need to copy Frontend files from frontend_dist to new frontend folder:
> mkdir /srv/modoboa/instance/frontend
> cp -r /srv/modoboa/env/lib/python3.8/site-packages/modoboa/frontend_dist/* /srv/modoboa/instance/frontend

But, the output is that the folder /srv/modoboa/env/lib/python3.8/site-packages/modoboa/frontend_dist/ doesn't exists...

Current behavior

/srv/modoboa/env/lib/python3.8/site-packages/modoboa/frontend_dist/ doesn't exists

Did we missed something? We checked all other issues and discussions related to this and other upgrades, but we've found nothing that could help. Any ideas @tonioo what it could be?

Thank you.
Michael

Originally created by @michael-v-bloom on GitHub (Feb 18, 2022). Original GitHub issue: https://github.com/modoboa/modoboa/issues/2465 # Impacted versions * OS Type: Ubuntu * OS Version: 20.04 (LTS) x64 * Database Type: MySQL * Database version: 15.1 * Modoboa: 1.17.0 * installer used: Yes * Webserver: Nginx # Steps to reproduce We're trying to upgrade our current version of Modoboa to the Beta version with new Admin interface. So, we followed the steps from the upgrade guide: First we activate the dev environment: `> source /srv/modoboa/env/bin/activate` Then we execute the commands for the upgrade: `> pip install modoboa==2.0.0-beta.3` `> cd /srv/modoboa/instance` Then we follow the next step: `> python manage.py migrate` The output is: ``` Operations to perform: Apply all migrations: admin, auth, authtoken, contenttypes, core, dnstools, lib, limits, maillog, modoboa_amavis, modoboa_contacts, modoboa_postfix_autoreply, modoboa_radicale, otp_static, otp_totp, relaydomains, reversion, sessions, sites, transport Running migrations: No migrations to apply. ``` Then we do: `> python manage.py collectstatic` The output is: ``` You have requested to collect static files at the destination location as specified in your settings: /srv/modoboa/instance/sitestatic This will overwrite existing files! Are you sure you want to do this? Type 'yes' to continue, or 'no' to cancel: ``` We type YES and the output is: ``` Type 'yes' to continue, or 'no' to cancel: yes Found another file with the destination path 'index.html'. It will be ignored since only the first encountered file is collected. If this is not what you want, make sure every static file has a unique path. 0 static files copied to '/srv/modoboa/instance/sitestatic', 3150 unmodified. (env) dmail@mail:/srv/modoboa/instance$ python manage.py check --deploy System check identified some issues: WARNINGS: ?: (modoboa-amavis.W001) AMAVIS_DEFAULT_DATABASE_ENCODING does not match the character encoding used by the Amavis database. HINT: Check your database character encoding and set/update AMAVIS_DEFAULT_DATABASE_ENCODING. ?: (security.W001) You do not have 'django.middleware.security.SecurityMiddleware' in your MIDDLEWARE so the SECURE_HSTS_SECONDS, SECURE_CONTENT_TYPE_NOSNIFF, SECURE_BROWSER_XSS_FILTER, and SECURE_SSL_REDIRECT settings will have no effect. System check identified 2 issues (3 silenced). ``` Then we go to the version specific instructions where we need to copy Frontend files from **frontend_dist** to new **frontend** folder: `> mkdir /srv/modoboa/instance/frontend` `> cp -r /srv/modoboa/env/lib/python3.8/site-packages/modoboa/frontend_dist/* /srv/modoboa/instance/frontend` But, the output is that the folder **/srv/modoboa/env/lib/python3.8/site-packages/modoboa/frontend_dist/** doesn't exists... # Current behavior **/srv/modoboa/env/lib/python3.8/site-packages/modoboa/frontend_dist/** doesn't exists Did we missed something? We checked all other issues and discussions related to this and other upgrades, but we've found nothing that could help. Any ideas @tonioo what it could be? Thank you. Michael
kerem closed this issue 2026-02-27 11:18:04 +03:00
Author
Owner

@tonioo commented on GitHub (Feb 21, 2022):

@michael-v-bloom Can you list the folder content please?

<!-- gh-comment-id:1046908176 --> @tonioo commented on GitHub (Feb 21, 2022): @michael-v-bloom Can you list the folder content please?
Author
Owner

@michael-v-bloom commented on GitHub (Feb 21, 2022):

@tonioo
Here are the contents for: /srv/modoboa/env/lib/python3.8/site-packages/modoboa

__pycache__
admin
bower_components
core
dnstools
parameters
ldapsync
lib
limits
locale
maillog
policyd
relaydomains
static
transport
templates
__init__.py
test_settings.py
urls.py
urls_api.py
<!-- gh-comment-id:1047038822 --> @michael-v-bloom commented on GitHub (Feb 21, 2022): @tonioo Here are the contents for: **/srv/modoboa/env/lib/python3.8/site-packages/modoboa** ``` __pycache__ admin bower_components core dnstools parameters ldapsync lib limits locale maillog policyd relaydomains static transport templates __init__.py test_settings.py urls.py urls_api.py ```
Author
Owner

@michael-v-bloom commented on GitHub (Apr 7, 2022):

@tonioo
Follow up: any success with this?

<!-- gh-comment-id:1091778521 --> @michael-v-bloom commented on GitHub (Apr 7, 2022): @tonioo Follow up: any success with this?
Author
Owner

@tonioo commented on GitHub (May 3, 2022):

@michael-v-bloom Sorry for the late reply. I just tried to install the beta3 package in a test virtualenv and I can see the frontend_dist folder as expected...
I'm using python 3.9 with an up-to-date pip. Have you tried to update pip?

<!-- gh-comment-id:1116208750 --> @tonioo commented on GitHub (May 3, 2022): @michael-v-bloom Sorry for the late reply. I just tried to install the beta3 package in a test virtualenv and I can see the frontend_dist folder as expected... I'm using python 3.9 with an up-to-date pip. Have you tried to update pip?
Author
Owner

@tonioo commented on GitHub (May 3, 2022):

And I used this command:

pip install --pre modoboa
<!-- gh-comment-id:1116209380 --> @tonioo commented on GitHub (May 3, 2022): And I used this command: ``` pip install --pre modoboa ```
Author
Owner

@cremesk commented on GitHub (Apr 22, 2023):

hi,

i upgrade my modoboa today to version 2.1.0 .
it looks good.. but i'm not able to upgrade the frontend..

https://modoboa.readthedocs.io/en/latest/upgrade.html#new-admin-interface

frontend_dist/ doesn't exists in /srv/modoboa/env/lib/python3.9/site-packages/modoboa

ls -lah  /srv/modoboa/env/lib/python3.9/site-packages/modoboa
total 112K
drwxr-xr-x  21 modoboa modoboa 4.0K Apr 22 08:40 .
drwxr-xr-x 191 modoboa modoboa  12K Apr 22 08:40 ..
-rw-r--r--   1 modoboa modoboa  236 Apr 22 08:40 __init__.py
drwxr-xr-x   2 modoboa modoboa 4.0K Apr 22 08:40 __pycache__
drwxr-xr-x  14 modoboa modoboa 4.0K Apr 22 08:40 admin
drwxr-xr-x  14 modoboa modoboa 4.0K Apr 22 08:40 bower_components
drwxr-xr-x  15 modoboa modoboa 4.0K Apr 22 08:40 core
drwxr-xr-x   9 modoboa modoboa 4.0K Apr 22 08:40 dmarc
drwxr-xr-x   7 modoboa modoboa 4.0K Apr 22 08:40 dnstools
drwxr-xr-x   7 modoboa modoboa 4.0K Apr 22 08:40 imap_migration
drwxr-xr-x   4 modoboa modoboa 4.0K Apr 22 08:40 ldapsync
drwxr-xr-x   6 modoboa modoboa 4.0K Apr 22 08:40 lib
drwxr-xr-x   8 modoboa modoboa 4.0K Apr 22 08:40 limits
drwxr-xr-x  31 modoboa modoboa 4.0K Apr 22 08:40 locale
drwxr-xr-x  10 modoboa modoboa 4.0K Apr 22 08:40 maillog
drwxr-xr-x   5 modoboa modoboa 4.0K Apr 22 08:40 parameters
drwxr-xr-x   5 modoboa modoboa 4.0K Apr 22 08:40 pdfcredentials
drwxr-xr-x   5 modoboa modoboa 4.0K Apr 22 08:40 policyd
drwxr-xr-x   6 modoboa modoboa 4.0K Apr 22 08:40 relaydomains
drwxr-xr-x   5 modoboa modoboa 4.0K Apr 22 08:40 static
drwxr-xr-x   4 modoboa modoboa 4.0K Apr 22 08:40 templates
-rw-r--r--   1 modoboa modoboa 2.1K Apr 22 08:40 test_settings.py
drwxr-xr-x   8 modoboa modoboa 4.0K Apr 22 08:40 transport
-rw-r--r--   1 modoboa modoboa 3.6K Apr 22 08:40 urls.py
-rw-r--r--   1 modoboa modoboa  474 Apr 22 08:40 urls_api_v1.py
-rw-r--r--   1 modoboa modoboa  809 Apr 22 08:40 urls_api_v2.py
<!-- gh-comment-id:1518570186 --> @cremesk commented on GitHub (Apr 22, 2023): hi, i upgrade my modoboa today to version 2.1.0 . it looks good.. but i'm not able to upgrade the frontend.. https://modoboa.readthedocs.io/en/latest/upgrade.html#new-admin-interface `frontend_dist/` doesn't exists in `/srv/modoboa/env/lib/python3.9/site-packages/modoboa` ``` ls -lah /srv/modoboa/env/lib/python3.9/site-packages/modoboa total 112K drwxr-xr-x 21 modoboa modoboa 4.0K Apr 22 08:40 . drwxr-xr-x 191 modoboa modoboa 12K Apr 22 08:40 .. -rw-r--r-- 1 modoboa modoboa 236 Apr 22 08:40 __init__.py drwxr-xr-x 2 modoboa modoboa 4.0K Apr 22 08:40 __pycache__ drwxr-xr-x 14 modoboa modoboa 4.0K Apr 22 08:40 admin drwxr-xr-x 14 modoboa modoboa 4.0K Apr 22 08:40 bower_components drwxr-xr-x 15 modoboa modoboa 4.0K Apr 22 08:40 core drwxr-xr-x 9 modoboa modoboa 4.0K Apr 22 08:40 dmarc drwxr-xr-x 7 modoboa modoboa 4.0K Apr 22 08:40 dnstools drwxr-xr-x 7 modoboa modoboa 4.0K Apr 22 08:40 imap_migration drwxr-xr-x 4 modoboa modoboa 4.0K Apr 22 08:40 ldapsync drwxr-xr-x 6 modoboa modoboa 4.0K Apr 22 08:40 lib drwxr-xr-x 8 modoboa modoboa 4.0K Apr 22 08:40 limits drwxr-xr-x 31 modoboa modoboa 4.0K Apr 22 08:40 locale drwxr-xr-x 10 modoboa modoboa 4.0K Apr 22 08:40 maillog drwxr-xr-x 5 modoboa modoboa 4.0K Apr 22 08:40 parameters drwxr-xr-x 5 modoboa modoboa 4.0K Apr 22 08:40 pdfcredentials drwxr-xr-x 5 modoboa modoboa 4.0K Apr 22 08:40 policyd drwxr-xr-x 6 modoboa modoboa 4.0K Apr 22 08:40 relaydomains drwxr-xr-x 5 modoboa modoboa 4.0K Apr 22 08:40 static drwxr-xr-x 4 modoboa modoboa 4.0K Apr 22 08:40 templates -rw-r--r-- 1 modoboa modoboa 2.1K Apr 22 08:40 test_settings.py drwxr-xr-x 8 modoboa modoboa 4.0K Apr 22 08:40 transport -rw-r--r-- 1 modoboa modoboa 3.6K Apr 22 08:40 urls.py -rw-r--r-- 1 modoboa modoboa 474 Apr 22 08:40 urls_api_v1.py -rw-r--r-- 1 modoboa modoboa 809 Apr 22 08:40 urls_api_v2.py ```
Author
Owner

@Spitfireap commented on GitHub (Apr 22, 2023):

Hi, we are having an issue with the deployment, a patch is being worked on.

<!-- gh-comment-id:1518570706 --> @Spitfireap commented on GitHub (Apr 22, 2023): Hi, we are having an issue with the deployment, a patch is being worked on.
Author
Owner

@cremesk commented on GitHub (Apr 23, 2023):

fixed in 2.1.1. thx!

<!-- gh-comment-id:1518993036 --> @cremesk commented on GitHub (Apr 23, 2023): fixed in 2.1.1. thx!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/modoboa-modoboa#1607
No description provided.