With 1.9.5 Self-Hosted on a remote Debian 13 VPS I was trying to upload some data using the Import from CSV function. After following the Docs I created a csv file with no $ variables as I am happy for Appwrite to generate these, all other data is provided as per the docs, I click Upload and all I see is a list of in progress imports. Picture attached. I have only found one reference to csv so far in appwrite log:
appwrite | http.request · 17.5ms · cb8d1194
appwrite |
appwrite | level info
appwrite | http.method POST
appwrite | http.path /v1/migrations/csv/imports
appwrite | http.response.code 202
So I looked at docker compose logs appwrite-worker-migrations and see the following:
appwrite-worker-migrations | [Error] Type: Exception
appwrite-worker-migrations | [Error] Message: _APP_MIGRATION_HOST is not set
appwrite-worker-migrations | [Error] File: /usr/src/code/src/Appwrite/Platform/Workers/Migrations.php
appwrite-worker-migrations | [Error] Line: 500
Looking in the Docs, this variable is not mentioned. In the .env from the Docs we have _APP_MIGRATION_HOST=appwrite but its not in the appwrite-worker-migrations environment list in the docker-compose.yml.
I added _APP_MIGRATION_HOST=appwrite to the appwrite-worker-migrations environment section and tried again and it worked without any delays.
How do I now get rid of the pending CSV imports? I can only assume these have failed and are not being closed properly byt the Console!! Clicking the X closes the popup, however on refreshing page the list re-appears. FYI after refreshing the page the completed import has disappeared, the rest remain!!
<@1458145783156310273> do you have _APP_MIGRATION_HOST=appwrite in ur .env?
he said it : "I added _APP_MIGRATION_HOST=appwrite to the appwrite-worker-migrations environment section and tried again and it worked without any delays."
tho his question, is more how to remove the leftover CSV imports that are stuck from before the .env addition.
Yes, it was present in the default .env in the Docs and without knowing what it was for I left it alone.
Just a little edit as I just noticed a mistake I made, I should have said that I added _APP_MIGRATION_HOST to the appwrite-worker-migrations environment section in the docker.compose.yml.
As this is was a new install after previous upgrade failure I got the files from the Docs and the current version of the docker-compose.yml does not have the _APP_MIGRATION_HOST variable in the appwrite-worker-migrations but it is present in the Github repo!
I just looked again and the list of failed imports is still showing in the console!
oh good catch, ye that's a possible bug, as they kinda copy the compose from github to the website when self-hosted is released, but is not synced with updates
that's possible that it should be removed from the db directly (using sql or mongocli)
tho i will let Chirag confirm when he's back
Thanks I will wait for some guidance, dont want to break something and have to start the whole process again 👍
Recommended threads
- Fatal error: Allowed memory size of 5368...
Hi how solved it worker-messaging infinite reload ` Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 28672 bytes) in /usr/src/co...
- How to successfully migrate from 1.9.0 t...
I've tried the automatic tool for migration but my Appwrite (self-hosted) went to a broken state. My functions wouldn't deploy anymore, some things just didn't ...
- [1.9.5] Functions building indefinitely ...
I try to deploy some function, it show "Building..." during minutes and freeze the entire server. Here is the result of `docker logs appwrite-worker-builds` `...