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 👍
<@743532656767270934> The failed imports are still showing in the Console, any guidance on how to remove these?
u will need manual work from what i can tell, i dont think we support cleanup atm
<@743532656767270934> I don't want to go into the instance/DB and start removing stuff, could I get some direction as to where the imports are stored?
you should be able to connect to mysql given the password and username in ur env
Recommended threads
- Appwrite-injected variables are not avai...
I am using rust-1.83 as a runtime and try to access APPWRITE_FUNCTION_API_ENDPOINT or APPWRITE_FUNCTION_API_KEY during runtime. Both are not set during my execu...
- OAuth Missing redirect URL
Hello all, on a Flutter mobile app with latest Appwrite dependency (25.4.0) I always got "Missing redirect URL" - "Your OAuth login flow is missing a proper red...
- relationships bug or error idk
hey every one, am using am using appwrite on a project and ran into a problem where by created a relationship and two way to be specific and it is stuck on proc...