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
We recently upgraded the backup Nebraska stratum 1 from EL7 to EL8, and some snapshots failed with errors like this:
terminate called after throwing an instance of 'ECvmfsException'
what(): PANIC: /builddir/build/BUILD/cvmfs-2.11.3/cvmfs/util/pipe.h : 214
MakePipe failed with errno 24
/usr/bin/cvmfs_server: line 7557: 3396963 Aborted (core dumped)
$user_shell "$(__swissknife_cmd dbg) pull -m $name -u $stratum0
-w $stratum1
-r ${upstream} -x ${spool_dir}/tmp -k $public_key
-n $num_workers -t $timeout
-a $retries $with_history $with_reflog $initial_snapshot_flag $timestamp_threshold $log_level"
Investigation of a cvmfs_swissknife pull command showed a soft limit for Max open files of only 1024, even though the nofile parameter set in /etc/security/limits.d was 65536. Interestingly the hard limit was 262144, so it appears that this is a new default for cron independent of the nofile setting. These snapshots were started through a root cron entry including cvmfs_server snapshot -ais.
Perhaps cvmfs_server should look for a higher hard nofile ulimit than soft and update the setting to the hard limit if it is lower.
The text was updated successfully, but these errors were encountered:
But it doesn't seem to be working on cron processes after the upgrade.
EL7:
[root@hcc-cvmfs ~]# grep open /proc/$(pgrep -f /usr/sbin/crond)/limits
Max open files 1024 4096 files
[root@hcc-cvmfs ~]# grep open /proc/$(pgrep -f /usr/sbin/CROND | head -1)/limits
Max open files 65536 65536 files
EL8:
root@hcc-cvmfs2 ~]# grep open /proc/$(pgrep -f /usr/sbin/crond)/limits
Max open files 1024 262144 files
[root@hcc-cvmfs2 ~]# grep open /proc/$(pgrep -f /usr/sbin/CROND | head -1)/limits
Max open files 1024 262144 files
Another workaround is to fix it with a systemd override for crond:
We recently upgraded the backup Nebraska stratum 1 from EL7 to EL8, and some snapshots failed with errors like this:
Investigation of a
cvmfs_swissknife pull
command showed a soft limit for Max open files of only 1024, even though thenofile
parameter set in /etc/security/limits.d was 65536. Interestingly the hard limit was 262144, so it appears that this is a new default for cron independent of the nofile setting. These snapshots were started through a root cron entry includingcvmfs_server snapshot -ais
.Perhaps cvmfs_server should look for a higher hard nofile ulimit than soft and update the setting to the hard limit if it is lower.
The text was updated successfully, but these errors were encountered: