How to import mailman2 into mailman3 in Docker, getting error with archives.
I know you can't run mailman commands in the docker images and I have to copy the data to an area where he docker images can access it, but in looking that the commands I got the list settings to import
docker exec -it mailman-core mailman import21 [REDACTED]@REDACTED].REDACTED].org /opt/mailman/migration/config.pck *** this worked
But having issues importing the archives? do i run this on mailman-core OR mailman-web? I tried both but it does not like python?
docker exec -it mailman-core python manage.py hyperkitty_import -l [REDACTED]@REDACTED].REDACTED].org /opt/mailman/migration/[REDACTED].mbox OCI runtime exec failed: exec failed: container_linux.go:380: starting container process caused: exec: "python": executable file not found in $PATH: unknown
For importing the archives, it's the mailman-web container. For me it was like:
python manage.py hyperkitty_import -l listxy@somedomain.org /opt/mailman-web-data/listxy.mbox
Before I connected into container as the user mailman!
Hope this helps.
Am 15.09.21 um 19:36 schrieb bob B:
I know you can't run mailman commands in the docker images and I have to copy the data to an area where he docker images can access it, but in looking that the commands I got the list settings to import
docker exec -it mailman-core mailman import21 [REDACTED]@REDACTED].REDACTED].org /opt/mailman/migration/config.pck *** this worked
But having issues importing the archives? do i run this on mailman-core OR mailman-web? I tried both but it does not like python?
docker exec -it mailman-core python manage.py hyperkitty_import -l [REDACTED]@REDACTED].REDACTED].org /opt/mailman/migration/[REDACTED].mbox OCI runtime exec failed: exec failed: container_linux.go:380: starting container process caused: exec: "python": executable file not found in $PATH: unknown
Mailman-users mailing list -- mailman-users@mailman3.org To unsubscribe send an email to mailman-users-leave@mailman3.org https://lists.mailman3.org/mailman3/lists/mailman-users.mailman3.org/
On 9/15/21 11:30 AM, Jens Günther wrote:
For importing the archives, it's the mailman-web container. For me it was like:
python manage.py hyperkitty_import -l listxy@somedomain.org /opt/mailman-web-data/listxy.mbox
Before I connected into container as the user mailman!
Also, you want to add the listxy.mbox at /opt/mailman/web/listxy.mbox on your host for the above command to work.
Hope this helps.
Am 15.09.21 um 19:36 schrieb bob B:
I know you can't run mailman commands in the docker images and I have to copy the data to an area where he docker images can access it, but in looking that the commands I got the list settings to import
docker exec -it mailman-core mailman import21 [REDACTED]@REDACTED].REDACTED].org /opt/mailman/migration/config.pck *** this worked
But having issues importing the archives? do i run this on mailman-core OR mailman-web? I tried both but it does not like python?
docker exec -it mailman-core python manage.py hyperkitty_import -l [REDACTED]@REDACTED].REDACTED].org /opt/mailman/migration/[REDACTED].mbox OCI runtime exec failed: exec failed: container_linux.go:380: starting container process caused: exec: "python": executable file not found in $PATH: unknown
Mailman-users mailing list -- mailman-users@mailman3.org To unsubscribe send an email to mailman-users-leave@mailman3.org https://lists.mailman3.org/mailman3/lists/mailman-users.mailman3.org/
Mailman-users mailing list -- mailman-users@mailman3.org To unsubscribe send an email to mailman-users-leave@mailman3.org https://lists.mailman3.org/mailman3/lists/mailman-users.mailman3.org/
-- thanks, Abhilash Raj (maxking)
I am a sorry i still don't understand,
So for docker I need to run the command via "docker exec -it mailman-web" right? Does this run it as user mailman in the docker image?
I have my archive copied from the old server and but in a location on my new docker host where it can be accessed by mailman-web image i.e /opt/mailman/web. which is the same location as /opt/mailman-web-data from inside mailman-web, right?
I then run the command
docker exec -it mailman-web python manage.py hyperkitty_import -l [Redacted]@[Redacted].[Redacted].org /opt/mailman-web-data/[Redacted].mbox
but I get the error:
OCI runtime exec failed: exec failed: container_linux.go:380: starting container process caused: exec: "python": executable file not found in $PATH: unknown
isn't this showing that it can't find python in the docker container to run the import????
Not sure where to go next?
On Thu, Sep 16, 2021, at 6:45 AM, bob B wrote:
I am a sorry i still don't understand,
So for docker I need to run the command via "docker exec -it mailman-web" right? Does this run it as user mailman in the docker image?
Yes.
I have my archive copied from the old server and but in a location on my new docker host where it can be accessed by mailman-web image i.e /opt/mailman/web. which is the same location as /opt/mailman-web-data from inside mailman-web, right?
That is correct.
I then run the command
docker exec -it mailman-web python manage.py hyperkitty_import -l [Redacted]@[Redacted].[Redacted].org /opt/mailman-web-data/[Redacted].mbox
but I get the error:
OCI runtime exec failed: exec failed: container_linux.go:380: starting container process caused: exec: "python": executable file not found in $PATH: unknown
isn't this showing that it can't find python in the docker container to run the import????
Sorry, I made a typo in the previous email. You want to run that
command with python3
instead of python
.
docker exec -it mailman-web python3 manage.py hyperkitty_import -l [Redacted]@[Redacted].[Redacted].org
And turns out the typo also exists in the docs at one place. I just opened this1 report to fix it.
-- thanks, Abhilash Raj (maxking)
Thanks,
That worked
docker exec -it mailman-web python3 manage.py hyperkitty_import -l .......
On 9/17/21 5:23 AM, bob B wrote:
Thanks,
That worked
docker exec -it mailman-web python3 manage.py hyperkitty_import -l .......
Great! I have added it to the docs as well, so others can find it.
https://asynchronous.in/docker-mailman/web/#importing-archives-from-mailman-...
-- thanks, Abhilash Raj (maxking)
participants (3)
-
Abhilash Raj
-
bob B
-
Jens Günther