{"action":"closed","issue":{"url":"https://api.github.com/repos/django-dbbackup/django-dbbackup/issues/167","repository_url":"https://api.github.com/repos/django-dbbackup/django-dbbackup","labels_url":"https://api.github.com/repos/django-dbbackup/django-dbbackup/issues/167/labels{/name}","comments_url":"https://api.github.com/repos/django-dbbackup/django-dbbackup/issues/167/comments","events_url":"https://api.github.com/repos/django-dbbackup/django-dbbackup/issues/167/events","html_url":"https://github.com/django-dbbackup/django-dbbackup/issues/167","id":159144261,"number":167,"title":"ERROR:  invalid byte sequence for encoding \"UTF8\"","user":{"login":"psychok7","id":282284,"avatar_url":"https://avatars.githubusercontent.com/u/282284?v=3","gravatar_id":"","url":"https://api.github.com/users/psychok7","html_url":"https://github.com/psychok7","followers_url":"https://api.github.com/users/psychok7/followers","following_url":"https://api.github.com/users/psychok7/following{/other_user}","gists_url":"https://api.github.com/users/psychok7/gists{/gist_id}","starred_url":"https://api.github.com/users/psychok7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/psychok7/subscriptions","organizations_url":"https://api.github.com/users/psychok7/orgs","repos_url":"https://api.github.com/users/psychok7/repos","events_url":"https://api.github.com/users/psychok7/events{/privacy}","received_events_url":"https://api.github.com/users/psychok7/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/django-dbbackup/django-dbbackup/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/django-dbbackup/django-dbbackup/labels/restore","name":"restore","color":"f9d0c4"}],"state":"closed","locked":false,"assignee":{"login":"ZuluPro","id":2029180,"avatar_url":"https://avatars.githubusercontent.com/u/2029180?v=3","gravatar_id":"","url":"https://api.github.com/users/ZuluPro","html_url":"https://github.com/ZuluPro","followers_url":"https://api.github.com/users/ZuluPro/followers","following_url":"https://api.github.com/users/ZuluPro/following{/other_user}","gists_url":"https://api.github.com/users/ZuluPro/gists{/gist_id}","starred_url":"https://api.github.com/users/ZuluPro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ZuluPro/subscriptions","organizations_url":"https://api.github.com/users/ZuluPro/orgs","repos_url":"https://api.github.com/users/ZuluPro/repos","events_url":"https://api.github.com/users/ZuluPro/events{/privacy}","received_events_url":"https://api.github.com/users/ZuluPro/received_events","type":"User","site_admin":false},"assignees":[{"login":"ZuluPro","id":2029180,"avatar_url":"https://avatars.githubusercontent.com/u/2029180?v=3","gravatar_id":"","url":"https://api.github.com/users/ZuluPro","html_url":"https://github.com/ZuluPro","followers_url":"https://api.github.com/users/ZuluPro/followers","following_url":"https://api.github.com/users/ZuluPro/following{/other_user}","gists_url":"https://api.github.com/users/ZuluPro/gists{/gist_id}","starred_url":"https://api.github.com/users/ZuluPro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ZuluPro/subscriptions","organizations_url":"https://api.github.com/users/ZuluPro/orgs","repos_url":"https://api.github.com/users/ZuluPro/repos","events_url":"https://api.github.com/users/ZuluPro/events{/privacy}","received_events_url":"https://api.github.com/users/ZuluPro/received_events","type":"User","site_admin":false}],"milestone":null,"comments":11,"created_at":"2016-06-08T11:47:33Z","updated_at":"2016-08-09T03:56:44Z","closed_at":"2016-08-09T03:56:44Z","body":"Hey there, while trying `django-dbbackup==2.5.0` i ran into an error when doing a `dbrestore`. The workaround i found was to downgrade to `django-dbbackup==2.3.3`. I am using `Postgresql 9.3.9`\r\n\r\nThe traceback \r\n\r\n```\r\nroot@d536ecada160:/code# python proj/manage.py dbrestore --settings=proj.settings.prod\r\nRestoring backup for database: postgres\r\nFinding latest backup\r\nReading file info-projects-2016-06-08-103035.tar.gz\r\nReading file info-projects-2016-06-08-103035.tar.gz\r\nRestoring: info-projects-2016-06-08-103035.tar.gz\r\nRestore tempfile created: 35.8 MiB\r\nAre you sure you want to continue? [Y/n]y\r\nRunning: dropdb --username=****** --host=proj_****** --port=5432 ******\r\nperl: warning: Setting locale failed.\r\nperl: warning: Please check that your locale settings:\r\n\tLANGUAGE = \"en_US.UTF-8\",\r\n\tLC_ALL = \"en_US.UTF-8\",\r\n\tLANG = \"en_US.UTF-8\"\r\n    are supported and installed on your system.\r\nperl: warning: Falling back to the standard locale (\"C\").\r\nRunning: createdb --username=****** --owner=****** --host=proj_****** --port=5432 ******\r\nperl: warning: Setting locale failed.\r\nperl: warning: Please check that your locale settings:\r\n\tLANGUAGE = \"en_US.UTF-8\",\r\n\tLC_ALL = \"en_US.UTF-8\",\r\n\tLANG = \"en_US.UTF-8\"\r\n    are supported and installed on your system.\r\nperl: warning: Falling back to the standard locale (\"C\").\r\nRunning: psql -d ****** -f - --username=****** --host=proj_****** --port=5432 --single-transaction\r\nperl: warning: Setting locale failed.\r\nperl: warning: Please check that your locale settings:\r\n\tLANGUAGE = \"en_US.UTF-8\",\r\n\tLC_ALL = \"en_US.UTF-8\",\r\n\tLANG = \"en_US.UTF-8\"\r\n    are supported and installed on your system.\r\nperl: warning: Falling back to the standard locale (\"C\").\r\n/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)\r\npsql:<stdin>:5: invalid command \\r�\u001B�-e�\u001A�H�\u0011q\r\npsql:<stdin>:10: invalid command \\\r\npsql:<stdin>:14: invalid command \\]������8:+����\u001A(<�A \r\n\r\n...\r\npsql:<stdin>:498: invalid command \\\u0006ѐ\u0010Թ�\r\npsql:<stdin>:499: invalid command \\�%�@\r\npsql:<stdin>:503: ERROR:  invalid byte sequence for encoding \"UTF8\": 0xbc\r\npsql:<stdin>:504: invalid command \\��3�\u0004yhI�Q��\r\npsql:<stdin>:506: invalid command \\��\u0002fd=}�YM�\r\npsql:<stdin>:507: invalid command \\B�?��\u0017n0�����\u0004�8k:\u0006[7[�>#}E�9Ep\"��BI�*����h%t�S�ƣ�\u0013�_z��Nu����lOd���`ع3\r\npsql:<stdin>:511: invalid command \\q�\u001E��Ja��.R\u0015\r\npsql:<stdin>:58031: ERROR:  invalid byte sequence for encoding \"UTF8\": 0xf0 0x3c 0xbf 0xf9\r\n```\r\n\r\nAny ideas where this bug was introduced or how to fix it?"}}
{"actor":{"display_login":"ZuluPro"}}