All of a sudden, we're getting an error of: "Inappropriate IOCTL for device" during creation of a new topic. This is maddening. I found lots of references to this, but nothing about what's going on to cause it. I can write to the directory, I can touch files there, everything seems to work, but no joy.
So, I tried putting in a modification to test the return values of the open statements in the code (/var/www/codestriker/codestriker-1.9.4/lib/Codestriker/Repository/Subversion.pm):
push @args, '--revision';
push @args, 'HEAD';
push @args, $self->{repository_url} . '/' . $url;
my $read_stdout_data;
my $read_stdout_fh = new FileHandle;
my $ret = open($read_stdout_fh, '>', \$read_stdout_data);
if (not $ret) { die("Died on open of file stderr",
$read_stdout_fh, ", msg: ", $!); }
my $read_stderr_data;
my $read_stderr_fh = new FileHandle;
my $ret = open($read_stderr_fh, '>', \$read_stderr_data);
if (not $ret) { die("Died on open of file stderr",
$read_stdout_fh, ", msg: ", $!); }
Codestriker::execute_command($read_stdout_fh, read_stderr_fh, $Codestriker::svn, @args);
$file_url = 1;
open($read_stderr_fh, '<', \$read_stderr_data); while(<$read_stderr_fh>) {
if (/^svn:.* refers to a directory/) {
$file_url = 0;
last;
}
}
Adding the 'if not ret...' lines after the opens fixed the problem. Note, I had to restart apache with /etc/init.d/httpd restart and tail /var/www/error_log to fix a minor syntax error first, but it worked out.
3 comments:
Try using 1.9.6 - fatal versions of open are used, which call die automatically in the case of an error.
https://sourceforge.net/tracker/index.php?func=detail&aid=2067639&group_id=41136&atid=429860
i installed codestriker.1.9.9 it also giving ioctl error. but code is different.
iam using svn. which version is best i tried 1.9.2 it's not at all working.
please help me
sorry, haven't had experience with CodeStriker in a long time now. Please consult the standard mailing list for it. Enjoy!
Post a Comment