Skip to content
This repository has been archived by the owner on Jan 15, 2025. It is now read-only.

fails on long symlinks #162

Closed
cgwalters opened this issue Nov 18, 2021 · 4 comments · Fixed by #165
Closed

fails on long symlinks #162

cgwalters opened this issue Nov 18, 2021 · 4 comments · Fixed by #165

Comments

@cgwalters
Copy link
Member

cgwalters commented Nov 18, 2021

[root@quicksilver ~]# /var/srv/walters/src/github/ostreedev/ostree-rs-ext/target/debug/ostree-ext-cli container encapsulate --repo=/ostree/repo f8e7ed0ee87a8ae48eb779c085f4fffddb824c5830e43715e6c92799a678d806 oci:/var/tmp/fedora-silverblue
error: Building oci: Writing ostree root to blob: Exporting commit: Writing content symlink: 87c8834da3bad596352375ff413bca064584f184bdd6ba1764293d137249e168: provided value is too long when setting link name for 
[root@quicksilver ~]# ostree ls -C -R f8e7ed0ee87a8ae48eb779c085f4fffddb824c5830e43715e6c92799a678d806 | grep 87c8834da3bad596352375ff413bca064584f184bdd6ba1764293d137249e168
l00777 0 0      0 87c8834da3bad596352375ff413bca064584f184bdd6ba1764293d137249e168 /usr/lib/.build-id/05/159ed904e45ff5100f7acd3d3b99fa7e27e34f -> ../../../../usr/lib64/qt5/plugins/wayland-graphics-integration-server/libqt-wayland-compositor-xcomposite-egl.so
[root@quicksilver ~]# 

This is alexcrichton/tar-rs#192

In theory, we could hack around this by detecting this case and serializing to the filesystem. Or, we could try a PR to tar-rs.

cgwalters added a commit to cgwalters/ostree-rs-ext that referenced this issue Nov 18, 2021
I hit this when exporting Fedora Silverblue, there are some
long symlinks in there.

Depends: alexcrichton/tar-rs#273
Closes: ostreedev#162
cgwalters added a commit to cgwalters/ostree-rs-ext that referenced this issue Nov 18, 2021
I hit this when exporting Fedora Silverblue, there are some
long symlinks in there.

Depends: alexcrichton/tar-rs#273
Closes: ostreedev#162
@cgwalters
Copy link
Member Author

PR in #165

cgwalters added a commit to cgwalters/ostree-rs-ext that referenced this issue Dec 14, 2021
I hit this when exporting Fedora Silverblue, there are some
long symlinks in there.

Depends: alexcrichton/tar-rs#273
Closes: ostreedev#162
@lrodriguez14
Copy link

Hello @cgwalters, I am having the same issue using The CoreOS Assembler when adding some packages:

New group entries: clevis, dnsmasq, docker, fedora-coreos-pinger, kvm, printadmin, render, sgx, systemd-coredump, systemd-oom, zincati
Committing... done
Metadata Total: 20647
Metadata Written: 101
Content Total: 52637
Content Written: 5
Content Cache Hits: 20297
Content Bytes Written: 95570702
101 metadata, 291 content objects imported; 102.2 MB content written                                                 
fedora/x86_64/coreos/testing-devel => 35b514a4147b50c6f0d031da4fcd34cb7d26732c857980ace709716dd0b206ad
ostree diff commit from: ce496b15dee3e16e6ffac34db9be37e244ae3a4b9292382d734a72827ca2a376
ostree diff commit to:   35b514a4147b50c6f0d031da4fcd34cb7d26732c857980ace709716dd0b206ad
Added:
  python3-falcon-3.0.0-4.fc35.x86_64
New image input checksum: 6bd7c3815b7127eb26925980fc51aba96aa13406e58826874d94588e78bd9c0a
None
New build ID: 35.20220105.dev.1
error: Building oci: Writing ostree root to blob: Exporting commit: provided value is too long when setting link name for 
+ rc=1
+ set +x
[lerodrig@fedora fcos]$ 

Should this be fixing the issue there too?

@cgwalters
Copy link
Member Author

Hi, yep a new rpm-ostree release is forthcoming.

@cgwalters
Copy link
Member Author

Since several people hit this, just cross-referencing https://bodhi.fedoraproject.org/updates/FEDORA-2022-6fa464daf4#comment-2341167

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants