Page MenuHomePhabricator

Issue with autoset env vars, WARNING: The NETWORK_SUBNET_PREFIX variable is not set. Defaulting to a blank string.
Closed, ResolvedPublic

Description

This was reported in other channels, but now also made its way onto phab

Not 100% sure it's Podman's fault but on Fedora(where the default docker package now being podman) mw docker mediawiki create fails with:

WARNING: The NETWORK_SUBNET_PREFIX variable is not set. Defaulting to a blank string.
WARNING: The PORT variable is not set. Defaulting to a blank string.
ERROR: The Compose file '/home/redacted/.config/mwcli/mwdd/default/base.yml' is invalid because:
networks.dps.ipam.config.subnet is invalid: should use the CIDR format
services.nginx-proxy.ports contains an invalid type, it should be a number, or an object

Versions:

podman version 4.5.0
docker-compose version 1.29.2, build unknown

I believe the error you mention above is unrelated and is a bug in T301002#8607168 and https://gitlab.wikimedia.org/repos/releng/cli/-/merge_requests/308

Event Timeline

Addshore triaged this task as High priority.Jun 6 2023, 3:09 PM
Addshore created this task.

I imagine this issue currently happens in v0.20.0 +

To make the issue go away until a fix is in place...
Set NETWORK_SUBNET_PREFIX to 10.0.0 and PORT to something like 8080 of wherever you want your dev env to be exposed!

hoo subscribed.

AFAIS this has been part of 0.23.0.