mock: rawhide: No such file or directory: '/var/lib/mock/fedora-rawhide-x86_64/root/etc/resolv.conf'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I am suddenly seeing the following error when running mock command for rawhide.
Did you see the following error?

```
No such file or directory:
'/var/lib/mock/fedora-rawhide-x86_64/root/etc/resolv.conf'
```

```
$ rpm -q mock
mock-2.3-1.fc32.noarch

$ mock -r fedora-rawhide-x86_64 ruby-2.5.8-106.fc34.src.rpm
...
Mock Version: 2.3
INFO: Mock Version: 2.3
ERROR: Exception(ruby-2.5.8-106.fc34.src.rpm)
Config(fedora-rawhide-x86_64) 0 minutes 4 seconds
INFO: Results and/or logs in: /var/lib/mock/fedora-rawhide-x86_64/result
Traceback (most recent call last):
  File "/usr/libexec/mock/mock", line 1026, in <module>
    exitStatus = main()
  File "/usr/lib/python3.8/site-packages/mockbuild/trace_decorator.py",
line 93, in trace
    result = func(*args, **kw)
  File "/usr/libexec/mock/mock", line 805, in main
    result = run_command(options, args, config_opts, commands, buildroot, state)
  File "/usr/lib/python3.8/site-packages/mockbuild/trace_decorator.py",
line 93, in trace
    result = func(*args, **kw)
  File "/usr/libexec/mock/mock", line 907, in run_command
    mockbuild.rebuild.do_rebuild(config_opts, commands, buildroot,
options, args)
  File "/usr/lib/python3.8/site-packages/mockbuild/trace_decorator.py",
line 93, in trace
    result = func(*args, **kw)
  File "/usr/lib/python3.8/site-packages/mockbuild/rebuild.py", line
83, in do_rebuild
    rebuild_generic(srpms, commands, buildroot, config_opts, cmd=build,
  File "/usr/lib/python3.8/site-packages/mockbuild/trace_decorator.py",
line 93, in trace
    result = func(*args, **kw)
  File "/usr/lib/python3.8/site-packages/mockbuild/rebuild.py", line
24, in rebuild_generic
    commands.init(prebuild=not config_opts.get('short_circuit'))
  File "/usr/lib/python3.8/site-packages/mockbuild/trace_decorator.py",
line 93, in trace
    result = func(*args, **kw)
  File "/usr/lib/python3.8/site-packages/mockbuild/backend.py", line
160, in init
    self.buildroot.initialize(**kwargs)
  File "/usr/lib/python3.8/site-packages/mockbuild/trace_decorator.py",
line 93, in trace
    result = func(*args, **kw)
  File "/usr/lib/python3.8/site-packages/mockbuild/buildroot.py", line
130, in initialize
    self._init(prebuild=prebuild, do_log=do_log)
  File "/usr/lib/python3.8/site-packages/mockbuild/trace_decorator.py",
line 93, in trace
    result = func(*args, **kw)
  File "/usr/lib/python3.8/site-packages/mockbuild/buildroot.py", line
195, in _init
    self._setup_resolver_config()
  File "/usr/lib/python3.8/site-packages/mockbuild/trace_decorator.py",
line 93, in trace
    result = func(*args, **kw)
  File "/usr/lib/python3.8/site-packages/mockbuild/buildroot.py", line
294, in _setup_resolver_config
    self._copy_config('resolv.conf')
  File "/usr/lib/python3.8/site-packages/mockbuild/trace_decorator.py",
line 93, in trace
    result = func(*args, **kw)
  File "/usr/lib/python3.8/site-packages/mockbuild/buildroot.py", line
287, in _copy_config
    shutil.copy2(orig_conf_file, etcdir)
  File "/usr/lib64/python3.8/shutil.py", line 432, in copy2
    copyfile(src, dst, follow_symlinks=follow_symlinks)
  File "/usr/lib64/python3.8/shutil.py", line 261, in copyfile
    with open(src, 'rb') as fsrc, open(dst, 'wb') as fdst:
FileNotFoundError: [Errno 2] No such file or directory:
'/var/lib/mock/fedora-rawhide-x86_64/root/etc/resolv.conf'
```

-- 
Jun | He - His - Him
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Users]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]

  Powered by Linux