Back

Appwrite CLI timeouting on pushing collection

  • 0
  • Databases
  • Cloud
mtj01
9 Mar, 2025, 09:35

I have this collection in my appwrite.json file that I want to push to the cloud instance. It's one of several collections.

But every time I push it with cli command, after a while I get this error:

TypeScript
Error: 
 Stack Trace:

Error: Attribute creation timed out.
    at createAttributes (C:\Users\Korisnik\AppData\Roaming\nvm\v22.13.1\node_modules\appwrite-cli\lib\commands\push.js:889:15)
    at async pushCollection (C:\Users\Korisnik\AppData\Roaming\nvm\v22.13.1\node_modules\appwrite-cli\lib\commands\push.js:1428:13)
TypeScript
    {
            "$id": "time_entries",
            "name": "Time Entries",
            "databaseId": "tikky_db",
            "attributes": [
                {
                    "key": "name",
                    "type": "string",
                    "required": true,
                    "size": 256
                },
                {
                    "key": "description",
                    "type": "string",
                    "required": false,
                    "size": 4000
                },
                {
                    "key": "projectId",
                    "type": "string",
                    "required": false,
                    "size": 36
                },
                {
                    "key": "clientId",
                    "type": "string",
                    "required": false,
                    "size": 36
                },
                {
                    "key": "organizationId",
                    "type": "string",
                    "required": true,
                    "size": 36
                },
                {
                    "key": "userId",
                    "type": "string",
                    "required": true,
                    "size": 36
                },
                {
                    "key": "userUpdated",
                    "type": "string",
                    "required": false,
                    "size": 36
                },
                {
                    "key": "createdAt",
                    "type": "datetime",
                    "required": true
                },
                {
                    "key": "updatedAt",
                    "type": "datetime",
                    "required": false
                },
                {
                    "key": "deletedAt",
                    "type": "datetime",
                    "required": false
                },
                {
                    "key": "invoicedAt",
                    "type": "datetime",
                    "required": false
                },
                {
                    "key": "invoiceId",
                    "type": "string",
                    "required": false,
                    "size": 100
                },
                {
                    "key": "hoursWorked",
                    "type": "float",
                    "required": true
                },
                {
                    "key": "isOvertime",
                    "type": "boolean",
                    "required": false
                }
            ],
            "$permissions": [
                "read(\"users\")",
                "write(\"users\")",
                "update(\"users\")",
                "delete(\"users\")"
            ],
            "indexes": [
                { "$id": "idx_createdAt", "type": "key", "attributes": ["createdAt"] },
                { "$id": "idx_userId", "type": "key", "attributes": ["userId"] },
                { "$id": "idx_org_proj", "type": "key", "attributes": ["organizationId", "projectId"] },
                { "$id": "idx_clientId", "type": "key", "attributes": ["clientId"] }
            ],
            "enabled": true
        },
TL;DR
Appwrite CLI is timing out when trying to push a collection to the cloud instance. The error message indicates that the attribute creation process is taking too long. One possible solution is to increase the timeout settings for the CLI to allow it more time for the operation to complete successfully.
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