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

SQLSTATE[HY000] [2002] php_network_getaddresses #29

Open
khorram-dev opened this issue Sep 15, 2023 · 0 comments
Open

SQLSTATE[HY000] [2002] php_network_getaddresses #29

khorram-dev opened this issue Sep 15, 2023 · 0 comments

Comments

@khorram-dev
Copy link

Hello
How to solve this error?


Make (linux): Installing ReloadlyTopupProject...

[+] Building 6.0s (41/41) FINISHED
=> [mariadb internal] load build definition from Dockerfile 0.2s
=> => transferring dockerfile: 306B 0.0s
=> [mariadb internal] load .dockerignore 0.3s
=> => transferring context: 2B 0.0s
=> [mariadb internal] load metadata for docker.io/library/mariadb:latest 2.1s
=> [mariadb 1/3] FROM docker.io/library/mariadb:latest@sha256:5d851e999b84625ef9810589e832686cae58453452698ee69e2980041e626eb2 0.0s
=> [mariadb internal] load build context 0.1s
=> => transferring context: 28B 0.0s
=> CACHED [mariadb 2/3] RUN ln -snf /usr/share/zoneinfo/UTC /etc/localtime && echo UTC > /etc/timezone && chown -R mysql:root /var/lib/mysql/ 0.0s
=> CACHED [mariadb 3/3] COPY my.cnf /etc/mysql/conf.d/my.cnf 0.0s
=> [mariadb] exporting to image 0.1s
=> => exporting layers 0.0s
=> => writing image sha256:aab60b8f65c659b5c3018194902f9f0166525cd5856b00c666835f2624ae9167 0.0s
=> => naming to docker.io/library/sample-airtime-topup-platform-main-mariadb 0.1s
=> [php internal] load build definition from Dockerfile 0.5s
=> => transferring dockerfile: 4.87kB 0.0s
=> [php internal] load .dockerignore 0.3s
=> => transferring context: 2B 0.0s
=> [php internal] load metadata for docker.io/library/php:8.1.2-apache 1.4s
=> [php 1/28] FROM docker.io/library/php:8.1.2-apache@sha256:6db15b73781c2caf1ce974a4b6f8e29b8abc3a3dded82289a5797059d380bd49 0.0s
=> [php internal] load build context 0.1s
=> => transferring context: 227B 0.0s
=> CACHED [php 2/28] RUN a2enmod rewrite expires include deflate proxy headers ssl 0.0s
=> CACHED [php 3/28] RUN a2ensite default-ssl 0.0s
=> CACHED [php 4/28] RUN mkdir -p /usr/share/man/man1/ /usr/share/man/man7/ 0.0s
=> CACHED [php 5/28] RUN apt-get update 0.0s
=> CACHED [php 6/28] RUN apt-get install -y --no-install-recommends sshpass libpng-dev libjpeg-dev libwebp-dev libjpeg 0.0s
=> CACHED [php 7/28] RUN update-alternatives --install /usr/bin/python python /usr/bin/python2.7 1 0.0s
=> CACHED [php 8/28] RUN ln -s /usr/lib/x86_64-linux-gnu/libldap.so /usr/lib/libldap.so && ln -s /usr/lib/x86_64-linux-gnu/liblber.so /usr/lib/liblber.so 0.0s
=> CACHED [php 9/28] RUN pecl install xdebug 0.0s
=> CACHED [php 10/28] RUN docker-php-ext-enable xdebug 0.0s
=> CACHED [php 11/28] RUN docker-php-ext-configure gd --with-webp --with-jpeg --with-xpm --with-freetype 0.0s
=> CACHED [php 12/28] RUN docker-php-ext-install gd mysqli opcache pdo pdo_mysql pdo_pgsql pgsql ldap intl gmp zip 0.0s
=> CACHED [php 13/28] RUN CFLAGS="$CFLAGS -D_GNU_SOURCE" docker-php-ext-install sockets 0.0s
=> CACHED [php 14/28] RUN make-ssl-cert generate-default-snakeoil 0.0s
=> CACHED [php 15/28] COPY ./docker/etc/motd /etc/motd 0.0s
=> CACHED [php 16/28] COPY ./docker/etc/vhost.conf /etc/apache2/sites-available/000-default.conf 0.0s
=> CACHED [php 17/28] COPY ./docker/etc/vhost-ssl.conf /etc/apache2/sites-available/default-ssl.conf 0.0s
=> CACHED [php 18/28] COPY ./docker/etc/init_container.sh /bin/ 0.0s
=> CACHED [php 19/28] RUN chmod 777 /var/log && chmod 777 /var/run && chmod 777 /var/lock && chmod 777 /bin/init_container.sh 0.0s
=> CACHED [php 20/28] RUN { echo 'opcache.memory_consumption=128'; echo 'opcache.interned_strings_buffer=8'; echo 'opcache. 0.0s
=> CACHED [php 21/28] RUN { echo 'error_log=/var/log/apache2/php-error.log'; echo 'display_errors=Off'; echo 'log_errors=On 0.0s
=> CACHED [php 22/28] RUN echo '* * * * * root php /var/www/html/artisan schedule:run >> /tmp/artisan_log' >> /etc/crontab 0.0s
=> CACHED [php 23/28] RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer 0.0s
=> CACHED [php 24/28] RUN mkdir -p /usr/local/nvm && curl https://raw.githubusercontent.com/creationix/nvm/v0.39.1/install.sh | bash && . /usr/local/nv 0.0s
=> CACHED [php 25/28] RUN echo | tee -a /etc/skel/.bashrc >> /etc/bash.bashrc && echo ". /etc/profile.d/dockerenv.sh" | tee -a /etc/skel/.bashrc >> /etc/ba 0.0s
=> CACHED [php 26/28] RUN groupadd -g 1000 application && useradd -m -s /bin/bash -u 1000 -g application application 0.0s
=> CACHED [php 27/28] RUN mkdir /etc/apache2/ssl && openssl req -new -newkey rsa:4096 -days 3650 -nodes -x509 -subj "/C=PK/ST=PUNJAB/L=LAHORE/O=OTIF So 0.0s
=> CACHED [php 28/28] WORKDIR /var/www/html/ 0.0s
=> [php] exporting to image 0.1s
=> => exporting layers 0.0s
=> => writing image sha256:b85f34fda3c4b12bcb4199eea01ba42a90dd4ecc8b37b89ceae787b4a09862d7 0.0s
=> => naming to docker.io/library/sample-airtime-topup-platform-main-php 0.0s
[+] Running 2/2
✔ Container rstp_db Started 0.8s
✔ Container rstp_php Running 0.0s
Running 2.6.3 (2023-09-15 09:38:21) with PHP 8.1.2 on Linux / 6.4.8-arch1-1
Reading ./composer.json (/var/www/html/composer.json)
Loading config file ./composer.json (/var/www/html/composer.json)
Checked CA file /etc/pki/tls/certs/ca-bundle.crt does not exist or it is not a file.
Checked directory /etc/pki/tls/certs/ca-bundle.crt does not exist or it is not a directory.
Checked CA file /etc/ssl/certs/ca-certificates.crt: valid
Executing command (/var/www/html): 'git' 'branch' '-a' '--no-color' '--no-abbrev' '-v'
Executing command (/var/www/html): git describe --exact-match --tags
Executing command (CWD): git --version
Executing command (/var/www/html): git log --pretty="%H" -n1 HEAD --no-show-signature
Executing command (/var/www/html): hg branch
Executing command (/var/www/html): fossil branch list
Executing command (/var/www/html): fossil tag list
Executing command (/var/www/html): svn info --xml
Failed to initialize global composer: Composer could not find the config file: /root/.composer/composer.json

Reading ./composer.lock (/var/www/html/composer.lock)
Reading /var/www/html/vendor/composer/installed.json
Installing dependencies from lock file (including require-dev)
Verifying lock file contents can be installed on current platform.
Reading ./composer.lock (/var/www/html/composer.lock)
Built pool.
Generating rules
Resolving dependencies through SAT
Looking at all rules.

Dependency resolution completed in 0.001 seconds
Nothing to install, update or remove
Package paypal/paypal-checkout-sdk is abandoned, you should avoid using it. No replacement was suggested.
Package swiftmailer/swiftmailer is abandoned, you should avoid using it. Use symfony/mailer instead.
Generating optimized autoload files

post-autoload-dump: Illuminate\Foundation\ComposerScripts::postAutoloadDump
post-autoload-dump: @php artisan package:discover --ansi
Executing command (CWD): '/usr/local/bin/php' -d allow_url_fopen='1' -d disable_functions='' -d memory_limit='1536M' artisan package:discover --ansi
Discovered Package: facade/ignition
Discovered Package: fideloper/proxy
Discovered Package: fruitcake/laravel-cors
Discovered Package: laravel/passport
Discovered Package: laravel/tinker
Discovered Package: nesbot/carbon
Discovered Package: nunomaduro/collision
Discovered Package: otifsolutions/aclmenu
Discovered Package: otifsolutions/laravel-forcessl
Discovered Package: otifsolutions/laravel-settings
Package manifest generated successfully.
85 packages you are using are looking for funding.
Use the composer fund command to find out more!

Illuminate\Database\QueryException

SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo for rstp_db failed: Name or service not known (SQL: select * from information_schema.tables where table_schema = db and table_name = migrations and table_type = 'BASE TABLE')

at vendor/laravel/framework/src/Illuminate/Database/Connection.php:712
708▕ // If an exception occurs when attempting to run a query, we'll format the error
709▕ // message to include the bindings with SQL, which will make this exception a
710▕ // lot more helpful to the developer instead of just the database's errors.
711▕ catch (Exception $e) {
➜ 712▕ throw new QueryException(
713▕ $query, $this->prepareBindings($bindings), $e
714▕ );
715▕ }
716▕ }

  +33 vendor frames 

34 artisan:37
Illuminate\Foundation\Console\Kernel::handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
make: *** [makefile:22: install] Error 1

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

1 participant