Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting errors when enabling PostgreSQL #1989

Open
niladrimcn opened this issue Dec 12, 2024 · 1 comment
Open

Getting errors when enabling PostgreSQL #1989

niladrimcn opened this issue Dec 12, 2024 · 1 comment

Comments

@niladrimcn
Copy link

I'm using Vagrant version 2.4.3 and getting errors when enabling PostgreSQL.

Error:

==> Hoopla V2: Running provisioner: Creating Postgres Database: hoopla (shell)...
    Hoopla V2: Running: script: Creating Postgres Database: hoopla
    Hoopla V2: could not change directory to "/home/vagrant": Permission denied

Full process output:

Bringing machine 'Hoopla V2' up with 'virtualbox' provider...
==> Hoopla V2: Importing base box 'laravel/homestead'...
==> Hoopla V2: Matching MAC address for NAT networking...
==> Hoopla V2: Checking if box 'laravel/homestead' version '14.0.2' is up to date...
==> Hoopla V2: Setting the name of the VM: Hoopla V2
==> Hoopla V2: Clearing any previously set network interfaces...
==> Hoopla V2: Preparing network interfaces based on configuration...
    Hoopla V2: Adapter 1: nat
    Hoopla V2: Adapter 2: hostonly
==> Hoopla V2: Forwarding ports...
    Hoopla V2: 80 (guest) => 8000 (host) (adapter 1)
    Hoopla V2: 443 (guest) => 44300 (host) (adapter 1)
    Hoopla V2: 22 (guest) => 2222 (host) (adapter 1)
==> Hoopla V2: Running 'pre-boot' VM customizations...
==> Hoopla V2: Booting VM...
==> Hoopla V2: Waiting for machine to boot. This may take a few minutes...
    Hoopla V2: SSH address: 127.0.0.1:2222
    Hoopla V2: SSH username: vagrant
    Hoopla V2: SSH auth method: private key
    Hoopla V2: 
    Hoopla V2: Vagrant insecure key detected. Vagrant will automatically replace
    Hoopla V2: this with a newly generated keypair for better security.
    Hoopla V2: 
    Hoopla V2: Inserting generated public key within guest...
    Hoopla V2: Removing insecure key from the guest if it's present...
    Hoopla V2: Key inserted! Disconnecting and reconnecting using new SSH key...
==> Hoopla V2: Machine booted and ready!
==> Hoopla V2: Checking for guest additions in VM...
==> Hoopla V2: Setting hostname...
==> Hoopla V2: Configuring and enabling network interfaces...
==> Hoopla V2: Mounting shared folders...
    Hoopla V2: /data/html/hoopla_v2/hoopla_v2_backend => /home/vagrant/code
==> Hoopla V2: Detected mount owner ID within mount options. (uid: 1000 guestpath: /home/vagrant/code)
==> Hoopla V2: Detected mount group ID within mount options. (gid: 1000 guestpath: /home/vagrant/code)
==> Hoopla V2: Running provisioner: file...
    Hoopla V2: aliases => /tmp/bash_aliases
==> Hoopla V2: Running provisioner: shell...
    Hoopla V2: Running: inline script
==> Hoopla V2: Running provisioner: setting authorize key (shell)...
    Hoopla V2: Running: inline script
    Hoopla V2: 
    Hoopla V2: ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQCe42i6v2eqZJDjabG62/vctfVcHBQlO0ouTSnNZSY00lYFuPmMYNpXxZlFKZunK/u1lkdhjEz3XzIvlwurBcWfAVDNEd08fw+cAxRpkl5+3oq9hJ/9xuq1XjDfkxoEK8C0wdh+GCRua/XlBJO9NJKJnbJe2X4AvIeT9+nk0kOeTLoL6oQCCryAIHZZhfQmj+JON2ACerjS1jSbSJAMd3PVmVZnF6sJFpyGNhbF4D7/4v7aET2TUqXYPv0WUttY/30UmnH9thuP0yl3Ed8fK5PkRJoTSTvBuMyrtKEh3G98MoNbZrrSV+z1kAcFs3haG9rIPB8G+PZpX+HDbF5gyptqqcuqjwhBvBCGfRL8RePM9Z38WFMmqeGZoalkZkMM4s48MeV9y1lQZX7peFzDXm9BVsCGXYigEGSqGBDkSTO5W7XoInJ0rHlIgOni0rylGaOu9KwTXXjhJLFr39WW5JngkZ4xR3VjQGVikTUrngCfbjvKjvncIPEvtXwJyLkdvic= cnadmin@CN445
    Hoopla V2: 
==> Hoopla V2: Running provisioner: setting authorize permissions for id_rsa (shell)...
    Hoopla V2: Running: inline script
==> Hoopla V2: Running provisioner: mk_features (shell)...
    Hoopla V2: Running: inline script
==> Hoopla V2: Running provisioner: own_features (shell)...
    Hoopla V2: Running: inline script
==> Hoopla V2: Running provisioner: apt_update (shell)...
    Hoopla V2: Running: inline script
    Hoopla V2: Get:1 https://download.docker.com/linux/ubuntu jammy InRelease [48.8 kB]
    Hoopla V2: Get:2 https://deb.nodesource.com/node_21.x nodistro InRelease [12.1 kB]
    Hoopla V2: Get:3 https://download.docker.com/linux/ubuntu jammy/stable amd64 Packages [41.8 kB]
    Hoopla V2: Get:4 https://deb.nodesource.com/node_21.x nodistro/main amd64 Packages [3,509 B]
    Hoopla V2: Hit:5 http://us.archive.ubuntu.com/ubuntu jammy InRelease
    Hoopla V2: Get:6 https://ppa.launchpadcontent.net/ondrej/php/ubuntu jammy InRelease [24.6 kB]
    Hoopla V2: Get:7 https://ngrok-agent.s3.amazonaws.com buster InRelease [20.3 kB]
    Hoopla V2: Get:8 https://apt.postgresql.org/pub/repos/apt jammy-pgdg InRelease [129 kB]
    Hoopla V2: Get:9 http://us.archive.ubuntu.com/ubuntu jammy-updates InRelease [128 kB]
    Hoopla V2: Get:10 https://ppa.launchpadcontent.net/ondrej/php/ubuntu jammy/main amd64 Packages [135 kB]
    Hoopla V2: Get:11 https://ngrok-agent.s3.amazonaws.com buster/main amd64 Packages [6,873 B]
    Hoopla V2: Get:12 https://ppa.launchpadcontent.net/ondrej/php/ubuntu jammy/main Translation-en [42.4 kB]
    Hoopla V2: Get:13 https://apt.postgresql.org/pub/repos/apt jammy-pgdg/main amd64 Packages [354 kB]
    Hoopla V2: Get:14 http://us.archive.ubuntu.com/ubuntu jammy-backports InRelease [127 kB]
    Hoopla V2: Get:15 http://us.archive.ubuntu.com/ubuntu jammy-security InRelease [129 kB]
    Hoopla V2: Get:16 http://us.archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages [2,193 kB]
    Hoopla V2: Get:17 http://us.archive.ubuntu.com/ubuntu jammy-updates/main Translation-en [374 kB]
    Hoopla V2: Get:18 http://us.archive.ubuntu.com/ubuntu jammy-updates/restricted amd64 Packages [2,733 kB]
    Hoopla V2: Get:19 http://us.archive.ubuntu.com/ubuntu jammy-updates/restricted Translation-en [477 kB]
    Hoopla V2: Get:20 http://us.archive.ubuntu.com/ubuntu jammy-updates/universe amd64 Packages [1,180 kB]
    Hoopla V2: Get:21 http://us.archive.ubuntu.com/ubuntu jammy-updates/universe Translation-en [288 kB]
    Hoopla V2: Get:22 http://us.archive.ubuntu.com/ubuntu jammy-updates/multiverse amd64 Packages [44.5 kB]
    Hoopla V2: Get:23 http://us.archive.ubuntu.com/ubuntu jammy-updates/multiverse Translation-en [11.5 kB]
    Hoopla V2: Get:24 http://us.archive.ubuntu.com/ubuntu jammy-backports/main amd64 Packages [67.7 kB]
    Hoopla V2: Get:25 http://us.archive.ubuntu.com/ubuntu jammy-backports/main Translation-en [11.1 kB]
    Hoopla V2: Get:26 http://us.archive.ubuntu.com/ubuntu jammy-backports/universe amd64 Packages [28.9 kB]
    Hoopla V2: Get:27 http://us.archive.ubuntu.com/ubuntu jammy-backports/universe Translation-en [16.5 kB]
    Hoopla V2: Get:28 http://us.archive.ubuntu.com/ubuntu jammy-security/main amd64 Packages [1,967 kB]
    Hoopla V2: Get:29 http://us.archive.ubuntu.com/ubuntu jammy-security/main Translation-en [314 kB]
    Hoopla V2: Get:30 http://us.archive.ubuntu.com/ubuntu jammy-security/restricted amd64 Packages [2,638 kB]
    Hoopla V2: Get:31 http://us.archive.ubuntu.com/ubuntu jammy-security/restricted Translation-en [458 kB]
    Hoopla V2: Get:32 http://us.archive.ubuntu.com/ubuntu jammy-security/universe amd64 Packages [958 kB]
    Hoopla V2: Get:33 http://us.archive.ubuntu.com/ubuntu jammy-security/universe Translation-en [204 kB]
    Hoopla V2: Get:34 http://us.archive.ubuntu.com/ubuntu jammy-security/multiverse amd64 Packages [37.6 kB]
    Hoopla V2: Get:35 http://us.archive.ubuntu.com/ubuntu jammy-security/multiverse Translation-en [8,260 B]
    Hoopla V2: Fetched 15.2 MB in 9s (1,760 kB/s)
    Hoopla V2: Reading package lists...
==> Hoopla V2: Running provisioner: shell...
    Hoopla V2: Running: inline script
    Hoopla V2: Ignoring feature: mariadb because it is set to false
==> Hoopla V2: Running provisioner: shell...
    Hoopla V2: Running: inline script
    Hoopla V2: Invalid feature: postgresql
==> Hoopla V2: Running provisioner: shell...
    Hoopla V2: Running: inline script
    Hoopla V2: Ignoring feature: ohmyzsh because it is set to false
==> Hoopla V2: Running provisioner: shell...
    Hoopla V2: Running: inline script
    Hoopla V2: Ignoring feature: webdriver because it is set to false
==> Hoopla V2: Running provisioner: enable postgresql (shell)...
    Hoopla V2: Running: inline script
    Hoopla V2: Synchronizing state of postgresql.service with SysV service script with /lib/systemd/systemd-sysv-install.
    Hoopla V2: Executing: /lib/systemd/systemd-sysv-install enable postgresql
    Hoopla V2: Created symlink /etc/systemd/system/multi-user.target.wants/postgresql.service → /lib/systemd/system/postgresql.service.
==> Hoopla V2: Running provisioner: start postgresql (shell)...
    Hoopla V2: Running: inline script
==> Hoopla V2: Running provisioner: disable mysql (shell)...
    Hoopla V2: Running: inline script
    Hoopla V2: Synchronizing state of mysql.service with SysV service script with /lib/systemd/systemd-sysv-install.
    Hoopla V2: Executing: /lib/systemd/systemd-sysv-install disable mysql
    Hoopla V2: Removed /etc/systemd/system/multi-user.target.wants/mysql.service.
==> Hoopla V2: Running provisioner: stop mysql (shell)...
    Hoopla V2: Running: inline script
==> Hoopla V2: Running provisioner: shell...
    Hoopla V2: Running: /tmp/vagrant-shell20241212-80558-ltmip6.sh
==> Hoopla V2: Running provisioner: shell...
    Hoopla V2: Running: /tmp/vagrant-shell20241212-80558-pkmpwx.sh
==> Hoopla V2: Running provisioner: Creating Certificate: hoopla-v2-backend.test (shell)...
    Hoopla V2: Running: script: Creating Certificate: hoopla-v2-backend.test
    Hoopla V2: Updating certificates in /etc/ssl/certs...
    Hoopla V2: rehash: warning: skipping ca-certificates.crt,it does not contain exactly one certificate or CRL
    Hoopla V2: rehash: warning: skipping duplicate certificate in ca.homestead.hoopla-v2.pem
    Hoopla V2: 1 added, 0 removed; done.
    Hoopla V2: Running hooks in /etc/ca-certificates/update.d...
    Hoopla V2: done.
==> Hoopla V2: Running provisioner: Creating Site: hoopla-v2-backend.test (shell)...
    Hoopla V2: Running: script: Creating Site: hoopla-v2-backend.test
==> Hoopla V2: Running provisioner: shell...
    Hoopla V2: Running: inline script
==> Hoopla V2: Running provisioner: shell...
    Hoopla V2: Running: /tmp/vagrant-shell20241212-80558-8bbv9k.sh
==> Hoopla V2: Running provisioner: Checking for old Schedule (shell)...
    Hoopla V2: Running: script: Checking for old Schedule
==> Hoopla V2: Running provisioner: Clear Variables (shell)...
    Hoopla V2: Running: script: Clear Variables
==> Hoopla V2: Running provisioner: Restarting Cron (shell)...
    Hoopla V2: Running: script: Restarting Cron
==> Hoopla V2: Running provisioner: Restart Webserver (shell)...
    Hoopla V2: Running: script: Restart Webserver
==> Hoopla V2: Running provisioner: Creating MySQL / MariaDB Database: homestead (shell)...
    Hoopla V2: Running: script: Creating MySQL / MariaDB Database: homestead
    Hoopla V2: We didn't find MariaDB ($mariadb) or MySQL ($mysql), skipping `homestead` creation
==> Hoopla V2: Running provisioner: Creating Postgres Database: homestead (shell)...
    Hoopla V2: Running: script: Creating Postgres Database: homestead
==> Hoopla V2: Running provisioner: Creating MySQL / MariaDB Database: hoopla (shell)...
    Hoopla V2: Running: script: Creating MySQL / MariaDB Database: hoopla
    Hoopla V2: We didn't find MariaDB ($mariadb) or MySQL ($mysql), skipping `hoopla` creation
==> Hoopla V2: Running provisioner: Creating Postgres Database: hoopla (shell)...
    Hoopla V2: Running: script: Creating Postgres Database: hoopla
    Hoopla V2: could not change directory to "/home/vagrant": Permission denied
==> Hoopla V2: Running provisioner: Update Composer (shell)...
    Hoopla V2: Running: script: Update Composer
    Hoopla V2: Upgrading to version 2.8.4 (stable channel).
    Hoopla V2: 
    Hoopla V2: Use composer self-update --rollback to return to version 2.6.6
==> Hoopla V2: Running provisioner: shell...
    Hoopla V2: Running: /tmp/vagrant-shell20241212-80558-9tzjoi.sh
==> Hoopla V2: Running provisioner: Update motd (shell)...
    Hoopla V2: Running: script: Update motd
==> Hoopla V2: Running provisioner: shell...
    Hoopla V2: Running: /tmp/vagrant-shell20241212-80558-c5gw2d.sh

Process finished with exit code 0
@browner12
Copy link
Contributor

sorry, but this project is (unfortunately) not maintained anymore. please check Joe Ferguson's fork for active support.

https://github.com/svpernova09/homestead

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants