Problem:
“foreman-installer --reset-data” fails to clear pulp’s new directory /var/lib/pulp/media
Expected outcome:
/var/lib/pulp/media is cleared
Foreman and Proxy versions:
2.31
Other relevant data:
still looking in /var/lib/pulp/docroot
2021-01-30 08:29:33 [NOTICE] [pre] Executing hooks in group pre
Executing: sudo -u postgres dropdb foreman
could not change directory to "/root": Permission denied
Executing: rm -f /var/lib/candlepin/.puppet-candlepin-cpdb*
Executing: sudo -u postgres dropdb candlepin
could not change directory to "/root": Permission denied
Executing: rm -f /var/lib/pulp/init.flag
Executing: mongo pulp_database --host localhost --port 27017 --eval 'db.dropDatabase();'
MongoDB shell version v3.4.9
connecting to: mongodb://localhost:27017/pulp_database
MongoDB server version: 3.4.9
{ "dropped" : "pulp_database", "ok" : 1 }
Executing: rm -rf /var/lib/pulp/{distributions,published,repos,content}/*
Executing: sudo -u postgres dropdb pulpcore
could not change directory to "/root": Permission denied
2021-01-30 08:30:37 [WARN ] [pre] **Pulpcore content directory not present at '/var/lib/pulp/docroot**'
2021-01-30 08:30:37 [NOTICE] [pre] All hooks in group pre finished
2021-01-30 08:30:37 [NOTICE] [configure] Starting system configuration.
The total number of configuration tasks may increase during the run.
Observe logs or specify --verbose-log-level to see individual configuration tasks.