Skip to content

"flutter run -d web-server --dds-port=PORT" doesn't start the dart development service on PORT #159157

@bickfordb

Description

@bickfordb

Steps to reproduce

  1. flutter run -d web-server --web-hostname 0.0.0.0 --web-port 8081 --dds-port 8082 --no-web-resources-cdn
  2. List open ports, e.g.
# lsof -i -P
COMMAND   PID USER   FD   TYPE  DEVICE SIZE/OFF NODE NAME
dart:flut  82 root    9u  IPv4 9928686      0t0  TCP *:8081 (LISTEN)
dart:flut  82 root   14u  IPv4 9932385      0t0  TCP *:44911 (LISTEN)

Expected results

Expect tcp service listening on 8082

Actual results

No service listening on 8082

Code sample

Code sample

Dockerfile:

FROM debian

ENV DEBIAN_FRONTEND=noninteractive
ENV FLUTTER_VERSION=3.24.3
ENV FLUTTER_HOME=/usr/local/flutter

RUN apt-get update
RUN apt-get install -y libxi6 libgtk-3-0 libxrender1 libxtst6 libxslt1.1 curl git wget unzip libgconf-2-4 gdb libstdc++6 libglu1-mesa fonts-droid-fallback lib32stdc++6-amd64-cross python3 inotify-tools fswatch tmux

# download Flutter SDK from Flutter Github repo
RUN git clone --depth 1 --branch ${FLUTTER_VERSION} https://github.com/flutter/flutter.git /usr/local/flutter

# Set flutter environment path
ENV PATH="${FLUTTER_HOME}/bin:${FLUTTER_HOME}/bin/cache/dart-sdk/bin:${PATH}"
RUN flutter precache --web
# Run flutter doctor
RUN flutter doctor
# Enable flutter web
# RUN flutter channel master
# RUN flutter upgrade
RUN flutter config --enable-web
flutter run -d web-server --web-hostname 0.0.0.0 --web-port 8081 --dds-port 8082 --no-web-resources-cdn

Screenshots or Video

No response

Logs

Logs
# lsof -i -P
COMMAND   PID USER   FD   TYPE  DEVICE SIZE/OFF NODE NAME
dart:flut  82 root    9u  IPv4 9928686      0t0  TCP *:8081 (LISTEN)
dart:flut  82 root   14u  IPv4 9932385      0t0  TCP *:44911 (LISTEN)

Flutter Doctor output

Doctor output
# flutter doctor -v
[!] Flutter (Channel [user-branch], 3.24.3, on Debian GNU/Linux 12 (bookworm) 6.6.26-linuxkit,
    locale en_US)
    ! Flutter version 3.24.3 on channel [user-branch] at /usr/local/flutter
      Currently on an unknown channel. Run `flutter channel` to switch to an official channel.
      If that doesn't fix the issue, reinstall Flutter by following instructions at
      https://flutter.dev/setup.
    ! Upstream repository unknown source is not a standard remote.
      Set environment variable "FLUTTER_GIT_URL" to unknown source to dismiss this error.
    • Framework revision 2663184aa7 (10 weeks ago), 2024-09-11 16:27:48 -0500
    • Engine revision 36335019a8
    • Dart version 3.5.3
    • DevTools version 2.37.3
    • If those were intentional, you can disregard the above warnings; however it is recommended to
      use "git" directly to perform update checks and upgrades.

[✗] Android toolchain - develop for Android devices
    ✗ Unable to locate Android SDK.
      Install Android Studio from: https://developer.android.com/studio/index.html
      On first launch it will assist you in installing the Android SDK components.
      (or visit https://flutter.dev/to/linux-android-setup for detailed instructions).
      If the Android SDK has been installed to a custom location, please use
      `flutter config --android-sdk` to update to that location.


[✗] Chrome - develop for the web (Cannot find Chrome executable at google-chrome)
    ! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.

[✗] Linux toolchain - develop for Linux desktop
    ✗ clang++ is required for Linux development.
      It is likely available from your distribution (e.g.: apt install clang), or can be downloaded
      from https://releases.llvm.org/
    ✗ CMake is required for Linux development.
      It is likely available from your distribution (e.g.: apt install cmake), or can be downloaded
      from https://cmake.org/download/
    ✗ ninja is required for Linux development.
      It is likely available from your distribution (e.g.: apt install ninja-build), or can be
      downloaded from https://github.com/ninja-build/ninja/releases
    ✗ pkg-config is required for Linux development.
      It is likely available from your distribution (e.g.: apt install pkg-config), or can be
      downloaded from https://www.freedesktop.org/wiki/Software/pkg-config/

[!] Android Studio (not installed)
    • Android Studio not found; download from https://developer.android.com/studio/index.html
      (or visit https://flutter.dev/to/linux-android-setup for detailed instructions).

[✓] Connected device (1 available)
    • Linux (desktop) • linux • linux-arm64 • Debian GNU/Linux 12 (bookworm) 6.6.26-linuxkit

[✓] Network resources
    • All expected network resources are available.

! Doctor found issues in 5 categories

Metadata

Metadata

Assignees

Labels

P2Important issues not at the top of the work listfound in release: 3.24Found to occur in 3.24found in release: 3.27Found to occur in 3.27has reproducible stepsThe issue has been confirmed reproducible and is ready to work onplatform-webWeb applications specificallyteam-toolOwned by Flutter Tool teamtoolAffects the "flutter" command-line tool. See also t: labels.tool-still-validIssues that have been deemed still valid as part of the Flutter Tools issue cleanup initiative.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    pFad - Phonifier reborn

    Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

    Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


    Alternative Proxies:

    Alternative Proxy

    pFad Proxy

    pFad v3 Proxy

    pFad v4 Proxy