Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sonic building image is unsuccessful #2418

Closed
bsbsrkg opened this issue Jan 6, 2019 · 22 comments
Closed

Sonic building image is unsuccessful #2418

bsbsrkg opened this issue Jan 6, 2019 · 22 comments
Assignees

Comments

@bsbsrkg
Copy link

bsbsrkg commented Jan 6, 2019

Description
Building Sonic image is not successful

ERROR: ld.so: object 'libfakeroot-sysv.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
man: error while loading shared libraries: libmandb-2.7.0.2.so: cannot open shared object file
ERROR: ld.so: object 'libfakeroot-sysv.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
man: error while loading shared libraries: libmandb-2.7.0.2.so: cannot open shared object file
dh_installman: man --recode UTF-8 ./initramfs.conf.5 > initramfs.conf.5.new returned exit code 127
debian/rules:4: recipe for target 'binary' failed
make[2]: *** [binary] Error 127
make[2]: Leaving directory '/sonic/src/initramfs-tools/initramfs-tools'
dpkg-buildpackage: error: fakeroot debian/rules binary gave error exit status 2
Makefile:8: recipe for target '/sonic/target/debs/initramfs-tools_0.120_all.deb' failed
make[1]: *** [/sonic/target/debs/initramfs-tools_0.120_all.deb] Error 2
make[1]: Leaving directory '/sonic/src/initramfs-tools'
[ FAIL LOG END ] [ target/debs/initramfs-tools_0.120_all.deb ]
slave.mk:191: recipe for target 'target/debs/initramfs-tools_0.120_all.deb' failed
make: *** [target/debs/initramfs-tools_0.120_all.deb] Error 1
Makefile:81: recipe for target 'all' failed
make: *** [all] Error 2
Steps to reproduce the issue:

  1. Git clone Sonic repo
  2. Follow steps till make config platform, and then make all
  3. We can see the issue

Describe the results you received:

Compiling error
Describe the results you expected:

Successful compilation
Additional information you deem important (e.g. issue happens only occasionally):
#957 is wrt p4 compiling. But I'm seeing error for otger platform also
Output of show version:
Na
(paste your output here)

**Attach debug file `sudo generate_dump`:**

```
ERROR: ld.so: object 'libfakeroot-sysv.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
man: error while loading shared libraries: libmandb-2.7.0.2.so: cannot open shared object file
ERROR: ld.so: object 'libfakeroot-sysv.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
man: error while loading shared libraries: libmandb-2.7.0.2.so: cannot open shared object file
dh_installman: man --recode UTF-8 ./initramfs\.conf\.5 > initramfs\.conf\.5\.new returned exit code 127
debian/rules:4: recipe for target 'binary' failed
make[2]: *** [binary] Error 127
make[2]: Leaving directory '/sonic/src/initramfs-tools/initramfs-tools'
dpkg-buildpackage: error: fakeroot debian/rules binary gave error exit status 2
Makefile:8: recipe for target '/sonic/target/debs/initramfs-tools_0.120_all.deb' failed
make[1]: *** [/sonic/target/debs/initramfs-tools_0.120_all.deb] Error 2
make[1]: Leaving directory '/sonic/src/initramfs-tools'
[  FAIL LOG END  ] [ target/debs/initramfs-tools_0.120_all.deb ]
slave.mk:191: recipe for target 'target/debs/initramfs-tools_0.120_all.deb' failed
make: *** [target/debs/initramfs-tools_0.120_all.deb] Error 1
Makefile:81: recipe for target 'all' failed
make: *** [all] Error 2
    ```
@lguohan
Copy link
Collaborator

lguohan commented Feb 7, 2019

if you are using ubuntu 18.04, can you change the storage driver to overlayfs. besides, there is also a fix be9f3ad

@lguohan lguohan self-assigned this Feb 7, 2019
@bsbsrkg
Copy link
Author

bsbsrkg commented Feb 11, 2019 via email

@kattamamatha
Copy link

When i am running "make init" command i am facing following issues:

+++ Making init +++
BLDENV=stretch make -f Makefile.work init
make[1]: Entering directory '/home/brcmcoe/sonic-buildimage'
fatal: not a git repository (or any of the parent directories): .git
Makefile.work:169: recipe for target 'init' failed
make[1]: *** [init] Error 128
make[1]: Leaving directory '/home/brcmcoe/sonic-buildimage'
Makefile:19: recipe for target 'init' failed
make: *** [init] Error 2

Does anyone faced this issue before while building SONiC image.

@jleveque
Copy link
Contributor

jleveque commented Jul 3, 2019

@kattamamatha: It appears as though the ".git" directory which Git uses for tracking is missing from your sonic-buildimage directory. Maybe you accidentally deleted it? I recommend you do a fresh clone of your sonic-buildimage repo.

