modoboa / modoboa-imap-migration

An extension to ease the migration between 2 IMAP servers using offlineimap
ISC License
16 stars 12 forks source link

Everything appears installed, but configuration pages are empty: #57

Closed theitmachine closed 3 years ago

theitmachine commented 4 years ago

-Ubuntu 18.04.3 -No errors in logs -CronJob Runs

Name | Installed version | Last version | Description
-- | -- | -- | --
Modoboa | 1.14.0 | 1.14.0 | The core part of Modoboa
Amavis frontend | 1.2.3 | 1.2.3 | Simple amavis management frontend
Contacts | 0.7.3 | 0.7.3 | Address book
IMAP migration using OfflineIMAP | 1.3.3 | 1.3.3 | Migrate existing mailboxes using IMAP and OfflineIMAP
PDF credentials | 1.3.2 | 1.3.2 | Generate PDF documents containing users' credentials
Postfix autoreply | 1.5.1 | 1.5.1 | Auto-reply (vacation) functionality using Postfix
Radicale management | 1.3.6 | 1.3.6 | Management frontend for Radicale, a simple calendar and contact server.
Sieve filters | 1.4.2 | 1.4.2 | Plugin to easily create server-side filters
Statistics | 1.4.1 | 1.4.1 | Graphical statistics about emails traffic using RRDtool
Webmail | 1.5.0 | 1.5.0 | Simple IMAP webmail

Can't find where to enter information about old servers, either I am missing something in the setup or there's a problem.

Under the main page "Imap Migrations" tab, the resulting page is blank. View source shows no content at all.

Under ModoBoa -> Parameters -> Imap Migration

Current Sync Jobs 1
Create Folders Yes
Folder filter Exclusions Blank
Folder Filter Inclusions blank

Save  

What am I doing wrong?

theitmachine commented 4 years ago

Additional: Seeing 404 errors when digging into the page source on the "IMAP Migrations" tab from the main page

> Failed to load resource: the server responded with a status of 404 (Not Found)
> chunk-vendors.5f40bc64.js:1 Failed to load resource: the server responded with a status of 404 (Not Found)
> app.91979a7d.js:1 Failed to load resource: the server responded with a status of 404 (Not Found)
> chunk-vendors.5f40bc64.js:1 Failed to load resource: the server responded with a status of 404 (Not Found)
> app.91979a7d.js:1 Failed to load resource: the server responded with a status of 404 (Not Found)
> app.ce08a9d0.css:1 Failed to load resource: the server responded with a status of 404 (Not Found

https://somedomain/sitestatic/modoboa_imap_migration/js/app.91979a7d.js is the URL that's not found from above.

Doesn't look like /srv/modoboa/instance/sitestatic/modoboa_imap_migration exists.

Getting this when I run setup.py

(``` env) modoboa@itmpop2:~/modoboa-imap-migration$ python setup.py install running install running bdist_egg running egg_info writing requirements to modoboa_imap_migration.egg-info/requires.txt writing modoboa_imap_migration.egg-info/PKG-INFO writing top-level names to modoboa_imap_migration.egg-info/top_level.txt writing dependency_links to modoboa_imap_migration.egg-info/dependency_links.txt reading manifest template 'MANIFEST.in' warning: no files found matching 'COPYING' warning: no files found matching '.js' under directory 'modoboa_imap_migration' warning: no files found matching '.css' under directory 'modoboa_imap_migration' warning: no files found matching '.mo' under directory 'modoboa_imap_migration' warning: no files found matching '.json' under directory 'modoboa_imap_migration' warning: no files found matching '*' under directory 'doc' writing manifest file 'modoboa_imap_migration.egg-info/SOURCES.txt' installing library code to build/bdist.linux-x86_64/egg



)
tonioo commented 4 years ago

@theitmachine Have you run the collectstatic command?

theitmachine commented 4 years ago

Thanks for the quick response: Here's the output of the commands to install an extension from: https://modoboa.readthedocs.io/en/latest/installation.html

modoboa_imap_migration.txt

On the Imap Migration Tab I now get Sorry An internal Error Occured.

Errors on page in Source Viewer are:

Uncaught Error: Bootstrap's JavaScript requires jQuery at bootstrap.min.js:6 bootstrap-datetimepicker.min.js:1 Uncaught bootstrap-datetimepicker requires jQuery to be loaded first

andretux commented 4 years ago

I am getting the same errors now. Any idea how to fix it?

tonioo commented 4 years ago

@andretux Can you set DEBUG to True inside settings.py, reload uwsgi and check the response tab in your browser console pleasE?

n00dl3 commented 4 years ago

I had the same issue, and indeed, it was due to some js not being properly loaded (404 error in chrome debugger). I had to run the collectstatic command :

cd /srv/modoboa/instance
python ./manage.py collectstatic