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

How do I switch from nvm to nodejs_version #6204

Closed
4 tasks done
syzygy333 opened this issue May 17, 2024 · 14 comments · Fixed by #6207
Closed
4 tasks done

How do I switch from nvm to nodejs_version #6204

syzygy333 opened this issue May 17, 2024 · 14 comments · Fixed by #6207

Comments

@syzygy333
Copy link
Sponsor Contributor

Preliminary checklist

Output of ddev debug test

Expand `ddev debug test` diagnostic information


======== Please make sure that you have already looked at troubleshooting guide ========
Troubleshooting guide: https://ddev.readthedocs.io/en/stable/users/usage/troubleshooting/ 
Simple things to check:
* ddev poweroff
* Restart Docker Provider
* Reboot computer
* Temporarily disable VPN and firewall
Press any key to continue:


======== Output file will be in /var/folders/fs/x0x5jcy1667_4254qds0zmjm0000gn/T/ddev-debug-test.txt ========


======== Existing project config ========
ddev installation alternate locations:
/usr/local/bin/ddev

These config files were loaded for project lifespan-intra: [/Users/bhogue-oomph/Oomph/Repos/lifespan-intra/.ddev/config.yaml]
name: lifespan-intra
type: drupal
docroot: docroot
php_version: 8.1
webserver_type: nginx-fpm
webimage: ddev/ddev-webserver:v1.23.1
additional_hostnames: []
additional_fqdns: []
database: {mariadb 10.4}
hooks: map[post-start:[map[composer:install] map[exec:npm ci && npm run build]]]
project_tld: ddev.site
use_dns_when_possible: true
composer_version: 2
nodejs_version: 18
default_container_timeout: 120


======== existing project customizations ========
.ddev/php/php-example.ini.example


======== installed DDEV add-ons ========
No registered add-ons were found. Add-ons installed before DDEV v1.22.0 will not be listed.
Update them with `ddev get` so they'll be shown.


======== mutagen situation ========
looking for #ddev-generated in mutagen.yml in project /Users/bhogue-oomph/Oomph/Repos/lifespan-intra
#ddev-generated
unmodified #ddev-generated found in .ddev/mutagen/mutagen.yml


======== Creating dummy project named tryddevproject-3817 in ../tryddevproject-3817 ========
Creating a new DDEV project config in the current directory (/Users/bhogue-oomph/Oomph/Repos/tryddevproject-3817)
Once completed, your configuration will be written to /Users/bhogue-oomph/Oomph/Repos/tryddevproject-3817/.ddev/config.yaml

Configuring a 'php' project with docroot 'web' at /Users/bhogue-oomph/Oomph/Repos/tryddevproject-3817/web
Configuration complete. You may now run 'ddev start'.


======== OS Information ========
Darwin OomphMBP.local 23.4.0 Darwin Kernel Version 23.4.0: Fri Mar 15 00:11:05 PDT 2024; root:xnu-10063.101.17~1/RELEASE_X86_64 x86_64
ProductName:		macOS
ProductVersion:		14.4.1
BuildVersion:		23E224


======== User information ========
uid=501(bhogue-oomph) gid=20(staff) groups=20(staff),12(everyone),61(localaccounts),79(_appserverusr),80(admin),81(_appserveradm),98(_lpadmin),701(com.apple.sharepoint.group.1),33(_appstore),100(_lpoperator),204(_developer),250(_analyticsusers),395(com.apple.access_ftp),398(com.apple.access_screensharing),399(com.apple.access_ssh),400(com.apple.access_remote_ae)


======== DDEV version ========
 ITEM             VALUE                                    
 DDEV version     v1.23.1                                  
 architecture     amd64                                    
 cgo_enabled      0                                        
 db               ddev/ddev-dbserver-mariadb-10.11:v1.23.1 
 ddev-ssh-agent   ddev/ddev-ssh-agent:v1.23.1              
 docker           24.0.9                                   
 docker-api       1.43                                     
 docker-compose   v2.27.0                                  
 docker-platform  colima                                   
 mutagen          0.17.2                                   
 os               darwin                                   
 router           ddev/ddev-traefik-router:v1.23.1         
 web              ddev/ddev-webserver:v1.23.1              



======== proxy settings ========

 HTTP_PROXY=''
 HTTPS_PROXY=''
 http_proxy=''
 NO_PROXY=''
 


======== DDEV global info ========
developer-mode=false
disable-http2=false
fail-on-hook-fail=false
instrumentation-opt-in=true
instrumentation-queue-size=0
instrumentation-reporting-interval=0s
instrumentation-user=
internet-detection-timeout-ms=3000
last-started-version=v1.23.1
letsencrypt-email=
mailpit-http-port=8025
mailpit-https-port=8026
mkcert-caroot=/Users/bhogue-oomph/Library/Application Support/mkcert
no-bind-mounts=false
omit-containers=[]
performance-mode=mutagen
project-tld=ddev.site
required-docker-compose-version=v2.27.0
router=traefik
router-bind-all-interfaces=false
router-http-port=80
router-https-port=443
simple-formatting=false
table-style=default
traefik-monitor-port=10999
use-docker-compose-from-path=false
use-hardened-images=false
use-letsencrypt=false
wsl2-no-windows-hosts-mgt=false
xdebug-ide-location=


======== DOCKER provider info ========
docker client location: lrwxr-xr-x  1 root  admin  54 Jun 21  2023 /usr/local/bin/docker -> /Applications/Docker.app/Contents/Resources/bin/docker

docker client alternate locations:
/usr/local/bin/docker

Docker provider: colima
docker version: 
Client:
 Cloud integration: v1.0.35+desktop.4
 Version:           24.0.6
 API version:       1.43
 Go version:        go1.20.7
 Git commit:        ed223bc
 Built:             Mon Sep  4 12:28:49 2023
 OS/Arch:           darwin/amd64
 Context:           default

Server: Docker Engine - Community
 Engine:
  Version:          24.0.9
  API version:      1.43 (minimum version 1.12)
  Go version:       go1.20.13
  Git commit:       fca702d
  Built:            Thu Feb  1 00:48:30 2024
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          1.6.28
  GitCommit:        ae07eda36dd25f8a1b98dfbf587313b99c0190bb
 runc:
  Version:          1.1.12
  GitCommit:        v1.1.12-0-g51d5e94
 docker-init:
  Version:          0.19.0
  GitCommit:        de40ad0

DOCKER_DEFAULT_PLATFORM=notset
colima version 0.6.8
time="2024-05-17T10:05:32-04:00" level=info msg="colima is running using QEMU"
time="2024-05-17T10:05:33-04:00" level=info msg="arch: x86_64"
time="2024-05-17T10:05:33-04:00" level=info msg="runtime: docker"
time="2024-05-17T10:05:33-04:00" level=info msg="mountType: sshfs"
time="2024-05-17T10:05:33-04:00" level=info msg="socket: unix:///Users/bhogue-oomph/.colima/default/docker.sock"
Docker platform: colima
Colima version: 0.6.8
Using Docker context: default (unix:///Users/bhogue-oomph/.colima/default/docker.sock)
docker-compose: v2.27.0
Using DOCKER_HOST=unix:///Users/bhogue-oomph/.colima/default/docker.sock
Docker version: 24.0.9
Able to run simple container that mounts a volume.
Able to use internet inside container.
Docker disk space:Filesystem                Size      Used Available Use% Mounted on
overlay                  57.1G     50.8G      6.3G  89% /


======== Existing docker containers ========
CONTAINER ID   IMAGE     COMMAND   CREATED   STATUS    PORTS     NAMES


======== mkcert information ========
/usr/local/bin/mkcert
/Users/bhogue-oomph/Library/Application Support/mkcert
total 16
-r--------  1 bhogue-oomph  staff  2484 Mar 14  2023 rootCA-key.pem
-rw-r--r--  1 bhogue-oomph  staff  1805 Mar 14  2023 rootCA.pem


======== ping attempt on ddev.site ========
PING dkdkd.ddev.site (127.0.0.1): 56 data bytes
64 bytes from 127.0.0.1: icmp_seq=0 ttl=64 time=0.084 ms

--- dkdkd.ddev.site ping statistics ---
1 packets transmitted, 1 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 0.084/0.084/0.084/0.000 ms


======== ddev debug refresh ========
Rebuilding project images...
Rebuilding web image with `/Users/bhogue-oomph/.ddev/bin/docker-compose -f /Users/bhogue-oomph/Oomph/Repos/tryddevproject-3817/.ddev/.ddev-docker-compose-full.yaml build web --no-cache`
#0 building with "default" instance using docker driver

#1 [web internal] load .dockerignore
#1 transferring context: 2B done
#1 DONE 0.0s

#2 [web internal] load build definition from Dockerfile
#2 transferring dockerfile: 1.23kB done
#2 DONE 0.0s

#3 [web internal] load metadata for docker.io/ddev/ddev-webserver:v1.23.1
#3 DONE 0.0s

#4 [web 1/7] FROM docker.io/ddev/ddev-webserver:v1.23.1
#4 CACHED

#5 [web 2/7] RUN (groupadd --gid 20 "bhogue-oomph" || groupadd "bhogue-oomph" || true) && (useradd  -l -m -s "/bin/bash" --gid "bhogue-oomph" --comment '' --uid 501 "bhogue-oomph" || useradd  -l -m -s "/bin/bash" --gid "bhogue-oomph" --comment '' "bhogue-oomph" || useradd  -l -m -s "/bin/bash" --gid "20" --comment '' "bhogue-oomph" || useradd -l -m -s "/bin/bash" --comment '' bhogue-oomph )
#5 0.209 groupadd: GID '20' already exists
#5 0.256 useradd warning: bhogue-oomph's uid 501 outside of the UID_MIN 1000 and UID_MAX 60000 range.
#5 DONE 0.3s

#6 [web 3/7] RUN export XDEBUG_MODE=off; composer self-update --stable || composer self-update --stable || true; composer self-update --2 || composer self-update --2 || true
#6 0.539 Storing "stable" as default update channel for the next self-update run.
#6 0.781 You are already using the latest available Composer version 2.7.6 (stable channel).
#6 1.140 You are already using the latest available Composer version 2.7.6 (2.x channel).
#6 DONE 1.2s

#7 [web 4/7] RUN mkdir -p /home/bhogue-oomph && chown bhogue-oomph /home/bhogue-oomph && chmod 600 /home/bhogue-oomph/.pgpass
#7 DONE 0.4s

#8 [web 5/7] RUN apt update
#8 0.328 
#8 0.328 WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
#8 0.328 
#8 0.628 Get:1 http://deb.debian.org/debian bookworm InRelease [151 kB]
#8 0.670 Get:2 https://deb.nodesource.com/node_20.x nodistro InRelease [12.1 kB]
#8 0.758 Get:3 https://dl.cloudsmith.io/public/platformsh/cli/deb/debian bookworm InRelease [3675 B]
#8 0.778 Get:4 http://deb.debian.org/debian bookworm-updates InRelease [55.4 kB]
#8 0.791 Get:5 https://packages.sury.org/php bookworm InRelease [7542 B]
#8 0.796 Get:6 http://nginx.org/packages/debian bookworm InRelease [2860 B]
#8 0.834 Get:7 http://deb.debian.org/debian-security bookworm-security InRelease [48.0 kB]
#8 0.867 Get:8 https://deb.nodesource.com/node_20.x nodistro/main amd64 Packages [7318 B]
#8 0.911 Get:9 https://dl.cloudsmith.io/public/platformsh/upsun-cli/deb/debian bookworm InRelease [3675 B]
#8 0.991 Get:10 http://deb.debian.org/debian bookworm/main amd64 Packages [8786 kB]
#8 1.033 Get:11 https://dl.cloudsmith.io/public/symfony/stable/deb/debian bookworm InRelease [4422 B]
#8 1.191 Get:12 https://dl.cloudsmith.io/public/platformsh/cli/deb/debian bookworm/main amd64 Packages [3310 B]
#8 1.269 Get:13 http://nginx.org/packages/debian bookworm/nginx amd64 Packages [7975 B]
#8 1.422 Get:14 https://packages.sury.org/php bookworm/main amd64 Packages [229 kB]
#8 1.426 Get:15 http://packages.blackfire.io/debian any InRelease [28.0 kB]
#8 1.485 Get:16 https://dl.cloudsmith.io/public/platformsh/upsun-cli/deb/debian bookworm/main amd64 Packages [2193 B]
#8 1.619 Get:17 https://dl.cloudsmith.io/public/symfony/stable/deb/debian bookworm/main amd64 Packages [6917 B]
#8 2.550 Get:18 http://packages.blackfire.io/debian any/main amd64 Packages [26.0 kB]
#8 3.066 Get:19 http://deb.debian.org/debian bookworm-updates/main amd64 Packages [13.8 kB]
#8 3.069 Get:20 http://deb.debian.org/debian-security bookworm-security/main amd64 Packages [156 kB]
#8 4.055 Fetched 9556 kB in 4s (2601 kB/s)
#8 4.055 Reading package lists...
#8 4.689 Building dependency tree...
#8 4.866 Reading state information...
#8 4.891 6 packages can be upgraded. Run 'apt list --upgradable' to see them.
#8 DONE 5.0s

#9 [web 6/7] RUN curl -I https://www.google.com
#9 0.372   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
#9 0.376                                  Dload  Upload   Total   Spent    Left  Speed
#9 0.378 
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0HTTP/2 200 
#9 0.561 content-type: text/html; charset=ISO-8859-1
#9 0.561 content-security-policy-report-only: object-src 'none';base-uri 'self';script-src 'nonce-R7HZpVrWEUnpUumkTFBVCQ' 'strict-dynamic' 'report-sample' 'unsafe-eval' 'unsafe-inline' https: http:;report-uri https://csp.withgoogle.com/csp/gws/other-hp
#9 0.561 p3p: CP="This is not a P3P policy! See g.co/p3phelp for more info."
#9 0.561 date: Fri, 17 May 2024 14:05:44 GMT
#9 0.561 server: gws
#9 0.561 x-xss-protection: 0
#9 0.561 x-frame-options: SAMEORIGIN
#9 0.561 expires: Fri, 17 May 2024 14:05:44 GMT
#9 0.561 cache-control: private
#9 0.561 set-cookie: 1P_JAR=2024-05-17-14; expires=Sun, 16-Jun-2024 14:05:44 GMT; path=/; domain=.google.com; Secure
#9 0.561 set-cookie: AEC=AQTF6Hx3-g-vcCvFVOxSSCvuleLam8el2QpDwnDC6TnRpctKo11P4uRgNkM; expires=Wed, 13-Nov-2024 14:05:44 GMT; path=/; domain=.google.com; Secure; HttpOnly; SameSite=lax
#9 0.561 set-cookie: NID=514=JUS8oE_o5PM2ODyEiVB15iDYc67v7txs6Zq5cCVEHKZwQLTOj4iTxtI63Hbb87rR0T1ORv7LzXVJJmQpUWMP6XQnoj6fvzOYIy5x16-gDsJwrYhsG5IN3ZIZzEah6Sol6E1NwTYuMoaB79Ul5bpBxh0JgPe_XNcWIGJpNKgJ-II; expires=Sat, 16-Nov-2024 14:05:44 GMT; path=/; domain=.google.com; HttpOnly
#9 0.561 alt-svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000
#9 0.561 
#9 0.562 
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
#9 DONE 0.6s

#10 [web 7/7] RUN chmod 777 /run/php
#10 DONE 0.2s

#11 [web] exporting to image
#11 exporting layers
#11 exporting layers 0.2s done
#11 writing image sha256:10c9d652d18d3eb5823dbf238983f535721bc04f3f4594728d756d1982d42189
#11 writing image sha256:10c9d652d18d3eb5823dbf238983f535721bc04f3f4594728d756d1982d42189 done
#11 naming to docker.io/ddev/ddev-webserver:v1.23.1-tryddevproject-3817-built done
#11 DONE 0.2s
Refreshed Docker cache for project tryddevproject-3817 in 8s
Network ddev_default created
 Container ddev-ssh-agent  Created
 Container ddev-ssh-agent  Started
ssh-agent container is running: If you want to add authentication to the ssh-agent container, run 'ddev auth ssh' to enable your keys.
v1.23.1: Pulling from ddev/ddev-dbserver-mariadb-10.11
a8b1c5f80c2d: Pulling fs layer
d089a232b283: Pulling fs layer
e6a7853251a9: Pulling fs layer
a02c50173b46: Pulling fs layer
60cf01d97b1c: Pulling fs layer
8712b8a31288: Pulling fs layer
e2713dbe3052: Pulling fs layer
f0ffb22994e6: Pulling fs layer
4f4fb700ef54: Pulling fs layer
faa786aca2f0: Pulling fs layer
673fa2490007: Pulling fs layer
58fdfe1cd816: Pulling fs layer
fa157a347f2a: Pulling fs layer
106f935e70a6: Pulling fs layer
cfb652f93b52: Pulling fs layer
5851332ba810: Pulling fs layer
5399635ca190: Pulling fs layer
bade098f2205: Pulling fs layer
f601a7f30211: Pulling fs layer
94f7e7becbb2: Pulling fs layer
a84f9b9b9383: Pulling fs layer
db780a914fb6: Pulling fs layer
ab859101a885: Pulling fs layer
343b39bf175e: Pulling fs layer
a02c50173b46: Waiting
60cf01d97b1c: Waiting
8712b8a31288: Waiting
e2713dbe3052: Waiting
f0ffb22994e6: Waiting
4f4fb700ef54: Waiting
faa786aca2f0: Waiting
673fa2490007: Waiting
58fdfe1cd816: Waiting
fa157a347f2a: Waiting
106f935e70a6: Waiting
cfb652f93b52: Waiting
5851332ba810: Waiting
5399635ca190: Waiting
bade098f2205: Waiting
f601a7f30211: Waiting
94f7e7becbb2: Waiting
a84f9b9b9383: Waiting
db780a914fb6: Waiting
ab859101a885: Waiting
343b39bf175e: Waiting
d089a232b283: Download complete
a02c50173b46: Verifying Checksum
a02c50173b46: Download complete
e6a7853251a9: Verifying Checksum
e6a7853251a9: Download complete
60cf01d97b1c: Verifying Checksum
60cf01d97b1c: Download complete
e2713dbe3052: Verifying Checksum
e2713dbe3052: Download complete
f0ffb22994e6: Download complete
4f4fb700ef54: Verifying Checksum
4f4fb700ef54: Download complete
faa786aca2f0: Verifying Checksum
faa786aca2f0: Download complete
a8b1c5f80c2d: Verifying Checksum
a8b1c5f80c2d: Download complete
58fdfe1cd816: Verifying Checksum
58fdfe1cd816: Download complete
fa157a347f2a: Verifying Checksum
fa157a347f2a: Download complete
106f935e70a6: Verifying Checksum
106f935e70a6: Download complete
a8b1c5f80c2d: Pull complete
d089a232b283: Pull complete
cfb652f93b52: Verifying Checksum
cfb652f93b52: Download complete
5851332ba810: Verifying Checksum
5851332ba810: Download complete
e6a7853251a9: Pull complete
a02c50173b46: Pull complete
60cf01d97b1c: Pull complete
5399635ca190: Verifying Checksum
5399635ca190: Download complete
bade098f2205: Verifying Checksum
bade098f2205: Download complete
f601a7f30211: Verifying Checksum
f601a7f30211: Download complete
94f7e7becbb2: Verifying Checksum
94f7e7becbb2: Download complete
8712b8a31288: Verifying Checksum
8712b8a31288: Download complete
db780a914fb6: Verifying Checksum
db780a914fb6: Download complete
a84f9b9b9383: Verifying Checksum
a84f9b9b9383: Download complete
343b39bf175e: Verifying Checksum
343b39bf175e: Download complete
ab859101a885: Verifying Checksum
ab859101a885: Download complete
8712b8a31288: Pull complete
e2713dbe3052: Pull complete
f0ffb22994e6: Pull complete
4f4fb700ef54: Pull complete
faa786aca2f0: Pull complete
673fa2490007: Verifying Checksum
673fa2490007: Download complete
673fa2490007: Pull complete
58fdfe1cd816: Pull complete
fa157a347f2a: Pull complete
106f935e70a6: Pull complete
cfb652f93b52: Pull complete
5851332ba810: Pull complete
5399635ca190: Pull complete
bade098f2205: Pull complete
f601a7f30211: Pull complete
94f7e7becbb2: Pull complete
a84f9b9b9383: Pull complete
db780a914fb6: Pull complete
ab859101a885: Pull complete
343b39bf175e: Pull complete
Digest: sha256:cd01a6e8e211e5d09d9a9d2fa57a6de5d4d27a4a08bc7c2752a0dc6376884f3a
Status: Downloaded newer image for ddev/ddev-dbserver-mariadb-10.11:v1.23.1
docker.io/ddev/ddev-dbserver-mariadb-10.11:v1.23.1
Building project images...
..Project images built in 2s.
 Network ddev-tryddevproject-3817_default  Created
 Container ddev-tryddevproject-3817-web  Created
 Container ddev-tryddevproject-3817-db  Created
 Container ddev-tryddevproject-3817-web  Started
 Container ddev-tryddevproject-3817-db  Started
Starting Mutagen sync process...
Mutagen sync flush completed in 2s.
For details on sync status 'ddev mutagen st tryddevproject-3817 -l'
Waiting for web/db containers to become ready: [web db]
Starting ddev-router if necessary...
 Container ddev-router  Created
 Container ddev-router  Started
Waiting for additional project containers to become ready...
All project containers are now ready.


======== Project startup ========
Starting tryddevproject-3817...
2024-05-17T10:07:10.464 Pulled image for ddev/ddev-webserver:v1.23.1
2024-05-17T10:07:10.468 Pulled image for busybox:stable
2024-05-17T10:07:10.473 Pulled image for ddev/ddev-ssh-agent:v1.23.1
2024-05-17T10:07:10.475 Pulled image for ddev/ddev-traefik-router:v1.23.1
2024-05-17T10:07:11.135 GetDockerContext: contextInfo='default unix:///Users/bhogue-oomph/.colima/default/docker.sock'
2024-05-17T10:07:11.135 Using Docker context default (unix:///Users/bhogue-oomph/.colima/default/docker.sock)
2024-05-17T10:07:11.764 chowning /mnt/ddev-global-cache and /var/lib/mysql to 501
2024-05-17T10:07:12.782 done chowning /mnt/ddev-global-cache and /var/lib/mysql to 501
2024-05-17T10:07:12.803 host.docker.internal=192.168.5.2 because running on Colima
2024-05-17T10:07:12.899 Pulled image for ddev/ddev-dbserver-mariadb-10.11:v1.23.1
2024-05-17T10:07:12.902 Pulled image for ddev/ddev-webserver:v1.23.1
2024-05-17T10:07:12.906 Pulled image for ddev/ddev-ssh-agent:v1.23.1
2024-05-17T10:07:12.909 Pulled image for ddev/ddev-traefik-router:v1.23.1
Building project images...
2024-05-17T10:07:12.914 Executing docker-compose -f /Users/bhogue-oomph/Oomph/Repos/tryddevproject-3817/.ddev/.ddev-docker-compose-full.yaml build --progress=plain
.Project images built in 1s.
2024-05-17T10:07:13.919 Executing docker-compose -f /Users/bhogue-oomph/Oomph/Repos/tryddevproject-3817/.ddev/.ddev-docker-compose-full.yaml up -d
 Container ddev-tryddevproject-3817-web  Recreate
 Container ddev-tryddevproject-3817-db  Recreate
 Container ddev-tryddevproject-3817-db  Recreated
 Container ddev-tryddevproject-3817-web  Recreated
 Container ddev-tryddevproject-3817-db  Started
 Container ddev-tryddevproject-3817-web  Started
2024-05-17T10:07:25.509 VIRTUAL_HOST=tryddevproject-3817.ddev.site for web
2024-05-17T10:07:25.509 HTTP_EXPOSE=80:80,8025:8025 for web
2024-05-17T10:07:25.509 HTTPS_EXPOSE=443:80,8026:8025 for web
2024-05-17T10:07:26.098 Copied /Users/bhogue-oomph/Oomph/Repos/tryddevproject-3817/.ddev/traefik:CopyIntoVolume_kzfpiomlsabt into /mnt/v/traefik in 81.348297ms
2024-05-17T10:07:26.165 Exec chown -R 501 /mnt/v/traefik stdout=, stderr=, err=<nil>
2024-05-17T10:07:26.35 Copied Traefik certs in /Users/bhogue-oomph/Oomph/Repos/tryddevproject-3817/.ddev/traefik/certs to ddev-global-cache/traefik
Starting Mutagen sync process...
2024-05-17T10:07:26.538 Using Mutagen config file /Users/bhogue-oomph/Oomph/Repos/tryddevproject-3817/.ddev/mutagen/mutagen.yml
2024-05-17T10:07:28.968 Mutagen status after sync: ok
Mutagen sync flush completed in 3s.
For details on sync status 'ddev mutagen st tryddevproject-3817 -l'
2024-05-17T10:07:28.968 Running /start.sh in ddev-webserver
Waiting for web/db containers to become ready: [web db]
2024-05-17T10:07:35.76 Copied /Users/bhogue-oomph/.ddev/commands:CopyIntoVolume_sztuouttznqt into /mnt/v/global-commands in 67.367641ms
2024-05-17T10:07:35.833 Exec chown -R 501 /mnt/v/global-commands stdout=, stderr=, err=<nil>
2024-05-17T10:07:36.163 Testing to see if /mnt/ddev_config is properly mounted
Starting ddev-router if necessary...
2024-05-17T10:07:36.984 Copied /Users/bhogue-oomph/.ddev/traefik:CopyIntoVolume_irbelmwsygou into /mnt/v/traefik in 81.581621ms
2024-05-17T10:07:37.056 Exec chown -R 501 /mnt/v/traefik stdout=, stderr=, err=<nil>
2024-05-17T10:07:37.24 Copied global Traefik config in /Users/bhogue-oomph/.ddev/traefik/certs to ddev-global-cache/traefik
 Container ddev-router  Running
2024-05-17T10:07:37.321 Waiting for ddev-router to become ready. docker inspect --format "{{json .State.Health }}" ddev-router
2024-05-17T10:07:37.829 ddev-router is ready
Waiting for additional project containers to become ready...
All project containers are now ready.
Successfully started tryddevproject-3817
Project can be reached at https://tryddevproject-3817.ddev.site https://127.0.0.1:32774


======== Curl of site from inside container ========
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
HTTP/1.1 200 OK
Server: nginx
Date: Fri, 17 May 2024 14:07:41 GMT
Content-Type: text/html; charset=UTF-8
Connection: keep-alive
Vary: Accept-Encoding

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0


======== curl -I of http://127.0.0.1:32775 (web container http docker bind port) from outside ========
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
HTTP/1.1 200 OK
Server: nginx
Date: Fri, 17 May 2024 14:07:41 GMT
Content-Type: text/html; charset=UTF-8
Connection: keep-alive
Vary: Accept-Encoding



======== curl -I of http://tryddevproject-3817.ddev.site (router http URL) from outside ========
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
HTTP/1.1 200 OK
Content-Type: text/html; charset=UTF-8
Date: Fri, 17 May 2024 14:07:41 GMT
Server: nginx
Vary: Accept-Encoding



======== Full curl of http://tryddevproject-3817.ddev.site (router http URL) from outside ========
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100   286    0   286    0     0  14746      0 --:--:-- --:--:-- --:--:-- 15052
Success accessing database... db via TCP/IP<br />
ddev is working.<br />
The output file for Discord or issue queue is in
<b>/var/folders/fs/x0x5jcy1667_4254qds0zmjm0000gn/T/ddev-debug-test.txt</b><br />
file:///var/folders/fs/x0x5jcy1667_4254qds0zmjm0000gn/T/ddev-debug-test.txt<br />


======== Full curl of https://tryddevproject-3817.ddev.site (router https URL) from outside ========
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100   286    0   286    0     0   3760      0 --:--:-- --:--:-- --:--:--  3813
Success accessing database... db via TCP/IP<br />
ddev is working.<br />
The output file for Discord or issue queue is in
<b>/var/folders/fs/x0x5jcy1667_4254qds0zmjm0000gn/T/ddev-debug-test.txt</b><br />
file:///var/folders/fs/x0x5jcy1667_4254qds0zmjm0000gn/T/ddev-debug-test.txt<br />


======== Curl google.com to check internet access and VPN ========
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
HTTP/2 200 
content-type: text/html; charset=ISO-8859-1
content-security-policy-report-only: object-src 'none';base-uri 'self';script-src 'nonce-gzWioB_1G6UddvSgHCcFFA' 'strict-dynamic' 'report-sample' 'unsafe-eval' 'unsafe-inline' https: http:;report-uri https://csp.withgoogle.com/csp/gws/other-hp
p3p: CP="This is not a P3P policy! See g.co/p3phelp for more info."
date: Fri, 17 May 2024 14:07:41 GMT
server: gws
x-xss-protection: 0
x-frame-options: SAMEORIGIN
expires: Fri, 17 May 2024 14:07:41 GMT
cache-control: private
set-cookie: 1P_JAR=2024-05-17-14; expires=Sun, 16-Jun-2024 14:07:41 GMT; path=/; domain=.google.com; Secure
set-cookie: AEC=AQTF6Hyzgya_NPGKef7zITH8M8cEfFhkcvN63f2EQB4ApPtrZE0kWQlcc-w; expires=Wed, 13-Nov-2024 14:07:41 GMT; path=/; domain=.google.com; Secure; HttpOnly; SameSite=lax
set-cookie: NID=514=lqb9oBrXc-BXbP0edA7_MiUj26U8JxcSKWFOa4eIM-n3u_zZUF2yo479oNj0YeevevizPUqPPu0ibJAvSskRhVDKdUlKKxVuCPu1WFHEQxj8HxioguaDGiCNBh6o7-DVDaFawJBCrFPPstXDIdFehxg_ldBNbGIDUqncf5loMtM; expires=Sat, 16-Nov-2024 14:07:41 GMT; path=/; domain=.google.com; HttpOnly
alt-svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000



======== host.docker.internal status ========
PING host.docker.internal (192.168.5.2) 56(84) bytes of data.
64 bytes from host.docker.internal (192.168.5.2): icmp_seq=1 ttl=63 time=1.20 ms

--- host.docker.internal ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 1.204/1.204/1.204/0.000 ms


======== Project ownership on host ========
drwxr-xr-x  4 bhogue-oomph  staff  128 May 17 10:05 ../tryddevproject-3817


======== Project ownership in container ========
drwxr-xr-x 4 bhogue-oomph dialout 4096 May 17 14:06 //var/www/html


======== In-container filesystem ========
Filesystem     Type 1K-blocks     Used Available Use% Mounted on
/dev/root      ext4  59848952 54032408   5800160  91% /var/www


======== Thanks for running the diagnostic! ========
Running ddev launch in 3 seconds
Running ddev launch
Waiting for ddev launch to complete before deleting project


Cleanup: deleting test project tryddevproject-3817
 Container ddev-tryddevproject-3817-db  Stopped
 Container ddev-tryddevproject-3817-web  Stopped
 Container ddev-tryddevproject-3817-db  Stopped
 Container ddev-tryddevproject-3817-web  Stopped
 Container ddev-tryddevproject-3817-db  Removed
 Container ddev-tryddevproject-3817-web  Removed
 Network ddev-tryddevproject-3817_default  Removed
Volume tryddevproject-3817-mariadb for project tryddevproject-3817 was deleted
Volume tryddevproject-3817-postgres for project tryddevproject-3817 was deleted
Volume tryddevproject-3817_project_mutagen for project tryddevproject-3817 was deleted
Project tryddevproject-3817 was deleted. Your code and configuration are unchanged.

Please remove the files from this test with 'rm -r ../tryddevproject-3817'

Expected Behavior

I have an existing project with a config file that used post-start hooks that in turn used nvm to install node 14.

I am trying to update my project's dependencies and, as part of this, updated ddev's config file to instead use nodejs_version: "18" and removed the aforementioned post-start hooks.

I expected that I could remove old post-start hooks that used nvm to install node 14, and switch to using nodejs_version to install node 18.

Actual Behavior

Actual behavior is ... essentially nothing.

After I made this change, I powered off ddev, restarted colima, and restarted ddev. I ran ddev exec node -v and it showed v14.21.3. So I ran ddev clean <name> and restarted everything again. Still v14.21.3. So then I ran ddev debug refresh. I was hopeful because I saw this in the output: => [web 6/7] RUN n install 18 && ln -sf 10.4s. But, alas, ddev exec node -v still showed v14.21.3. Grasping at straws, I ran docker buildx prune -a and restarted everything once again. Still v14.21.3. Then I tried colima prune. Still v14.21.3.

I am using the latest versions of ddev (1.23.1) and colima (0.6.8).

Steps To Reproduce

No response

Anything else?

No response

@rfay
Copy link
Member

rfay commented May 17, 2024

If you use ddev exec which node you'll find that it's still using nvm, I imagine.

ddev nvm -h says:

Note:
to remove, delete, or uninstall nvm - just remove the $NVM_DIR folder (usually ~/.nvm)

So does

ddev exec rm -r ~/.nvm

fix this for you?

@syzygy333
Copy link
Sponsor Contributor Author

ddev exec rm -r ~/.nvm said cannot remove '/Users/.../.nvm': No such file or directory, so I removed it manually in the Finder. I restarted ddev and ddev exec which node said /home/.../.nvm/versions/node/v14.21.3/bin/node. Among all the prunes and cleans etc I did above, was any of them the "right" one to do?

@rfay
Copy link
Member

rfay commented May 17, 2024

You did something wrong there and were trying to execute with the PATH on the host.

ddev exec rm -r ~/.nvm should have been removing /home//.nvm, not /Users/.../`. What shell are you using on the host?

You can easily ddev ssh and rm -r .nvm

After you've done that, a ddev restart should get you in the right world I think.

@rfay rfay changed the title nodejs_version not respected How do I switch from nvm to nodejs_version May 17, 2024
@syzygy333
Copy link
Sponsor Contributor Author

ddev ssh and rm -r .nvm = rm: cannot remove '.nvm': No such file or directory

@rfay
Copy link
Member

rfay commented May 17, 2024

Sounds like you already did it. You can use ls -lta .nvm or just ls -la to see what's there.

You can echo $NVM_DIR to see anything more than that

@syzygy333
Copy link
Sponsor Contributor Author

ls -la went from .npmrc to .phpunit.result.cache ... no sign of .nvm. So I restarted. And yet

dd exec which node
/home/.../.nvm/versions/node/v14.21.3/bin/node

@rfay
Copy link
Member

rfay commented May 17, 2024

That means that you haven't deleted .nvm I guess.

ddev ssh

and then you'll see that it's there. ls -la

@rfay
Copy link
Member

rfay commented May 17, 2024

Oh sorry! ddev ssh lands you in /var/www/html.

You'll need to cd or cd ~ to get into the homedir. That was the problem

@stasadev
Copy link
Member

A different technique from https://ddev.readthedocs.io/en/stable/users/usage/commands/#nvm

# Reset Node.js to `nodejs_version`
ddev nvm alias default system

@syzygy333
Copy link
Sponsor Contributor Author

syzygy333 commented May 17, 2024

You'll need to cd or cd ~ to get into the homedir. That was the problem

You were right, there was an .nvm there, so I rm -r .nvmed it and confirmed it was truly gone and restarted ddev. Unbelievably, I still get

dd exec which node
/home/<username>/.nvm/versions/node/v14.21.3/bin/node

So I'm thinking I need to restart my machine. If that doesn't do it, I'll try @stasadev's suggestion.

@rfay
Copy link
Member

rfay commented May 17, 2024

I'm able to reproduce your result. I guess the reason is that DDEV is finding your NVM and linking it on start.

Please try in container:

rm -rf /mnt/ddev-global-cache/nvm_dir/${DDEV_PROJECT}-web

Then ddev restart

That did it for me.

We'll need a hint about this in the docs, probably in the nodejs_version doc, want to try your hand at that by clicking the pencil on the docs page?

@rfay
Copy link
Member

rfay commented May 17, 2024

I think @stasadev 's solution in #6204 (comment)

ddev nvm alias default system

is probably the best. Weird that that's not in the nvm -h

@rfay
Copy link
Member

rfay commented May 17, 2024

And thanks so much for your support for DDEV via GitHub Sponsors @syzygy333 . They don't give out email addrs, but would love to have you sign up for the DDEV newsletter at https://ddev.com/newsletter to keep in touch. (Also your github profile link to https://www.oomphinc.com/people/bhogue/ seems to be out of date/404)

@syzygy333
Copy link
Sponsor Contributor Author

I'm able to reproduce your result. I guess the reason is that DDEV is finding your NVM and linking it on start.

Please try in container:

rm -rf /mnt/ddev-global-cache/nvm_dir/${DDEV_PROJECT}-web

Then ddev restart

That did it for me.

We'll need a hint about this in the docs, probably in the nodejs_version doc, want to try your hand at that by clicking the pencil on the docs page?

This did it! Finally!

ddev exec node -v
v18.20.2

Your speedy help was exceptional. Thanks so much. I'd be glad to contribute to the docs. (Also, thank you, I'll update my profile link.)

syzygy333 added a commit to syzygy333/ddev that referenced this issue May 17, 2024
rfay added a commit that referenced this issue May 20, 2024
…#6207) [skip ci]

Co-authored-by: Randy Fay <randy@randyfay.com>
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

Successfully merging a pull request may close this issue.

3 participants