{"action":"opened","issue":{"url":"https://api.github.com/repos/saltstack/salt/issues/35239","repository_url":"https://api.github.com/repos/saltstack/salt","labels_url":"https://api.github.com/repos/saltstack/salt/issues/35239/labels{/name}","comments_url":"https://api.github.com/repos/saltstack/salt/issues/35239/comments","events_url":"https://api.github.com/repos/saltstack/salt/issues/35239/events","html_url":"https://github.com/saltstack/salt/issues/35239","id":169657142,"number":35239,"title":"[ERROR   ] Exception Require 20 byte binary sha, got '\\xe6\\x90', len = 2 occurred in file server update","user":{"login":"PredatorVI","id":1933277,"avatar_url":"https://avatars.githubusercontent.com/u/1933277?v=3","gravatar_id":"","url":"https://api.github.com/users/PredatorVI","html_url":"https://github.com/PredatorVI","followers_url":"https://api.github.com/users/PredatorVI/followers","following_url":"https://api.github.com/users/PredatorVI/following{/other_user}","gists_url":"https://api.github.com/users/PredatorVI/gists{/gist_id}","starred_url":"https://api.github.com/users/PredatorVI/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PredatorVI/subscriptions","organizations_url":"https://api.github.com/users/PredatorVI/orgs","repos_url":"https://api.github.com/users/PredatorVI/repos","events_url":"https://api.github.com/users/PredatorVI/events{/privacy}","received_events_url":"https://api.github.com/users/PredatorVI/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-08-05T17:30:27Z","updated_at":"2016-08-05T17:30:27Z","closed_at":null,"body":"Running on Ubuntu 14.04.5 with latest salt-master version 2016.3.2 packages.  It also happened recently with previous (newish) versions.  \r\n\r\nWhen I saw the initial issue I also saw warnings related to changing hash_type to sha256.  In that process I also upgrade to 2016.3.1 but the problem didn't go away, so I purged all salt packages and all unused dependent packages and did a clean install.  The problem went away for about a week, but yesterday it started happening again so I upgraded to 2016.3.2 (also tried a purge+clean install).\r\n\r\nThe logs show the exception below on the salt-master during the refresh of gitfs repos.  The result is that none of my SLS files are loaded and I'm dead in the water.\r\n\r\nHere is the full exception: \r\n```\r\n[ERROR   ] Exception Require 20 byte binary sha, got '\\xe6\\x90', len = 2 occurred in file server update\r\nTraceback (most recent call last):\r\n  File \"/usr/lib/python2.7/dist-packages/salt/daemons/masterapi.py\", line 270, in fileserver_update\r\n    fileserver.update()\r\n  File \"/usr/lib/python2.7/dist-packages/salt/fileserver/__init__.py\", line 453, in update\r\n    self.servers[fstr]()\r\n  File \"/usr/lib/python2.7/dist-packages/salt/fileserver/gitfs.py\", line 124, in update\r\n    gitfs.update()\r\n  File \"/usr/lib/python2.7/dist-packages/salt/utils/gitfs.py\", line 2218, in update\r\n    self.find_file\r\n  File \"/usr/lib/python2.7/dist-packages/salt/fileserver/__init__.py\", line 240, in reap_fileserver_cache_dir\r\n    ret = find_func(filename, saltenv=saltenv)\r\n  File \"/usr/lib/python2.7/dist-packages/salt/utils/gitfs.py\", line 2577, in find_file\r\n    blob, blob_hexsha = repo.find_file(repo_path, tgt_env)\r\n  File \"/usr/lib/python2.7/dist-packages/salt/utils/gitfs.py\", line 862, in find_file\r\n    file_blob = tree / path\r\n  File \"/usr/lib/python2.7/dist-packages/git/objects/tree.py\", line 172, in __div__\r\n    item = tree[token]\r\n  File \"/usr/lib/python2.7/dist-packages/git/objects/tree.py\", line 237, in __getitem__\r\n    return self.__div__(item)\r\n  File \"/usr/lib/python2.7/dist-packages/git/objects/tree.py\", line 188, in __div__\r\n    return self._map_id_to_type[info[1] >> 12](self.repo, info[0], info[1], join_path(self.path, info[2]))\r\n  File \"/usr/lib/python2.7/dist-packages/git/objects/tree.py\", line 133, in __init__\r\n    super(Tree, self).__init__(repo, binsha, mode, path)\r\n  File \"/usr/lib/python2.7/dist-packages/git/objects/base.py\", line 142, in __init__\r\n    super(IndexObject, self).__init__(repo, binsha)\r\n  File \"/usr/lib/python2.7/dist-packages/git/objects/base.py\", line 39, in __init__\r\n    assert len(binsha) == 20, \"Require 20 byte binary sha, got %r, len = %i\" % (binsha, len(binsha))\r\nAssertionError: Require 20 byte binary sha, got '\\xe6\\x90', len = 2\r\n```\r\n\r\n\r\n###/etc/salt/master (all commented lines removed):###\r\n```\r\nworker_threads: 50\r\ntimeout: 240\r\nloop_interval: 30\r\nping_on_rotate: True\r\nopen_mode: True\r\nauto_accept: True\r\nexternal_auth:\r\n  pam:\r\n    go.salt:\r\n      - .*\r\n      - '@runner'\r\n      - '@jobs'\r\n      - '@wheel'\r\n    jeff.vincent:\r\n      - .*\r\n      - '@runner'\r\n      - '@wheel'\r\n      - '@jobs'\r\n\r\nauth.ldap.basedn: mybasedn\r\nauth.ldap.binddn: mybinddn\r\nauth.ldap.bindpw: blahblah\r\nauth.ldap.filter: sAMAccountName={{ username }}\r\nauth.ldap.server: myserver\r\n\r\nstate_output: full\r\nhash_type: sha256\r\nfile_ignore_regex:\r\n  - '/\\.svn($|/)'\r\n  - '/\\.git($|/)'\r\n\r\nfileserver_backend:\r\n  - git\r\n\r\ngitfs_remotes:\r\n  - ssh://git@gitlab.wp.bluecoat.com/webpulse/salt-states.git\r\n  - ssh://git@gitlab.wp.bluecoat.com/webpulse/salt-formula.git\r\n  - ssh://git@gitlab.wp.bluecoat.com/webpulse/rabbitmq-formula.git\r\n  - ssh://git@gitlab.wp.bluecoat.com/webpulse/salt-formula-freeipa.git\r\n\r\ngitfs_ssl_verify: False\r\npillar_roots:\r\n  base:\r\n    - /srv/pillar/base\r\n  dev:\r\n    - /srv/pillar/dev\r\n    - /srv/pillar/base\r\n  acc:\r\n    - /srv/pillar/acc\r\n    - /srv/pillar/base\r\n  int:\r\n    - /srv/pillar/int\r\n    - /srv/pillar/base\r\n  stg:\r\n    - /srv/pillar/stg\r\n    - /srv/pillar/base\r\n  prd-dc5:\r\n    - /srv/pillar/prd-dc5\r\n    - /srv/pillar/base\r\n  prd-se1:\r\n    - /srv/pillar/prd-se1\r\n    - /srv/pillar/base\r\n\r\nlog_level: info\r\nwin_gitrepos:\r\n  - 'https://github.com/saltstack/salt-winrepo.git'\r\n```\r\n\r\nBeyond running the server I don't know what specific things are causing the issue.\r\n```\r\n### Versions Report\r\nSalt Version:\r\n           Salt: 2016.3.2\r\n\r\nDependency Versions:\r\n           cffi: 0.9.2\r\n       cherrypy: 3.7.0\r\n       dateutil: 1.5\r\n          gitdb: 0.5.4\r\n      gitpython: 0.3.2 RC1\r\n          ioflo: Not Installed\r\n         Jinja2: 2.7.2\r\n        libgit2: Not Installed\r\n        libnacl: Not Installed\r\n       M2Crypto: Not Installed\r\n           Mako: 0.9.1\r\n   msgpack-pure: Not Installed\r\n msgpack-python: 0.4.6\r\n   mysql-python: 1.2.3\r\n      pycparser: 2.12\r\n       pycrypto: 2.6.1\r\n         pygit2: Not Installed\r\n         Python: 2.7.6 (default, Jun 22 2015, 17:58:13)\r\n   python-gnupg: Not Installed\r\n         PyYAML: 3.10\r\n          PyZMQ: 14.0.1\r\n           RAET: Not Installed\r\n          smmap: 0.8.2\r\n        timelib: Not Installed\r\n        Tornado: 4.2.1\r\n            ZMQ: 4.0.5\r\n\r\nSystem Versions:\r\n           dist: Ubuntu 14.04 trusty\r\n        machine: x86_64\r\n        release: 3.13.0-92-generic\r\n         system: Linux\r\n        version: Ubuntu 14.04 trusty\r\n```\r\n"}}
{"actor":{"display_login":"PredatorVI"}}