2 years ago
I created a Django app, deployed the code on github, deployed it on railway project, then created a PostgreSQL database in the same project, copied the DATABASE_URL variable into my Django settings, as seen below.
DATABASES = {
'default': djdatabaseurl.config(
default='postgresql://postgres:pJsGBdJsVfUHPwglbIHFHik@roundhouse.proxy..net:291/rail***',
connmaxage=600,
connhealthchecks=True,
)
with PROCFILE web: python manage.py migrate && gunicorn locallibrary.wsgi
Deployment of the app is successuful, migration of the database as well, BUT every attempt to Python manage.py createsuperuser has not been successfull
i see the below in the command promt
Python(17820,0x7fffa6cc3380) malloc: *** error for object 0x303030383243: pointer being freed was not allocated
*** set a breakpoint in mallocerrorbreak to debug
and the below in the postgress log on railway
2024-03-13 09:57:29.365 UTC [189] FATAL: no PostgreSQL user name specified in startup packet
@replica: 22290edb-0616-4e9a-8912-7a51150d4cb1
1 Replies
2 years ago
Could you elaborate on how you're creating the super user?
That Python error you pasted doesn't seem related to Railway, or your database. Seems like something's funky with your local Python installation? I'd suggest seeking help elsewhere such as stackoverflow.