Quyet Le Quy
12/17/2025, 9:36 AMfailed to determine if any previous psql version exists: error reading pgdata version file: open /home/ec2-user/.airbyte/abctl/data/airbyte-volume-db/pgdata/PG_VERSION: permission denied ERROR airbyte-bootloader: Failed to verify database connection.
lỗi khi chạy lệnh này abctl local installkapa.ai
12/17/2025, 9:37 AMabctl local install. Cụ thể, file PG_VERSION trong thư mục pgdata không đọc được do lỗi permission denied, khiến bootloader không kết nối được tới airbyte-db.[[Permission issue](https://github.com/airbytehq/airbyte/issues/62093)] Theo các issue tương tự, có vài cách khắc phục đã được xác nhận: 1. Sửa quyền sở hữu thư mục volume của Postgres Trên máy EC2 (user ec2-user), chạy: bash # 70 là UID user postgres trong pod sudo chown 70:70 /home/ec2-user/.airbyte/abctl/data/airbyte-volume-db sudo chown -R 70:70 /home/ec2-user/.airbyte/abctl/data/airbyte-volume-db/pgdata Cách này đã giúp một số người chạy được abctl local install sau khi gặp lỗi tương tự.[[Permission issue](https://github.com/airbytehq/airbyte/issues/62093)] 2. Thiết lập ACL để user hiện tại có quyền vào thư mục pgdata Nếu vẫn bị chặn bởi ACL/mask mặc định của hệ thống, bạn có thể thêm quyền: bash sudo setfacl -m u:$USER:x /home/ec2-user/.airbyte/abctl/data/airbyte-volume-db/pgdata sudo setfacl -m u:$USER:r /home/ec2-user/.airbyte/abctl/data/airbyte-volume-db/pgdata/PG_VERSION Một người dùng trên Ubuntu/Google VM xác nhận đây là cách giải quyết được lỗi permission với PG_VERSION.[[Permission issue](https://github.com/airbytehq/airbyte/issues/62093)] 3. Nếu trước đó cài đặt bị lỗi/dở dang Trong một số trường hợp, dữ liệu cũ trong ~/.airbyte/abctl/data gây lỗi quyền hoặc schema; họ đã xử lý bằng: bash abctl local uninstall --persisted # hoặc rm -rf ~/.airbyte/abctl/data rồi chạy lại: bash abctl local install [[Migration error](https://github.com/airbytehq/airbyte/issues/58864)] --- Tóm lại, với lỗi bạn đưa ra, bước đầu tiên nên làm là: bash sudo chown -R 70:70 /home/ec2-user/.airbyte/abctl/data/airbyte-volume-db sudo setfacl -m u:$USER:x /home/ec2-user/.airbyte/abctl/data/airbyte-volume-db/pgdata sudo setfacl -m u:$USER:r /home/ec2-user/.airbyte/abctl/data/airbyte-volume-db/pgdata/PG_VERSION abctl local install --low-resource-mode Nếu vẫn lỗi, hãy xoá dữ liệu ~/.airbyte/abctl/data (nếu không cần giữ lại) rồi cài lại như trên.