Back

Custom Domain general_route_not_found

  • 0
  • Self Hosted
SenZi
31 Aug, 2023, 19:27

Hi, After migrating to 1.4.1, the custom domains i have setup has disappeared and adding new custom domain isn't working as well. The custom domain shows general_route_not_found.

TL;DR
Custom domain not found after migration to version 1.4.1. Fatal error due to invalid cursor. It is recommended to backup data before upgrades. No backup available in this instance. Suggested solution is to restore to previous version and then upgrade to 1.4.1. Error message during migration indicates missing required attribute and duplicate entry for domain. Relevant link: https://discord.com/channels/564160730845151244/1146540531770478753/1146568591941050378.
SenZi
31 Aug, 2023, 19:36

doesnt seem to fix it

SenZi
31 Aug, 2023, 19:36
SenZi
31 Aug, 2023, 19:36

the migration seems to have messed things up as well. hopefully not everything is corrupted. 🤞🏻

SenZi
31 Aug, 2023, 19:38

Migrating gives the error:

Error migrating domain customdomain.example.com: Invalid document structure: Missing required attribute "projectId" Error migrating domain customdomain.example.com: Duplicated document: Duplicate entry 'faw.niotron.com' for key '_key_domain'

Drake
31 Aug, 2023, 19:40

any chance you can restore to previous version and the nupgrade to 1.4.1? though you should maybe wait for 1.4.2.

Also, what version were you on before?

SenZi
31 Aug, 2023, 19:41

i went from 1.3.8 to 1.4.0 then to 1.4.1

SenZi
31 Aug, 2023, 19:45

Unfortunately there is no backup for this instance, the console is working, i can see all the data in the database, anyway to backup those data and maybe not the (i guess corrupted) settings?

Drake
31 Aug, 2023, 19:49

if you care about data, always backup before upgrades/migrations.

Drake
31 Aug, 2023, 19:50

this could be due to duplicate domains added after the upgrade. it might be fine to ignore

Drake
31 Aug, 2023, 19:50

are you accessing appwrite via the domain configured in your env vars? That's the only allowed way to access your Appwrite Console

SenZi
31 Aug, 2023, 19:50

yes i am

SenZi
31 Aug, 2023, 19:51

the migration also has an issue

Fatal error: Uncaught Utopia\Database\Exception\Query: Invalid query: Invalid cursor: UID must contain at most 36 chars. Valid chars are a-z, A-Z, 0-9, and underscore. Can't start with a leading underscore in /usr/src/code/vendor/utopia-php/database/src/Database/Database.php:4061

Stack trace: #0 /usr/src/code/src/Appwrite/Migration/Migration.php(197): Utopia\Database\Database->find(Object(Utopia\Database\Document), Array) #1 /usr/src/code/src/Appwrite/Migration/Migration.php(154): Appwrite\Migration\Migration->documentsIterator('cache') #2 {main} thrown in /usr/src/code/vendor/utopia-php/database/src/Database/Database.php on line 4061

SenZi
31 Aug, 2023, 19:52

Do you think something might have been corrupted? If so i can get the data and redeploy appwrite

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more