flowspy icon indicating copy to clipboard operation
flowspy copied to clipboard

Unknown table peers_networks

Open cejkato2 opened this issue 7 years ago • 5 comments

Using branch django18upgrade, I get the following error:

OperationalError at /admin/peers/peer/add/

no such table: peer_networks

Request Method: 	POST
Request URL: 	http://localhost:8000/admin/peers/peer/add/
Django Version: 	1.8
Exception Type: 	OperationalError
Exception Value: 	

no such table: peer_networks

Steps to reproduce:

  1. in admin add new peer range
  2. in admin add new peer with the chosen new peer range

showmigrations says that all migrations are done, so I assume something is missing there. Can you see the same error?

cejkato2 avatar May 15 '17 16:05 cejkato2

Any news?

cejkato2 avatar Jun 13 '17 10:06 cejkato2

Is this a new setup? Or did you upgrade from the previous (1.4) version?

safts avatar Jun 13 '17 10:06 safts

I tried to create a completely new installation in VM.

cejkato2 avatar Jun 13 '17 10:06 cejkato2

I have identified the issue. It seems that some migrations were missing, but in our case this did not appear since we only tested upgrading the project, in which scenario the missing fields (or tables, in that case) the migrations needed to create were already there. I am working on a detailed fix right now. Your issue should be resolved if you run

./manage.py makemigrations
./manage.py migrate

or you could wait for the fix.

safts avatar Jun 13 '17 12:06 safts

@cejkato2 I have merged the fixes. Please give them a check and let me know.

safts avatar Jun 20 '17 11:06 safts