ionic start hangs on Ubuntu 20 virtual machine

Aperta
#4,817 0 commenti 1 reazione 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
node.js, typescript
Ambito
cli, networking

Direzione di ricerca

Inizia riproducendo ionic start --verbose nella configurazione indicata della macchina virtuale con Ubuntu 20 e segui l’output del controllo delle porte di ionic:utils-network, in particolare il fallimento dell’indirizzo IPv6 sulla porta 8123. Il lavoro è completato quando ionic start non rimane più bloccato quando questa interfaccia di rete è presente e il comportamento pertinente è coperto da un test appropriato.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

triage

Description:

Ionic fails to start on an Ubuntu 20 virtual machine

Steps to Reproduce:

  • In Parallels, create a fresh Ubuntu 20 virtual machine using the offical Ubuntu image
  • Install NVM and use this to install NodeJS
  • Install Ionic using npm install -g @ionic/cli
  • Run ionic start in an empty directory

Output:

$ ionic start --verbose
ionic:lib Terminal info: { ci: false, shell: '/bin/bash', tty: true, windows: false } +0ms
ionic:lib CLI global options: { _: [ 'start' ], help: null, h: null, verbose: true, quiet: null, interactive: true, color: true, confirm: null, json: null, project: null, '--': [] } +3ms
ionic Context: { binPath: '/home/joe/.nvm/versions/node/v14.17.5/lib/node_modules/@ionic/cli/bin/ionic', libPath: '/home/joe/.nvm/versions/node/v14.17.5/lib/node_modules/@ionic/cli', execPath: '/media/psf/Projects/_labs/ionic_test', version: '6.18.1' } +0ms
? Use the app creation wizard? Yes
ionic:utils-network checking for open port on 0.0.0.0:8123 +0ms
ionic:utils-network checking for open port on 127.0.0.1:8123 +4ms
ionic:utils-network checking for open port on ::1:8123 +0ms
ionic:utils-network checking for open port on 10.10.10.211:8123 +1ms
ionic:utils-network checking for open port on fe80::21c:42ff:fe39:bb12:8123 +0ms
ionic:utils-network error while checking fe80::21c:42ff:fe39:bb12:8123: Error: listen EINVAL: invalid argument fe80::21c:42ff:fe39:bb12:8123     at Server.setupListenHandle [as _listen2] (net.js:1303:21)     at listenInCluster (net.js:1368:12)     at doListen (net.js:1505:7)     at processTicksAndRejections (internal/process/task_queues.js:83:21) { code: 'EINVAL', errno: -22, syscall: 'listen', address: 'fe80::21c:42ff:fe39:bb12', port: 8123 } +1ms

My ionic info:

$ ionic info
[WARN] You are not in an Ionic project directory. Project context may be missing.

Ionic:

  Ionic CLI : 6.18.1

Utility:

  cordova-res : not installed globally
  native-run  : not installed globally

System:

  NodeJS : v14.17.5
  npm    : 8.1.2
  OS     : Linux 5.4

Other Information:

I tried running it in /tmp/ionic as this directory is not mounted from the host system but the same thing occurs.

The address that it fails on is the IPv6 address of the primary (virtual) network adapter, enp0s5.

Lingua principale
TypeScript
Stelle
2k
Fork
681
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di ionic-team/ionic-cli

Tutte le issue di ionic-team/ionic-cli

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.