{"action":"closed","issue":{"url":"https://api.github.com/repos/django-dbbackup/django-dbbackup/issues/16","repository_url":"https://api.github.com/repos/django-dbbackup/django-dbbackup","labels_url":"https://api.github.com/repos/django-dbbackup/django-dbbackup/issues/16/labels{/name}","comments_url":"https://api.github.com/repos/django-dbbackup/django-dbbackup/issues/16/comments","events_url":"https://api.github.com/repos/django-dbbackup/django-dbbackup/issues/16/events","html_url":"https://github.com/django-dbbackup/django-dbbackup/issues/16","id":71400542,"number":16,"title":"Error when backup postgresql without username","user":{"login":"mjs7231","id":435619,"avatar_url":"https://avatars.githubusercontent.com/u/435619?v=3","gravatar_id":"","url":"https://api.github.com/users/mjs7231","html_url":"https://github.com/mjs7231","followers_url":"https://api.github.com/users/mjs7231/followers","following_url":"https://api.github.com/users/mjs7231/following{/other_user}","gists_url":"https://api.github.com/users/mjs7231/gists{/gist_id}","starred_url":"https://api.github.com/users/mjs7231/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mjs7231/subscriptions","organizations_url":"https://api.github.com/users/mjs7231/orgs","repos_url":"https://api.github.com/users/mjs7231/repos","events_url":"https://api.github.com/users/mjs7231/events{/privacy}","received_events_url":"https://api.github.com/users/mjs7231/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/django-dbbackup/django-dbbackup/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2015-04-27T21:01:59Z","updated_at":"2016-07-24T22:03:45Z","closed_at":"2016-07-24T22:03:45Z","body":"In my settings I have:\r\n\r\n    DATABASES = {\r\n        'default': {\r\n            'ENGINE': 'django.db.backends.postgresql_psycopg2', \r\n            'NAME': 'abc',                     \r\n            'USER': '',\r\n            'PASSWORD': '',\r\n            'HOST': '',                  \r\n            'PORT': '',                  \r\n        }\r\n\r\nmy application works and my postgres server is on 127.0.0.1 and my postgres use IDENT authentication.\r\nif I configure dbbackup as explained, and run:\r\n``django-admin.py dbbackup``\r\nI get the following error:\r\n```\r\npg_dump: [archiviatore (db)] connessione al database \"abc\" fallita: FATALE: nessun utente PostgreSQL specificato nel pacchetto di avvio CommandError: Error running: ['pg_dump', '--username=', '<myusername>']\r\n```\r\nwhich is the italian for the error:\r\n``pg_dump: [archiver (db)] connection to database \"abc\" failed: FATAL: no PostgreSQL user name specified in startup packet``\r\nI guess the problem is that in this configuration the Command executed should be just:\r\n``pg_dump``\r\n(which, btw, works if run via CLI).\r\nAm I right? Is it possible to fix it? If you want, I can try to look for the place in the code that builds the command line and try to fix it."}}
{"actor":{"display_login":"ZuluPro"}}