<@U04S8PLJWMT> i get failed to determine if any pr...
# ask-ai
j
@kapa.ai i get failed 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 when i run abctl local install
k
The error message you’re seeing—`permission denied when i run abctl local install` related to the
PG_VERSION
file—indicates a permissions issue on the Airbyte data directory used by PostgreSQL. This is a common problem reported by other users, especially when running Airbyte with
abctl
on Linux, Mac, or Windows systems. How to fix: 1. Correct Directory Permissions: Ensure that the directory (and its subdirectories) used by Airbyte for persistent storage is readable and writable by the user running
abctl
. For your case, try running:
Copy code
sh    sudo chmod -R 755 /home/ec2-user/.airbyte/abctl
This command will set the correct permissions, allowing the necessary read/write access for Airbyte and PostgreSQL to function properly. Users have reported that this resolves similar permission errors during installation and startup of Airbyte services [abctl: install, uninstall, install fails](https://github.com/airbytehq/airbyte/issues/41992). 2. Clean Up Old Data (if needed): If the problem persists, you may have leftover data from a previous failed installation. You can try removing the data directory and reinstalling:
Copy code
sh    rm -rf /home/ec2-user/.airbyte/abctl/data    abctl local install
Be aware that this will delete any existing Airbyte data in that directory. This step has helped users resolve issues where uninstall did not fully clean up problematic files [Migration schema error cannot run abctl local install](https://github.com/airbytehq/airbyte/issues/58864). 3. Reboot or Upgrade Instance (if on EC2): Some users on EC2 have found that rebooting the instance or temporarily upgrading the instance size can help resolve persistent permission or resource issues [abctl: install, uninstall, install fails](https://github.com/airbytehq/airbyte/issues/41992). Summary: The root cause is almost always a permissions problem on the Airbyte data directory. Adjusting the permissions as shown above should resolve the error. If not, try cleaning up the data directory and reinstalling. If you continue to have issues, please provide more details about your environment (OS, Docker version, abctl version) for further troubleshooting.
👀 1
l
Hi @jorge-gt3 I am trying to find a reliable solution to this issue when upgrading from v1.6.0 to v1.7.0, which I see you and many community members have had:
Copy code
failed to determine if any previous psql version exists: error reading pgdata version file: open /home/ssm-user/.airbyte/abctl/data/airbyte-volume-db/pgdata/PG_VERSION: permission denied
Our Environment: • current version 1.6.0 • self-managed community • running on an EC2 instance (t3a.xlarge) • running abctl v0.30.1 Did you ever manage to find a viable solution that you could possibly share the step by step process? 🙏 *please @ me in the your response so I get a notification
j
I did, but I don't remember how, I want to say it was by following kappa's #1 and #3 suggestion in this chat
l
@jorge-gt3 okay great thanks, going to try Upgrade Instance (if on EC2) today and see if that helps. Will keep you posted