Closed mattstein closed 2 years ago
Started over again and have now added three sites without issue. 🙃
Turns out the issue is with Nitro pulling public images. It seems you can get around the issue by adding export NITRO_DEVELOPMENT=true
to your shell profile, and you can force it by inconsistently exporting that environment variable in a session and using Nitro with and without it.
Attaching docker inspect
output for a healthy site and one that’s borked.
I believe we got this resolved in our local build @mattstein because it was a routing issue?
I think so. I just plopped export NITRO_DEVELOPMENT=true
into my shell profile and haven’t run into this since.
Boils down to user error, and only in the case of building Nitro for local development.
Sounds great!
Description
I’ve built Nitro locally, including the proxy and images, on my Mac. Starting completely fresh, after removing all Docker volumes and images and rebuilding (with
export NITRO_DEVELOPMENT=true
permanently added to my.zshrc
profile), I can usenitro add
once successfully. Adding one or more new sites, however, results in every site responding with either a blank page or Nitro’s generic default page:Attempting to access a static file (like
web/test.txt
) returns an empty response.In either case (empty response or default page), I cannot use
nitro ssh
to investigate the web container:That “unable to find user nitro” message is identical regardless of which site I attempt.
The end result is that I can only use Nitro for one site after a fresh install before all sites are unusable.
I had been using Nitro 3 with multiple sites just fine, but it seems this only-one-site-before-they’re-all-borked problem is newer—probably introduced in the past two weeks?
I first assumed I’d made a mess not properly deleting Nitro’s existing volumes and images, but I definitely removed all Docker volumes and images from my system before this previous fresh install. (Also deleted
~/.nitro/nitro.yaml
.)Steps to reproduce
nitro destroy
, manually using the Docker GUI to “clean up” all volumes and images, and deletingnitro.yaml
.git pull origin
export NITRO_DEVELOPMENT=true
make local
make proxy
make images
nitro init
.nitro add
and following the prompts.nitro add
another project.nitro ssh
into either project, and observe the “unable to find user nitro“ error as described above.Additional info