@kattamamatha
Copy link

Previous issue got resolved when i cloned again,But now i am facing new issue:

brcmcoe@brcmcoe-ProLiant-DL180-Gen9:~/sonic-buildimage$ make init
+++ Making init +++
BLDENV=stretch make -f Makefile.work init
make[1]: Entering directory '/home/brcmcoe/sonic-buildimage'
Cloning into '/home/brcmcoe/sonic-buildimage/platform/barefoot/sonic-platform-modules-arista'...
Cloning into '/home/brcmcoe/sonic-buildimage/platform/broadcom/sonic-platform-modules-arista'...
fatal: unable to access 'https://github.com/aristanetworks/sonic/': Proxy CONNECT aborted
fatal: clone of 'https://github.com/aristanetworks/sonic' into submodule path '/home/brcmcoe/sonic-buildimage/platform/broadcom/sonic-platform-modules-arista' failed
Failed to clone 'platform/broadcom/sonic-platform-modules-arista'. Retry scheduled
Cloning into '/home/brcmcoe/sonic-buildimage/platform/mellanox/mlnx-sai/SAI-Implementation'...
fatal: unable to access 'https://github.com/Mellanox/SAI-Implementation/': Proxy CONNECT aborted
fatal: clone of 'https://github.com/Mellanox/SAI-Implementation' into submodule path '/home/brcmcoe/sonic-buildimage/platform/mellanox/mlnx-sai/SAI-Implementation' failed
Failed to clone 'platform/mellanox/mlnx-sai/SAI-Implementation'. Retry scheduled
Cloning into '/home/brcmcoe/sonic-buildimage/platform/p4/SAI-P4-BM

@jleveque
Copy link
Contributor

jleveque commented Jul 5, 2019

Looks like git had trouble connecting to GitHub. I say try again now that a couple days have passed.

Are you using a proxy at all?

@kattamamatha
Copy link

kattamamatha commented Jul 10, 2019 via email

@jleveque
Copy link
Contributor

Good to hear. I will close this issue.

@kattamamatha
Copy link

kattamamatha commented Jul 10, 2019 via email

@kattamamatha
Copy link

When i am executing make configure PLATFORM=broadcom , i am facing few errors saying:

Step 15/37 : RUN pip3 install mockredispy==2.9.3

---> Running in 02b4b51e7122
Collecting mockredispy==2.9.3
Downloading https://files.pythonhosted.org/packages/0a/f1/d7db33898151aa9a1d647654cac55d01a5a1302fa4244af5fb5d3021f848/mockredispy-2.9.3.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "/usr/lib/python3.5/urllib/request.py", line 1254, in do_open
h.request(req.get_method(), req.selector, req.data, headers)
File "/usr/lib/python3.5/http/client.py", line 1107, in request
self._send_request(method, url, body, headers)
File "/usr/lib/python3.5/http/client.py", line 1152, in _send_request
self.endheaders(body)
File "/usr/lib/python3.5/http/client.py", line 1103, in endheaders
self._send_output(message_body)
File "/usr/lib/python3.5/http/client.py", line 934, in _send_output
self.send(msg)
File "/usr/lib/python3.5/http/client.py", line 877, in send
self.connect()
File "/usr/lib/python3/dist-packages/setuptools/ssl_support.py", line 190, in connect
sock, cert_reqs=ssl.CERT_REQUIRED, ca_certs=self.ca_bundle
File "/usr/lib/python3.5/ssl.py", line 1077, in wrap_socket
ciphers=ciphers)
File "/usr/lib/python3.5/ssl.py", line 760, in init
self.do_handshake()
File "/usr/lib/python3.5/ssl.py", line 996, in do_handshake
self._sslobj.do_handshake()
File "/usr/lib/python3.5/ssl.py", line 641, in do_handshake
self._sslobj.do_handshake()
ConnectionResetError: [Errno 104] Connection reset by peer

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/setuptools/package_index.py", line 747, in open_url
    return open_with_auth(url, self.opener)
  File "/usr/lib/python3/dist-packages/setuptools/package_index.py", line 948, in _socket_timeout
    return func(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/setuptools/package_index.py", line 1067, in open_with_auth
    fp = opener(request)
  File "/usr/lib/python3.5/urllib/request.py", line 466, in open
    response = self._open(req, data)
  File "/usr/lib/python3.5/urllib/request.py", line 484, in _open
    '_open', req)
  File "/usr/lib/python3.5/urllib/request.py", line 444, in _call_chain
    result = func(*args)
  File "/usr/lib/python3/dist-packages/setuptools/ssl_support.py", line 161, in https_open
    lambda host, **kw: VerifyingHTTPSConn(host, self.ca_bundle, **kw), req
  File "/usr/lib/python3.5/urllib/request.py", line 1256, in do_open
    raise URLError(err)
urllib.error.URLError: <urlopen error [Errno 104] Connection reset by peer>

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/tmp/pip-build-jtq1ahsu/mockredispy/setup.py", line 29, in <module>
    'with_redis = mockredis.noseplugin:WithRedis'
  File "/usr/lib/python3.5/distutils/core.py", line 108, in setup
    _setup_distribution = dist = klass(attrs)
  File "/usr/lib/python3/dist-packages/setuptools/dist.py", line 317, in __init__
    self.fetch_build_eggs(attrs['setup_requires'])
  File "/usr/lib/python3/dist-packages/setuptools/dist.py", line 372, in fetch_build_eggs
    replace_conflicting=True,
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 846, in resolve
    dist = best[req.key] = env.best_match(req, ws, installer)
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 1118, in best_match
    return self.obtain(req, installer)
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 1130, in obtain
    return installer(requirement)
  File "/usr/lib/python3/dist-packages/setuptools/dist.py", line 440, in fetch_build_egg
    return cmd.easy_install(req)
  File "/usr/lib/python3/dist-packages/setuptools/command/easy_install.py", line 687, in easy_install
    not self.always_copy, self.local_index
  File "/usr/lib/python3/dist-packages/setuptools/package_index.py", line 636, in fetch_distribution
    dist = find(requirement)
  File "/usr/lib/python3/dist-packages/setuptools/package_index.py", line 617, in find
    dist.download_location = self.download(dist.location, tmpdir)
  File "/usr/lib/python3/dist-packages/setuptools/package_index.py", line 566, in download
    found = self._download_url(scheme.group(1), spec, tmpdir)
  File "/usr/lib/python3/dist-packages/setuptools/package_index.py", line 805, in _download_url
    return self._attempt_download(url, filename)
  File "/usr/lib/python3/dist-packages/setuptools/package_index.py", line 811, in _attempt_download
    headers = self._download_to(url, filename)
  File "/usr/lib/python3/dist-packages/setuptools/package_index.py", line 710, in _download_to
    fp = self.open_url(strip_fragment(url))
  File "/usr/lib/python3/dist-packages/setuptools/package_index.py", line 761, in open_url
    % (url, v.reason))
distutils.errors.DistutilsError: Download error for https://files.pythonhosted.org/packages/58/a5/0dc93c3ec33f4e281849523a5a913fa1eea9a3068acfa754d44d88107a44/nose-1.3.7.tar.gz#sha256=f1bffef9cbc82628f6e7d7b40d7e255aefaa1adb6a1b1d26c69a8b79e6208a98: [Errno 104] Connection reset by peer

----------------------------------------

Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-jtq1ahsu/mockredispy/
The command '/bin/sh -c pip3 install mockredispy==2.9.3' returned a non-zero code: 1
Makefile.work:138: recipe for target 'configure' failed
make[1]: *** [configure] Error 1
make[1]: Leaving directory '/sonic-buildimage'
Makefile:19: recipe for target 'configure' failed
make: *** [configure] Error 2

@jleveque
Copy link
Contributor

Looks like a download error. Maybe a transient issue with the peer or network? I suggest trying again after allowing some time to pass.

@kattamamatha
Copy link

kattamamatha commented Jul 10, 2019 via email

@jleveque
Copy link
Contributor

What do you mean by "stable branch"?

@kattamamatha
Copy link

kattamamatha commented Jul 10, 2019 via email

@jleveque
Copy link
Contributor

I believe all release branches from 201803 onward should not have any build issues.

@kattamamatha
Copy link

kattamamatha commented Jul 10, 2019 via email

@kattamamatha
Copy link

kattamamatha commented Jul 11, 2019 via email

@stcheng
Copy link
Contributor

stcheng commented Jul 11, 2019

@kattamamatha you're still facing the downloading error?

@kattamamatha
Copy link

kattamamatha commented Jul 11, 2019 via email

@stcheng
Copy link
Contributor

stcheng commented Jul 11, 2019

@kattamamatha
Copy link

kattamamatha commented Jul 11, 2019 via email

@stcheng
Copy link
Contributor

stcheng commented Jul 19, 2019

could you manually verify this by entering the docker and try to download the file?

