I'm having an issue deploying my latest GIT Head Commit. It essentially just gets stuck on: The deployment that you triggered on Nov 23, 2020 6:24:38 PM is queued …
Further diving into the issue revealed the following in .cpanel/
In looking directly in my YAML.pm file, this is what I see:
NOTE: I have not edited this and it was working without any edits in the past. I have zero idea why it suddenly stopped, unless it was an automatic update that possibly occurred. I'm not certain how to reset this as I am not very familiar with terminal/shell access.
Further diving into the issue revealed the following in .cpanel/
Code:
2020-11-23T23:24:38Z: Processing 00000000/5fbc44b5ea47d7...
2020-11-23T23:24:38Z: doing Cpanel::UserTasks::VersionControl::deploy
2020-11-23T23:24:38Z: FAILURE: Syck parser (line 2, column 9): syntax error at /usr/local/cpanel/Cpanel/YAML.pm line 71.
2020-11-23T23:24:38Z: Queue empty, terminating
Code:
#Copied and slightly tweaked frm YAML::Syck;
sub LoadFile {
my $file = shift;
my $max = shift;
my $str_r;
if ( _is_openhandle($file) ) {
if ($max) {
my $togo = $max;
my $buffer = '';
my $bytes_read;
while ( $bytes_read = read( $file, $buffer, $togo, length $buffer ) && length $buffer < $max ) {
$togo -= $bytes_read;
}
$str_r = \$buffer;
}
else {
$str_r = \do { local $/; <$file> };
}
}
else {
if ( !-e $file || -z $file ) {
require Carp;
Carp::croak("'$file' is non-existent or empty");
}
open( my $fh, '<', $file ) or do {
require Carp;
Carp::croak("Cannot read from $file: $!");
};
$str_r = \do { local $/; <$fh> };
}
return YAML::Syck::LoadYAML($$str_r);
}
1;
Last edited by a moderator: