Closed mholttech closed 9 years ago
What database backend are you running? Are you running this on a bare OS or Docker?
It's running on docker and using your postgres container
On Monday, October 19, 2015, Graham Gilbert notifications@github.com wrote:
What database backend are you running? Are you running this on a bare OS or Docker?
— Reply to this email directly or view it on GitHub https://github.com/salopensource/sal/issues/23#issuecomment-149340466.
[image: Real Life Church] http://www.reallifechurch.org
Michael Holt / IT Administrator (661) 705-4711/ mholt@reallifechurch.org
Real Life Church Office: (661) 775-7401 23841 Newhall Ranch Rd Valencia, CA 91355 http://www.reallifechurch.org
This e-mail message may contain confidential or legally privileged information and is intended only for the use of the intended recipient(s). Any unauthorized disclosure, dissemination, distribution, copying or the taking of any action in reliance on the information herein is prohibited. E-mails are not secure and cannot be guaranteed to be error free as they can be intercepted, amended, or contain viruses. Anyone who communicates with us by e-mail is deemed to have accepted these risks. Company Name is not responsible for errors or omissions in this message and denies any responsibility for any damage arising from the use of e-mail. Any opinion and other statement contained in this message and any attachment are solely those of the author and do not necessarily represent those of the company.
Did you update the postgres container? There was an issue with that recently. Either way, you'll probably find it easier to roll back to your backup for now whilst I investigate.
Graham Gilbert Sent from my iPhone
On 19 Oct 2015, at 21:40, Michael Holt notifications@github.com wrote:
It's running on docker and using your postgres container
On Monday, October 19, 2015, Graham Gilbert notifications@github.com wrote:
What database backend are you running? Are you running this on a bare OS or Docker?
— Reply to this email directly or view it on GitHub https://github.com/salopensource/sal/issues/23#issuecomment-149340466.
[image: Real Life Church] http://www.reallifechurch.org
Michael Holt / IT Administrator (661) 705-4711/ mholt@reallifechurch.org
Real Life Church Office: (661) 775-7401 23841 Newhall Ranch Rd Valencia, CA 91355 http://www.reallifechurch.org
This e-mail message may contain confidential or legally privileged information and is intended only for the use of the intended recipient(s). Any unauthorized disclosure, dissemination, distribution, copying or the taking of any action in reliance on the information herein is prohibited. E-mails are not secure and cannot be guaranteed to be error free as they can be intercepted, amended, or contain viruses. Anyone who communicates with us by e-mail is deemed to have accepted these risks. Company Name is not responsible for errors or omissions in this message and denies any responsibility for any damage arising from the use of e-mail. Any opinion and other statement contained in this message and any attachment are solely those of the author and do not necessarily represent those of the company. — Reply to this email directly or view it on GitHub.
Just an FYI I just updated the postgres container and still ran into the error.
After rolling back to your backup? Normally once a migration goes wonky, there isn't much going back without digging into the database
Graham Gilbert
On Mon, Oct 19, 2015 at 10:20 PM, Michael Holt notifications@github.com wrote:
Just an FYI I just updated the postgres container and still ran into the error.
Reply to this email directly or view it on GitHub: https://github.com/salopensource/sal/issues/23#issuecomment-149350775
I dug a little and discovered that all of my tables are owned by user "postgres" and not user "sal" which is why I was having issues with the migration. This is what I ran on the postgres container to resolve the problem:
for tbl in `psql -qAt -U postgres -c "select tablename from pg_tables where schemaname = 'public';" sal` ; do psql -U postgres -c "alter table \"$tbl\" owner to sal" sal ; done
for tbl in `psql -qAt -U postgres -c "select sequence_name from information_schema.sequences where sequence_schema = 'public';" sal` ; do psql -U postgres -c "alter table \"$tbl\" owner to sal" sal ; done
for tbl in `psql -qAt -U postgres -c "select table_name from information_schema.views where table_schema = 'public';" sal` ; do psql -U postgres -c "alter table \"$tbl\" owner to sal" sal ; done
Weird, but good to have in the archives. Glad it got sorted.
I'm trying to upgrade to 2.2.2 from 2.1.1 and am having issues running
python manage.py migrate
Here is the error log: