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

lando.yml portforward doesn't work #192

Open
spencerthayer opened this issue Mar 17, 2023 · 5 comments
Open

lando.yml portforward doesn't work #192

spencerthayer opened this issue Mar 17, 2023 · 5 comments

Comments

@spencerthayer
Copy link

spencerthayer commented Mar 17, 2023

This is a persistent issue already well documented in Fixing DB port with portforward is not working lando/lando#39 and Locking down ports for external database connection not working. So I don't feel I need to add additional documentation to this, but I should note that I too am experiencing this issue with the latest v3.11.0 installation but with a Pantheon configuration- not PlatformSH.

I understand this isn't critical but are there any insights as to when this might be resolved?

@spencerthayer spencerthayer added the bug Something isn't working label Mar 17, 2023
@spencerthayer spencerthayer reopened this Apr 30, 2023
@amaisano
Copy link

Same issue on v3.18.0. Cannot set my database portforward to 3307. Use to work in the old days :(

Lando is just handing out random port IDs as if it wasn't set to portforward at all.

@lsmith77
Copy link

I have the same issue .. had to remove

services:
  database:
    portforward: 3307

Otherwise I got

Starting dashboard_database_1 ... error

ERROR: for dashboard_database_1  Cannot start service database: driver failed programming external connectivity on endpoint dashboard_database_1 (bc3d3ae41f8de886345ee25698849203242732add3d6a3dc8c5058f4b88e1035): Bind for 127.0.0.1:3307 failed: port is already allocated

ERROR: for database  Cannot start service database: driver failed programming external connectivity on endpoint dashboard_database_1 (bc3d3ae41f8de886345ee25698849203242732add3d6a3dc8c5058f4b88e1035): Bind for 127.0.0.1:3307 failed: port is already allocated
ERROR: Encountered errors while bringing up the project.

@pirog pirog added Needs Triage and removed bug Something isn't working pantheon labels Aug 28, 2023
@pirog pirog transferred this issue from lando/lando Aug 28, 2023
@lsmith77
Copy link

here is the full lando file. I am using plain lando (ie. not pantheon or platform.sh)

name: dashboard
recipe: laravel

proxy:
  appserver_nginx:
    - dashboard.lndo.site
  mailhog:
    - mail.lndo.site

services:
  database:
    portforward: 3307
  node:
    type: node:14
  mailhog:
    type: mailhog
    portforward: true
    hogfrom:
      - appserver_nginx

tooling:
  npm:
    service: node
  node:
    service: node

config:
  via: nginx
  php: '8.0'
  composer_version: 2-latest
  xdebug: false
  webroot: public
  database: mariadb:10.5

@reynoldsalec
Copy link
Member

Using that Landofile on Lando v3.19.5 I'm not able to replicate the issue.

If you've ruled out another service occupying the port, is it possible that a security service or network-specific ruleset might be blocking access? I've seen similar-ish issues be resolved when users moved off a specific network (or tried on a computer that had a different security regime), sometimes that can help debugging.

@lsmith77
Copy link

FYI I am using v3.18.0

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

No branches or pull requests

6 participants