stepanblyschak added a commit to stepanblyschak/sonic-buildimage that referenced this issue Oct 5, 2022
```
99425a8 (HEAD -> 202205, origin/202205) [actions] Support Semgrep by Github Actions (sonic-net#2417)
f41e4d1 Fix for show vxlan tunnel command display issue sonic-net#11902 (sonic-net#2391)
e1d827e [VxLAN]Fix Vxlan delete command to throw error when there are references (sonic-net#2404)
d77acf8 [doc] add documentation on automatic techsupport based on memory (sonic-net#2411)
2cfc75a [doc] update "config feature" section with "--block" option (sonic-net#2409)
9dc8471 [Vxlanmgrd] [CPA] Update the vxlan_tunnel name len to be under IFNAMIZ to overcome netdev creation failure (sonic-net#2398)
342589e Added cisco config platform commands (sonic-net#2242) (sonic-net#2418)
be7da6b [sonic-installer] use host docker startup arguments when running dockerd in chroot (sonic-net#2179) (sonic-net#2407)
d112f7c [202205][auto-ts] add memory check (sonic-net#2116) (sonic-net#2413)
```

Signed-off-by: Stepan Blyschak <stepanb@nvidia.com>
yxieca added a commit to yxieca/sonic-buildimage that referenced this issue Oct 6, 2022
linkmgrd:
* a5ac7f6 2022-10-05 | [Active-Active] Post link prober stats to state db  (sonic-net#140) (HEAD -> 202205, github/202205) [Jing Zhang]
* f4b0e53 2022-10-05 | [Active-Active] Retry config mux mode standby (sonic-net#139) [Jing Zhang]

utilities:
* a255838 2022-10-04 | [minigraph] new workflow for golden path (sonic-net#2396) (HEAD -> 202205, github/202205) [jingwenxie]
* 99425a8 2022-10-03 | [actions] Support Semgrep by Github Actions (sonic-net#2417) [Mai Bui]
* f41e4d1 2022-09-30 | Fix for show vxlan tunnel command display issue sonic-net#11902 (sonic-net#2391) [Senthil Bhava]
* e1d827e 2022-09-29 | [VxLAN]Fix Vxlan delete command to throw error when there are references (sonic-net#2404) [Sudharsan Dhamal Gopalarathnam]
* d77acf8 2022-09-28 | [doc] add documentation on automatic techsupport based on memory (sonic-net#2411) [Stepan Blyshchak]
* 2cfc75a 2022-09-28 | [doc] update "config feature" section with "--block" option (sonic-net#2409) [Stepan Blyshchak]
* 9dc8471 2022-09-28 | [Vxlanmgrd] [CPA] Update the vxlan_tunnel name len to be under IFNAMIZ to overcome netdev creation failure (sonic-net#2398) [Vivek]
* 342589e 2022-10-03 | Added cisco config platform commands (sonic-net#2242) (sonic-net#2418) [yucgu]

swss:
* 9d9f395 2022-10-04 | [intfmgr]: Enable `accept_untracked_na` kernel param (sonic-net#2436) (HEAD -> 202205, github/202205) [Lawrence Lee]
* 6b6d25d 2022-10-04 |  [orchdaemon]: Fixed sairedis record file rotation (sonic-net#2480) [Bryan Crossland]

Signed-off-by: Ying Xie <ying.xie@microsoft.com>
yxieca added a commit that referenced this issue Oct 6, 2022
linkmgrd:
* a5ac7f6 2022-10-05 | [Active-Active] Post link prober stats to state db  (#140) (HEAD -> 202205, github/202205) [Jing Zhang]
* f4b0e53 2022-10-05 | [Active-Active] Retry config mux mode standby (#139) [Jing Zhang]

utilities:
* a255838 2022-10-04 | [minigraph] new workflow for golden path (#2396) (HEAD -> 202205, github/202205) [jingwenxie]
* 99425a8 2022-10-03 | [actions] Support Semgrep by Github Actions (#2417) [Mai Bui]
* f41e4d1 2022-09-30 | Fix for show vxlan tunnel command display issue #11902 (#2391) [Senthil Bhava]
* e1d827e 2022-09-29 | [VxLAN]Fix Vxlan delete command to throw error when there are references (#2404) [Sudharsan Dhamal Gopalarathnam]
* d77acf8 2022-09-28 | [doc] add documentation on automatic techsupport based on memory (#2411) [Stepan Blyshchak]
* 2cfc75a 2022-09-28 | [doc] update "config feature" section with "--block" option (#2409) [Stepan Blyshchak]
* 9dc8471 2022-09-28 | [Vxlanmgrd] [CPA] Update the vxlan_tunnel name len to be under IFNAMIZ to overcome netdev creation failure (#2398) [Vivek]
* 342589e 2022-10-03 | Added cisco config platform commands (#2242) (#2418) [yucgu]

swss:
* 9d9f395 2022-10-04 | [intfmgr]: Enable `accept_untracked_na` kernel param (#2436) (HEAD -> 202205, github/202205) [Lawrence Lee]
* 6b6d25d 2022-10-04 |  [orchdaemon]: Fixed sairedis record file rotation (#2480) [Bryan Crossland]

Signed-off-by: Ying Xie <ying.xie@microsoft.com>

Signed-off-by: Ying Xie <ying.xie@microsoft.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants