How to run 'manage.py update_index_one_list' command.
I am importing old archives mbox files from Mailman2. I have fixed the archive mail address to reflect the address of the destination import.
These are the steps:
1. sed 's|oldlist@oldexample\.org|testlist@example\.org|g' mbox > mbox.testlist
2. /opt/mailman/mm/bin/django-admin hyperkitty_import --since 01/01/1990 -l testlist@example.org mbox.testlist
The output of the last command is:
Computing thread structure
Synchronizing properties with Mailman
Warming up cache
The full-text search index is not updated for this list. It will
not be updated by the 'minutely' incremental update job.
To update the index for this list, run the 'manage.py
update_index_one_list testlist@example.org' command.
The result is that the e-mail's are imported but not indexed.
To finalize this process I am seeking manage.py that will execute the update index command.
I am on a Debian 10 with Mailman3 in /opt.
locate manage.py
returns:
/opt/mailman/mm/venv/lib/python3.7/site-packages/django/conf/project_template/manage.py-tpl /opt/mailman/mm/venv/lib/python3.7/site-packages/example_project/manage.py /opt/mailman/mm/venv/lib/python3.7/site-packages/falcon/bench/dj/manage.py
None of these python files can execute the needed command.
What can I do to get the newly imported posts indexed?
Regards,
Frank
On 2/25/20 6:26 PM, Frank van den Heuvel wrote:
What can I do to get the newly imported posts indexed?
I am not sure if this would be helpful but you can try running:
/opt/mailman/mm/bin/mailman-post-update
-- Please let me know if you need further assistance.
Thank you for your business. We appreciate our clients. Brian Carpenter EMWD.com
-- EMWD's Knowledgebase: https://clientarea.emwd.com/index.php/knowledgebase
EMWD's Community Forums http://discourse.emwd.com/
Mailman 2 & 3 Hosting https://www.mailmanhost.com
On 2/25/20 3:46 PM, Brian Carpenter wrote:
On 2/25/20 6:26 PM, Frank van den Heuvel wrote:
What can I do to get the newly imported posts indexed?
I am not sure if this would be helpful but you can try running:
/opt/mailman/mm/bin/mailman-post-update
That won't help for this, although the contents of that script, if he has it, will point to the correct Django management command.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
Thank you Brian. This one works: had to respond yes in the end to get the actual indexing done.
Kinds regards,
Frank
Op 26-02-2020 om 00:46 schreef Brian Carpenter:
On 2/25/20 6:26 PM, Frank van den Heuvel wrote:
What can I do to get the newly imported posts indexed?
I am not sure if this would be helpful but you can try running:
/opt/mailman/mm/bin/mailman-post-update
--
Met vriendelijke groet, Frank van den Heuvel
HeuvelTop ICT Diensten 030 602 22 22www.heuveltop.nl <http://www.heuveltop.nl>
Because e-mail can be altered electronically, the integrity of this communication cannot be guaranteed.
Sympathy is our strongest instinct - Darwin
Sympathie is ons krachtigste instinct. - Darwin
On 2/25/20 3:26 PM, Frank van den Heuvel wrote:
To finalize this process I am seeking manage.py that will execute the update index command.
In your case it is just /opt/mailman/mm/bin/django-admin
The issue is we don't in general know exactly how Django has been installed or what the management command is, byt hyperkitty_import should be able to figure out how it was invoked and use that.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
On 2/25/20 7:09 PM, Mark Sapiro wrote:
The issue is we don't in general know exactly how Django has been installed or what the management command is, byt hyperkitty_import should be able to figure out how it was invoked and use that.
I did their installation for them basically using your setup listed at:
https://wiki.list.org/DOC/Mailman%203%20installation%20experience
I used a venv and pip to install the various components:
pip install mailman pip install hyperkitty pip install postorius pip install mailman-hyperkitty
-- Please let me know if you need further assistance.
Thank you for your business. We appreciate our clients. Brian Carpenter EMWD.com
-- EMWD's Knowledgebase: https://clientarea.emwd.com/index.php/knowledgebase
EMWD's Community Forums http://discourse.emwd.com/
Mailman 2 & 3 Hosting https://www.mailmanhost.com
-- Please let me know if you need further assistance.
Thank you for your business. We appreciate our clients. Brian Carpenter EMWD.com
-- EMWD's Knowledgebase: https://clientarea.emwd.com/index.php/knowledgebase
EMWD's Community Forums http://discourse.emwd.com/
On 2/25/20 4:09 PM, Mark Sapiro wrote:
The issue is we don't in general know exactly how Django has been installed or what the management command is, byt hyperkitty_import should be able to figure out how it was invoked and use that.
See https://gitlab.com/mailman/hyperkitty/issues/281 and see if you like my suggestion or have a better idea.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
participants (3)
-
Brian Carpenter
-
Frank van den Heuvel
-
Mark Sapiro