Web Developer
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!!