Accessing self-hosted activepieces deployment on AWS using load balancer url

After using the deploy with pulumi option on the install page, I try using the url for the dev-alb load balancer that’s of the form
http://<alb name & id>.us-east-1.elb.amazonaws.com
as described in the install docs. The application hangs on an initial launch load wheel (screenshot attached)

Hi @tycecycle,

Is /api/v1/flags open? It might be AWS security rules blocking outbound traffic. This endpoint will verify whether there is a new version by reading from GitHub to show the notification.

I got a 502 bad gateway message

Hi @tycecycle

Can you please provide the logs of the container?

This is the CloudWatch log

[
    {
        "@timestamp": "2024-02-14 20:24:51.683",
        "@message": {
            "level": 50,
            "time": 1707942290356,
            "pid": 8,
            "hostname": "ip-10-0-74-72.ec2.internal",
            "err": {
                "type": "ActivepiecesError",
                "message": "SYSTEM_PROP_INVALID: System property AP_ENCRYPTION_KEY must be defined",
                "stack": "Error: SYSTEM_PROP_INVALID: System property AP_ENCRYPTION_KEY must be defined\n    at <anonymous> (webpack:///src/app/helper/encryption.ts:24:15)\n    at Generator.next (<anonymous>)\n    at /usr/src/app/dist/packages/backend/node_modules/tslib/tslib.js:169:75\n    at new Promise (<anonymous>)\n    at Object.__awaiter (/usr/src/app/dist/packages/backend/node_modules/tslib/tslib.js:165:16)\n    at queueMode (webpack:///src/app/helper/encryption.ts:13:80)\n    at <anonymous> (webpack:///src/app/helper/system/system.ts:117:11)\n    at Generator.next (<anonymous>)\n    at /usr/src/app/dist/packages/backend/node_modules/tslib/tslib.js:169:75\n    at new Promise (<anonymous>)",
                "error": {
                    "code": "SYSTEM_PROP_INVALID",
                    "params": {
                        "prop": "ENCRYPTION_KEY"
                    }
                }
            },
            "msg": "[Main#main]"
        }
    },
    {
        "@timestamp": "2024-02-14 20:24:49.445",
        "@message": {
            "level": 30,
            "time": 1707942289161,
            "pid": 8,
            "hostname": "ip-10-0-74-72.ec2.internal",
            "msg": "[redisQueueManager#init] Initializing redis queues"
        }
    },
    {
        "@timestamp": "2024-02-14 20:24:49.445",
        "@message": {
            "level": 30,
            "time": 1707942289166,
            "pid": 8,
            "hostname": "ip-10-0-74-72.ec2.internal",
            "msg": "[migrateScheduledJobs] Starting migration"
        }
    },
    {
        "@timestamp": "2024-02-14 20:24:49.445",
        "@message": {
            "level": 30,
            "time": 1707942289251,
            "pid": 8,
            "hostname": "ip-10-0-74-72.ec2.internal",
            "msg": "[migrateScheduledJobs] Found  0 total jobs"
        }
    },
    {
        "@timestamp": "2024-02-14 20:24:49.445",
        "@message": {
            "level": 30,
            "time": 1707942289251,
            "pid": 8,
            "hostname": "ip-10-0-74-72.ec2.internal",
            "msg": "[migrateScheduledJobs] Migrated 0 jobs"
        }
    },
    {
        "@timestamp": "2024-02-14 20:24:49.264",
        "@message": "IMPORTANT! Eviction policy is volatile-lru. It should be \"noeviction\""
    },
    {
        "@timestamp": "2024-02-14 20:24:49.264",
        "@message": "IMPORTANT! Eviction policy is volatile-lru. It should be \"noeviction\""
    },
    {
        "@timestamp": "2024-02-14 20:24:49.264",
        "@message": "IMPORTANT! Eviction policy is volatile-lru. It should be \"noeviction\""
    },
    {
        "@timestamp": "2024-02-14 20:24:49.263",
        "@message": "IMPORTANT! Eviction policy is volatile-lru. It should be \"noeviction\""
    },
    {
        "@timestamp": "2024-02-14 20:24:49.249",
        "@message": "IMPORTANT! Eviction policy is volatile-lru. It should be \"noeviction\""
    },
    {
        "@timestamp": "2024-02-14 20:24:49.248",
        "@message": "IMPORTANT! Eviction policy is volatile-lru. It should be \"noeviction\""
    },
    {
        "@timestamp": "2024-02-14 20:24:48.849",
        "@message": {
            "level": 30,
            "time": 1707942288759,
            "pid": 8,
            "hostname": "ip-10-0-74-72.ec2.internal",
            "msg": "[seedDevData] skip seeding dev data"
        }
    },
    {
        "@timestamp": "2024-02-14 20:24:48.847",
        "@message": {
            "level": 30,
            "time": 1707942288690,
            "pid": 8,
            "hostname": "ip-10-0-74-72.ec2.internal",
            "name": "AddTriggerTestStrategy1707087022764",
            "msg": "up"
        }
    }
]

After clicking Deploy with Pulumi from the activepages install page, the Pulumi project page configuration options say that an AP encryption key will be auto-generated if left blank, but maybe that’s not happening?

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.