-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Migration error #36
Comments
I hit the same problem running with WSL2:
|
Ok, I will try it on my side today evening. Sorry for the inconvenience. |
I confirm that there are some issues there. I will work on it. |
So I added a
To handle the problem. |
Hi @psemdel,
PS, I tried running the optional 'import dump.json' as well, and got the following error:
Cheers. |
No problem, I like also when the code is working. The errors you see, django_curs_139757766047296..., are because the migration did not take place. Check the migration job. For the dump, there was that at the beginning (and yes, no idea, why I did not see that yesterday): I deleted it, it seems fine now. I use Python 3.9. I am building an environment with Python 3.10... to test it with it. |
It seems to work also with Python 3.10 |
Migration worked for me after the fix, but the bot has been throwing the following error -
|
That's the log? |
Yes. |
I need to investigate more in details... Probably this weekend. I suppose, I still have to work on this docker image. |
So sorry, that it took me so long. I am quite busy right now. So I did it all step by step (each yaml file applied one after the others, checking each step). I confirm it works. To be even more sure, I will use from now the Docker version on daily basis, normally I just run it locally. Concerning your error, it is often caused by a missing configuration map or secret. Did you do the: ? Moreover, I would advise to start again from scratch. I had also problems, because I thought that I was working with a clean DB, but now, it was the old one. So did you remove the PV and PVC before retrying. I would sugger to delete your cluster (minikube delete). And try again. With DB half migrated and systems half in their old state and half in their new state, it can quickly become messy. |
Following Docker installation guide, and hit with an error when creating django-migrations container for the first time. Here is the error -
Traceback (most recent call last):
File "/home/jovyan/py-trading-bot/manage.py", line 22, in
main()
File "/home/jovyan/py-trading-bot/manage.py", line 18, in main
execute_from_command_line(sys.argv)
File "/opt/conda/lib/python3.9/site-packages/django/core/management/init.py", line 442, in execute_from_command_line
utility.execute()
File "/opt/conda/lib/python3.9/site-packages/django/core/management/init.py", line 416, in execute
django.setup()
File "/opt/conda/lib/python3.9/site-packages/django/init.py", line 24, in setup
apps.populate(settings.INSTALLED_APPS)
File "/opt/conda/lib/python3.9/site-packages/django/apps/registry.py", line 124, in populate
app_config.ready()
File "/home/jovyan/py-trading-bot/orders/apps.py", line 13, in ready
if len(StockStatus.objects.all())==0:
File "/opt/conda/lib/python3.9/site-packages/django/db/models/query.py", line 380, in len
self._fetch_all()
File "/opt/conda/lib/python3.9/site-packages/django/db/models/query.py", line 1881, in _fetch_all
self._result_cache = list(self._iterable_class(self))
File "/opt/conda/lib/python3.9/site-packages/django/db/models/query.py", line 91, in iter
results = compiler.execute_sql(
File "/opt/conda/lib/python3.9/site-packages/django/db/models/sql/compiler.py", line 1562, in execute_sql
cursor.execute(sql, params)
File "/opt/conda/lib/python3.9/site-packages/django/db/backends/utils.py", line 102, in execute
return super().execute(sql, params)
File "/opt/conda/lib/python3.9/site-packages/django/db/backends/utils.py", line 67, in execute
return self._execute_with_wrappers(
File "/opt/conda/lib/python3.9/site-packages/django/db/backends/utils.py", line 80, in _execute_with_wrappers
return executor(sql, params, many, context)
File "/opt/conda/lib/python3.9/site-packages/django/db/backends/utils.py", line 89, in _execute
return self.cursor.execute(sql, params)
File "/opt/conda/lib/python3.9/site-packages/django/db/utils.py", line 91, in exit
raise dj_exc_value.with_traceback(traceback) from exc_value
File "/opt/conda/lib/python3.9/site-packages/django/db/backends/utils.py", line 89, in _execute
return self.cursor.execute(sql, params)
django.db.utils.ProgrammingError: relation "orders_stockstatus" does not exist
LINE 1: ...tegy_id", "orders_stockstatus"."order_in_ib" FROM "orders_st...
The text was updated successfully, but these errors were encountered: