Skip to content

Connection timeout to connect postgre database on my local machine #819

@mmuqiitf

Description

@mmuqiitf

Sail Version

1.46

Laravel Version

12.33

PHP Version

8.4

Operating System

Linux

OS Version

24

Description

When i want to set up Laravel sail for my apps, i can't connect directly to my database on my local machine. I need it because the database is shared with other apps too, so i can't put it in docker container of my apps. The error is like this:

Symfony\Component\ErrorHandler\Error\FatalError - Internal Server Error

Maximum execution time of 30 seconds exceeded

PHP 8.4.10
Laravel 12.33.0
localhost:8000

Stack Trace

0 - vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:67

Request

GET /

Headers

  • host: localhost:8000
  • sec-ch-ua-platform: "Linux"
  • dnt: 1
  • user-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.0.0 Safari/537.36 Edg/141.0.0.0
  • accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,/;q=0.8,application/signed-exchange;v=b3;q=0.7
  • sec-fetch-site: none
  • sec-fetch-dest: document
  • accept-language: en-US,en;q=0.9,id;q=0.8
  • sec-ch-ua-mobile: ?0
  • sec-fetch-mode: navigate
  • cookie: appearance=light
  • connection: keep-alive
  • cache-control: max-age=0
  • upgrade-insecure-requests: 1
  • sec-fetch-user: ?1
  • accept-encoding: gzip, deflate, br, zstd
  • sec-ch-ua: "Microsoft Edge";v="141", "Not?A_Brand";v="8", "Chromium";v="141"

Route Context

controller: Closure
middleware: web

Route Parameters

No route parameter data available.

Database Queries

No database queries detected.

Steps To Reproduce

  1. Set up a database on your local machine
  2. Install a new laravel apps
  3. Install laravel sail but without database service
  4. Run sail up for access your apps.
  5. This is the project clone for my testing apps

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions