Admin user not created when running site.yaml

Hi, we are running ofn-install to deploy the Costa Rica production instance.

ansible-playbook site.yml --limit=cr_prod -e "@./inventory/host_vars/laferia.cr/secrets.yml" -e "git_version=v5.7.2"

We faced an issue multiple, admin user is not created.

In the last attempt, we decide to create the user manually, when I manully ran:

sudo su - openfoodnetwork
openfoodnetwork@cr-prod:~$ cd /home/openfoodnetwork/apps/openfoodnetwork/current
openfoodnetwork@cr-prod:~/apps/openfoodnetwork/current$ RAILS_ENV=production bundle exec rails console
openfoodnetwork(prod)> Spree::User.find_by(id: 1)
=> nil
openfoodnetwork(prod)> Spree::Core::Engine.load_seed

After load_seed, the user was created with correct information from secrets.yaml and it seeded the zone information as well.

Is there known issue with ofn-install?

Hi there, if you’re still having trouble I’d suggest posting your question in our #dev slack channel - that channel is used for technical development discussions and someone will be able to help there :slight_smile: