You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: improve GC error when manifest is out of sync with server.conf (#4115)
At the weekend I ran GC on lhcb.cern.ch which normally has
`CVMFS_GARBAGE_COLLECTION=false`. While I figured it out, I think the
error messages could be clearer about what is wrong so I'm making this
PR to suggest an improvement. Feel free to close if you'd leave things
as-is or handle it a different way.
See also: cvmfs/doc-cvmfs#258
is_garbage_collectable $name|| die "Garbage Collection is not enabled for $name"
327
+
if is_stratum0 $name;then
328
+
if [ x"$(get_repo_info_from_url $CVMFS_STRATUM0 -g)"!= x"yes" ];then
329
+
die "Garbage collection is enabled in server.conf but not yet in the repository manifest. Run 'cvmfs_server transaction $name && cvmfs_server publish $name' to update the manifest, then retry."
330
+
fi
331
+
fi
321
332
is_owner_or_root $name|| die "Permission denied: Repository $name is owned by $user"
0 commit comments