-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Ewald Jenisch wrote:
> On Mon, Dec 01, 2008 at 07:33:49AM +0100, Peter Haag wrote:
>>> ERROR: nfsend connect() error: Invalid argument!
>>> ERROR: nfsend - connection failed!!
>>> ERROR: Can not initialize globals!
>>>
>>> I've already checked access to the comm-socket, i.e.
>> So I guess it may be a PHP issue somewhere. Do you have any php limitations,
>> or missing PHP modules? There are lots of FreeBSD users out there.
>> Unfortunately, I do not have a running FreeBSD at my hands.
>>
>> Any FreeBSD users can help please?
>>
>
> Hi Peter et al,
>
> The error message above seem to come from "nfsenutil.php". I've
> modified the error messages in this file to read as follows:
>
> from
> SetMessage('error', "nfsend connect() error: $errstr");
> to
> SetMessage('error', "nfsend connect() error: $errstr -$COMMSOCKET-");
>
> My idea was that once the error occus I'd get an understanding as to
> which value $COMMSOCKET is set.
>
> Guess what: When I try to access ...nfsen/nfsen.php with my
> web-browser the error message reads
>
> ERROR: nfsend connect() error: Invalid argument --!
>
> The "-" come from the modified "SetMessage" above. To my understanding
> this means that $COMMSOCKET is empty!
>
> Shouldn't COMMSOCKET have a value of
> /usr/local/var/nfsen/run/nfsen.comm? At least this is what conf.php in
> the nfsen web-directory (where e.g. nfsen.php, nfsenutil.php
> etc. resiedes) indicates.
COMMSOCKET is set while installing NfSen and set in conf.php. It's the only
bootstrap variable needed, so the frontend,
knows where to talk to the backend. so the conf.php should like something like:
<?
/* This file was automatically created by the NfSen install.pl script */
$COMMSOCKET = "/data/nfsen/var/run/nfsen.comm";
$DEBUG=0;
?>
There is one obstacle: You may replace '<?' bei '<?php' if shorttags is off in
your php config. otherwise the content is
not properly read.
>
>
> BTW - in conf.php there's a statemant "$DEBUG=0;". Although I don't
> have any idea about PHP I've tried to set "$DEBUG" to a non-zero
> value; unfortunately this didn't change anything despite the fact that
> "$DEBUG$ is referenced e.g. in nfsen.php etc.
DEBUG is meant for debugging while developing. The file is hard coded is placed
into /var/tmp and will grow forever, if
you do not cut it manually. So enable it with care.
>
> Where does that debug-output go - /var/tmp/nfsen-log is non-existent -
> at least that's the place that's referenced in nfsen.php...
That's also the place it goes.
As Debug seams to to work too, it's most likely the short tag issue - see above.
- Peter
>
>
> Any other knobs to turn in order to get debug output and an
> understanding where things don't work out?
>
> Thanks in advance for any clue,
> -ewald
>
> PS: Setting short-tags to on in conf.php didn't change anything - same
> error message
>
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Nfsen-discuss mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/nfsen-discuss
- --
_______ SWITCH - The Swiss Education and Research Network ______
Peter Haag, Security Engineer, Member of SWITCH CERT
PGP fingerprint: D9 31 D5 83 03 95 68 BA FB 84 CA 94 AB FC 5D D7
SWITCH, Werdstrasse 2, P.O. Box, CH-8021 Zurich, Switzerland
E-mail: [EMAIL PROTECTED] Web: http://www.switch.ch/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)
iQCVAwUBSTP9bv5AbZRALNr/AQJ7aAQAk+FfdizPX9VNW6RHymYVxu3cARG4Ng7Q
2GOT0C+JmnGVgbWgPyaM+krHzIEJa8pQiPjzpSM9XFGN1LfGqxNWQC3BMqU4nej0
o2m8+5eC/bRbJVxFl/DsxwxRlePismBH9hSjmpNVmWLoAqflUoOAyqMAkZgy7mb6
3wRRkudYcZU=
=FIWU
-----END PGP SIGNATURE-----
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Nfsen-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nfsen-discuss