Bug 34045 - Неправильный режим доступа к файлам
Summary: Неправильный режим доступа к файлам
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: json2yaml (show other bugs)
Version: unstable
Hardware: all Linux
: P3 critical
Assignee: Anton Farygin
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-10-22 14:26 MSK by Evgenii Terechkov
Modified: 2017-11-03 10:03 MSK (History)
25 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Evgenii Terechkov 2017-10-22 14:26:02 MSK
=8<=============================================================
evg@thinkpad ~ $yandex-tank -f -v
Traceback (most recent call last):
  File "/usr/bin/yandex-tank", line 6, in <module>
    from pkg_resources import load_entry_point
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3142, in <module>
    @_call_aside
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3126, in _call_aside
    f(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3155, in _initialize_master_working_set
    working_set = WorkingSet._build_master()
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 655, in _build_master
    ws = cls()
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 648, in __init__
    self.add_entry(entry)
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 704, in add_entry
    for dist in find_distributions(entry, True):
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2049, in find_on_path
    for dist in factory(fullpath):
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2119, in distributions_from_metadata
    root, entry, metadata, precedence=DEVELOP_DIST,
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2556, in from_location
    py_version=py_version, platform=platform, **kw
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2896, in _reload_version
    md_version = _version_from_file(self._get_metadata(self.PKG_INFO))
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2521, in _version_from_file
    line = next(iter(version_lines), '')
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2689, in _get_metadata
    for line in self.get_metadata_lines(name):
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 1490, in get_metadata_lines
    return yield_lines(self.get_metadata(name))
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 1486, in get_metadata
    value = self._get(self._fn(self.egg_info, name))
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 1595, in _get
    with open(path, 'rb') as stream:
IOError: [Errno 13] Permission denied: '/usr/lib/python2.7/site-packages/json2yaml-1.1.1-py2.7.egg-info/PKG-INFO'
[1]    17612 exit 1     yandex-tank -f -v
evg@thinkpad ~ $yandex-tank -f -v 2>&1 |egrep -io '/.+\.py' |sort -u |xargs rpm -qf
python-module-setuptools-36.6.0-alt1.S1.noarch
=8<=============================================================

Режим ко всем файлам в каталоге 640 там где должен быть 644.
Comment 1 Aleksei Nikiforov 2017-11-02 18:45:15 MSK
У пакета python-module-setuptools у всех файлов права доступа 644. А вот у файла /usr/lib/python2.7/site-packages/json2yaml-1.1.1-py2.7.egg-info/PKG-INFO из пакета json2yaml действительно права доступа 640.
Comment 2 Repository Robot 2017-11-03 10:03:40 MSK
json2yaml-1.1.1-alt2 -> sisyphus:

Thu Nov 02 2017 Aleksei Nikiforov <darktemplar@altlinux> 1.1.1-alt2
- Rebuilt to fix file permissions (closes: #34045)