Closed Lazerbeak12345 closed 3 months ago
Workaround: sudo git clean -fd
(this is the nuclear option - never use this command unless you know what it does)
FAILED - during test package creation, sql "duplicate key" errors were my only reply due to the database not being empty
Also:
psql
isn't present in the docker image, so I couldn't manually delete the databaseps -s | grep postg
returns a few items, but when it isn't, nothing.Workaround: (DANGEROUS) use sudo to recursively remove the contents of the data folder
EDIT: this might not be working either - but I'm emotionally exhausted from this project for today.
proposed solution: document this somewhere for the next guy?
The way I delete the db is by shutting the container down, doing sudo rm -rf data/db
, and then restarting the container. The -d
arg is left over from when I used sqlite
As for uploads, you need to do sudo chown $(whoami):5123 -R data/uploads
As for uploads, you need to do sudo chown $(whoami):5123 -R data/uploads
You may also need to do chmod g+w data/uploads
, I haven't checked. Should be documented if so
Summary
I wanted to make a quick and easy change to the "test databse" - but couldn't because it was a postgresql database. All attempts to delete the db failed.
Steps to reproduce
sudo dnf docker-ce docker-compose
after enabling the official COPR from the official docker website on Fedora 39)secret_key
andwtf
... yada yada key to gibberish values likeasdfasdfasfd
USER_ENABLE_EMAIL
toFalse
(an attempt to fix the SMTPS errors- still get them with or without it)getting_started.md
docker-compose up --build
./utils/run_migrations.sh
./utils/bash.sh
python utils/setup.py -t
getting_started.md
PermissionError: [Errno 13] Permission denied: '/var/cdb/uploads/45b0153bb2.zip'
)python utils/setup.py -d
- an attempt to delete the database, after looking at the code for that file.The database remained, even after (attempting) to delete it. I couldn't figure out how to delete the database using docker.
The sheer number of error messages I saw the whole time are so vast, I can't post all of them - partially due to the terminal trimming them out. I can attempt to recreate them upon request.
The truncated error message when I do anything with
utils/setup.py
: