Discussion:
[drbd-mc] drbd-mc drbd-gui-helper bug
Jörg Bachmann
2010-04-25 15:42:07 UTC
Permalink
hi,

i tried drbd-mc and got following bug when executing precompiled jar
(end of mail).
in /usr/local/bin/drbd-gui-helper-0.7.2 there are these three lines

#print "gui-info
";
#get_gui_info();

the second one (which is line 84) is of course false. i can't correct
that, because this script is writte automatically.

i don't know what information else to attach, but i'll give it, if you
tell me.

could someone help out?

thanks, j?rg


connecting from localhost (ubuntu 9.10) with precompiled jar through
ssh-tunnel on remote host (debian sid).


Bareword found where operator expected
at /usr/local/bin/drbd-gui-helper-0.7.2 line 86, near "print
"installation"
(Might be a runaway multi-line "" string starting on line 84)
(Do you need to predeclare print?)
String found where operator expected
at /usr/local/bin/drbd-gui-helper-0.7.2 line 89, near "print ""
(Might be a runaway multi-line "" string starting on line 87)
(Missing semicolon on previous line?)
Bareword found where operator expected
at /usr/local/bin/drbd-gui-helper-0.7.2 line 89, near "print "version"
(Do you need to predeclare print?)
String found where operator expected
at /usr/local/bin/drbd-gui-helper-0.7.2 line 92, near "} elsif ($option
eq ""
(Might be a runaway multi-line "" string starting on line 90)
(Missing semicolon on previous line?)
String found where operator expected
at /usr/local/bin/drbd-gui-helper-0.7.2 line 94, near "} elsif ($option
eq ""
(Might be a runaway multi-line "" string starting on line 92)
(Missing semicolon on previous line?)
String found where operator expected
at /usr/local/bin/drbd-gui-helper-0.7.2 line 96, near "} elsif ($option
eq ""
(Might be a runaway multi-line "" string starting on line 94)
(Missing semicolon on previous line?)
String found where operator expected
at /usr/local/bin/drbd-gui-helper-0.7.2 line 98, near "} elsif ($option
eq ""
(Might be a runaway multi-line "" string starting on line 96)
(Missing semicolon on previous line?)
String found where operator expected
at /usr/local/bin/drbd-gui-helper-0.7.2 line 100, near "} elsif ($option
eq ""
(Might be a runaway multi-line "" string starting on line 98)
(Missing semicolon on previous line?)
String found where operator expected
at /usr/local/bin/drbd-gui-helper-0.7.2 line 102, near "} elsif ($option
eq ""
(Might be a runaway multi-line "" string starting on line 100)
(Missing semicolon on previous line?)
String found where operator expected
at /usr/local/bin/drbd-gui-helper-0.7.2 line 104, near "} elsif ($option
eq ""
(Might be a runaway multi-line "" string starting on line 102)
(Missing semicolon on previous line?)
String found where operator expected
at /usr/local/bin/drbd-gui-helper-0.7.2 line 106, near "#} elsif
($option eq ""
(Might be a runaway multi-line "" string starting on line 104)
(Missing semicolon on previous line?)
String found where operator expected
at /usr/local/bin/drbd-gui-helper-0.7.2 line 108, near "} elsif ($option
eq ""
(Might be a runaway multi-line "" string starting on line 106)
(Missing semicolon on previous line?)
String found where operator expected
at /usr/local/bin/drbd-gui-helper-0.7.2 line 110, near "} elsif ($option
eq ""
(Might be a runaway multi-line "" string starting on line 108)
(Missing semicolon on previous line?)
String found where operator expected
at /usr/local/bin/drbd-gui-helper-0.7.2 line 112, near "} elsif ($option
eq ""
(Might be a runaway multi-line "" string starting on line 110)
(Missing semicolon on previous line?)
String found where operator expected
at /usr/local/bin/drbd-gui-helper-0.7.2 line 114, near "} elsif ($option
eq ""
(Might be a runaway multi-line "" string starting on line 112)
(Missing semicolon on previous line?)
String found where operator expected
at /usr/local/bin/drbd-gui-helper-0.7.2 line 116, near "} elsif ($option
eq ""
(Might be a runaway multi-line "" string starting on line 114)
(Missing semicolon on previous line?)
String found where operator expected
at /usr/local/bin/drbd-gui-helper-0.7.2 line 118, near "} elsif ($option
eq ""
(Might be a runaway multi-line "" string starting on line 116)
(Missing semicolon on previous line?)
String found where operator expected
at /usr/local/bin/drbd-gui-helper-0.7.2 line 124, near "} elsif ($option
eq ""
(Might be a runaway multi-line "" string starting on line 118)
(Missing semicolon on previous line?)
String found where operator expected
at /usr/local/bin/drbd-gui-helper-0.7.2 line 126, near "} elsif ($option
eq ""
(Might be a runaway multi-line "" string starting on line 124)
(Missing semicolon on previous line?)
String found where operator expected
at /usr/local/bin/drbd-gui-helper-0.7.2 line 128, near "} elsif ($option
eq ""
(Might be a runaway multi-line "" string starting on line 126)
(Missing semicolon on previous line?)
String found where operator expected
at /usr/local/bin/drbd-gui-helper-0.7.2 line 131, near "die ""
(Might be a runaway multi-line "" string starting on line 128)
(Missing semicolon on previous line?)
Bareword found where operator expected
at /usr/local/bin/drbd-gui-helper-0.7.2 line 131, near "die "unknown"
(Do you need to predeclare die?)
Scalar found where operator expected
at /usr/local/bin/drbd-gui-helper-0.7.2 line 135, near "print "$_"
(Might be a runaway multi-line "" string starting on line 131)
(Do you need to predeclare print?)
String found where operator expected
at /usr/local/bin/drbd-gui-helper-0.7.2 line 141, near "print STDERR ""
(Might be a runaway multi-line "" string starting on line 136)
(Missing semicolon on previous line?)
String found where operator expected
at /usr/local/bin/drbd-gui-helper-0.7.2 line 149, near "# interface per
line. ""
(Might be a runaway multi-line "" string starting on line 142)
(Missing semicolon on previous line?)
Bareword found where operator expected
at /usr/local/bin/drbd-gui-helper-0.7.2 line 149, near "# interface per
line. "lo"
(Missing operator before lo?)
String found where operator expected
at /usr/local/bin/drbd-gui-helper-0.7.2 line 151, near "my $dev = ""
(Might be a runaway multi-line "" string starting on line 149)
(Missing semicolon on previous line?)
String found where operator expected
at /usr/local/bin/drbd-gui-helper-0.7.2 line 159, near "($mac)
= /\sHWaddr\s+(\S+)/ or net_info_error(""
(Might be a runaway multi-line "" string starting on line 158)
(Missing semicolon on previous line?)
String found where operator expected
at /usr/local/bin/drbd-gui-helper-0.7.2 line 168, near "print ""
(Might be a runaway multi-line "" string starting on line 159)
(Missing semicolon on previous line?)
Scalar found where operator expected
at /usr/local/bin/drbd-gui-helper-0.7.2 line 168, near "$dev $ip"
(Missing operator before $ip?)
Scalar found where operator expected
at /usr/local/bin/drbd-gui-helper-0.7.2 line 168, near "$ip $mac"
(Missing operator before $mac?)
Scalar found where operator expected
at /usr/local/bin/drbd-gui-helper-0.7.2 line 168, near "$mac $mask"
(Missing operator before $mask?)
String found where operator expected
at /usr/local/bin/drbd-gui-helper-0.7.2 line 171, near "$dev = ""
(Might be a runaway multi-line "" string starting on line 169)
(Missing semicolon on previous line?)
String found where operator expected
at /usr/local/bin/drbd-gui-helper-0.7.2 line 185, near "print STDERR ""
(Might be a runaway multi-line "" string starting on line 179)
syntax error at /usr/local/bin/drbd-gui-helper-0.7.2 line 86, near
"print "installation"
Global symbol "$error" requires explicit package name
at /usr/local/bin/drbd-gui-helper-0.7.2 line 141.
"no" not allowed in expression at /usr/local/bin/drbd-gui-helper-0.7.2
line 157, at end of line
(Might be a runaway multi-line "" string starting on line 154)
"no" not allowed in expression at /usr/local/bin/drbd-gui-helper-0.7.2
line 159, at end of line
Global symbol "$dev" requires explicit package name
at /usr/local/bin/drbd-gui-helper-0.7.2 line 159.
Global symbol "$dev" requires explicit package name
at /usr/local/bin/drbd-gui-helper-0.7.2 line 168.
Global symbol "$ip" requires explicit package name
at /usr/local/bin/drbd-gui-helper-0.7.2 line 168.
Global symbol "$mac" requires explicit package name
at /usr/local/bin/drbd-gui-helper-0.7.2 line 168.
Global symbol "$mask" requires explicit package name
at /usr/local/bin/drbd-gui-helper-0.7.2 line 168.
Global symbol "$error" requires explicit package name
at /usr/local/bin/drbd-gui-helper-0.7.2 line 178.
/usr/local/bin/drbd-gui-helper-0.7.2 has too many errors.
Rasto Levrinc
2010-04-25 16:34:39 UTC
Permalink
hi,
i tried drbd-mc and got following bug when executing precompiled jar (end
of mail). in /usr/local/bin/drbd-gui-helper-0.7.2 there are these three
lines
#print "gui-info
";
#get_gui_info();
Strange, somehow the "\n" gets converted to the newlines in the script on
your server.
the second one (which is line 84) is of course false. i can't correct
that, because this script is writte automatically.
...
connecting from localhost (ubuntu 9.10) with precompiled jar through
ssh-tunnel on remote host (debian sid).
At first I thought that copying through the tunnel mangles the
drbd-gui-helper script, but I've tried that and it worked normally.

Workaround is to copy the drbd-gui-helper-0.7.2 manually to all hosts and
start the DMC with --keep-helper option.

It would be interesting to find out why this happens. You don't use by any
chance the "multiple hops" feature?

Rasto
--
: Dipl-Ing Rastislav Levrinc
: DRBD-MC http://www.drbd.org/mc/management-console/
: DRBD/HA support and consulting http://www.linbit.com/
DRBD(R) and LINBIT(R) are registered trademarks of LINBIT, Austria.
Loading...