Thread: [Arsperl-users] API problem: hostname : RPC: Rpcbind failure - RPC: Authentication error) (ARERR #9
Brought to you by:
jeffmurphy
|
From: Urban, R. (A. A. M. e. Mitarbeiter) <EXT...@al...> - 2008-07-15 17:25:01
|
Hi Folks,
I have a problem that I don't think is related specifically to ARSPerl, but I thought
this might nevertheless be a good place to ask for help...
I have several Sparc machines (SPARC-Enterprise-T5220) running Solaris10. They have ARS v6.3
installed and are configured to be in a server-group with another machine running Solaris8 with ARS v6.3.
There is another server-group running on Solaris9 with ARS v6.3.
I have a simple ARSPerl script:
my $ARS = ars_Login($server, $username, $password);
if (!defined($ARS)) {
print "connection failed.\nars-error:\n$ars_errstr\n";
exit;
}
print "connect OK\n";
ars_Logoff($ARS);
If I run this script on either one of the Solaris10 servers and point it at the same machine ($server)
where the script is running (localhost), it works. If I point it at one of the Solaris9 machines, it works.
If I point it at the the other Solaris10 machine, it fails with the following error:
connection failed.
ars-error:
[ERROR] Message not in catalog; Message number = 90 (sol10host1 : RPC: Rpcbind failure - RPC: Authentication error) (ARERR #90)
I also get the error if I run the script from the Solaris8 machine, and point at either of the Solaris10 machines.
If I point the script at any other machine, for example the Solaris8 machine in the same server-group, it works.
If I set the environment variable ARTCPPORT to a port I know is configured in ARS ("private"), as follows:
export ARTCPPORT=390621
and run my script, it fails with a different error-message:
connection failed
ars-error:
[ERROR] Message not in catalog; Message number = 90 (sol10host2 (0) : RPC: Miscellaneous tli error - An event requires attentionError 0) (ARERR #90)
To sum things up: the script is successful when run from and machine to a non-solaris10 machine
the script fails when run from any machine to a Solaris10 machine.
I'm using ARSperl-1.91 and ARS API v6.3.
anyone have a clue what the problem is?
Rob Urban
|
|
From: Thilo S. <thi...@ap...> - 2008-07-15 18:06:14
|
Do the AR Servers use the portmapper or are they configured to use a
specific TCP port? You can check this in the admin tool under "Server
Information -> Server Ports and Queues".
The number 390621 that you used in the ARTCPPORT variable looks more
like an RPC port number, for which there's a separate ARRPC variable.
The ARTCPPORT variable should contain the TCP/IP port number (if the
server does't use the portmapper), which is something completely different.
By the way, the ARTCPPORT/ARRPC variables aren't even needed since the
port numbers can also be passed as parameters to the ars_Login function,
e.g.
my $ctrl = ars_Login($server,$username,$passwd, "", "", 2090,390621);
Regards,
Thilo Stapff
Urban, Robert (Allianz ASIC München, externer Mitarbeiter) wrote:
> Hi Folks,
>
> I have a problem that I don't think is related specifically to ARSPerl,
> but I thought
> this might nevertheless be a good place to ask for help...
>
> I have several Sparc machines (SPARC-Enterprise-T5220) running
> Solaris10. They have ARS v6.3
> installed and are configured to be in a server-group with another
> machine running Solaris8 with ARS v6.3.
> There is another server-group running on Solaris9 with ARS v6.3.
>
> I have a simple ARSPerl script:
>
>
> my $ARS = ars_Login($server, $username, $password);
> if (!defined($ARS)) {
> print "connection failed.\nars-error:\n$ars_errstr\n";
> exit;
> }
> print "connect OK\n";
>
> ars_Logoff($ARS);
>
> If I run this script on either one of the Solaris10 servers and point it
> at the same machine ($server)
> where the script is running (localhost), it works. If I point it at one
> of the Solaris9 machines, it works.
> If I point it at the the other Solaris10 machine, it fails with the
> following error:
>
>
> connection failed.
> ars-error:
> [ERROR] Message not in catalog; Message number = 90 (sol10host1 :
> RPC: Rpcbind failure - RPC: Authentication error) (ARERR #90)
>
> I also get the error if I run the script from the Solaris8 machine, and
> point at either of the Solaris10 machines.
>
> If I point the script at any other machine, for example the Solaris8
> machine in the same server-group, it works.
>
> If I set the environment variable ARTCPPORT to a port I know is
> configured in ARS ("private"), as follows:
>
> export ARTCPPORT=390621
>
> and run my script, it fails with a different error-message:
>
> connection failed
> ars-error:
> [ERROR] Message not in catalog; Message number = 90 (sol10host2 (0)
> : RPC: Miscellaneous tli error - An event requires attentionError 0)
> (ARERR #90)
>
> To sum things up: the script is successful when run from and machine to
> a non-solaris10 machine
>
> the script fails when run from any machine to a Solaris10 machine.
>
> I'm using ARSperl-1.91 and ARS API v6.3.
>
> anyone have a clue what the problem is?
>
> Rob Urban
>
>
> ------------------------------------------------------------------------
>
> -------------------------------------------------------------------------
> 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=/
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Arsperl-users mailing list
> Ars...@ar...
> https://lists.sourceforge.net/lists/listinfo/arsperl-users
|
|
From: Steve M. <ste...@ch...> - 2008-07-16 16:12:17
|
Hello! Is it possible to submit an attachment via ars_CreateEntry? I have a webform with an attachment field and would like to submit the attached file with the ticket. Thanks in advance for your help. Steve |
|
From: Richard H. <ric...@ho...> - 2008-07-16 16:19:48
|
Steve, What I do is submit everything except the attachment(s) using ars_CreateEntry() and then use ars_MergeEntry() for the attachment(s) (along with any diary/worklog fields). Cheers, Richard. > Date: Wed, 16 Jul 2008 09:02:21 -0700> From: ste...@ch...> To: ars...@ar...> Subject: [Arsperl-users] Attachments via ars_CreateEntry> > > Hello!> > Is it possible to submit an attachment via ars_CreateEntry? I have a webform with an attachment field and would like to submit the attached file with the ticket.> > Thanks in advance for your help.> > > Steve> > > -------------------------------------------------------------------------> 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=/> _______________________________________________> Arsperl-users mailing list> Ars...@ar...> https://lists.sourceforge.net/lists/listinfo/arsperl-users _________________________________________________________________ Invite your Facebook friends to chat on Messenger http://clk.atdmt.com/UKM/go/101719649/direct/01/ |
|
From: Thilo S. <thi...@ap...> - 2008-07-16 16:34:51
|
Yes, it's possible. First, construct a data structure for the attachment: my %attachStruct = ( name => $name, size => length($buffer), buffer => $buffer, ); In this example the $buffer variable contains the attachment data. Alternatively the data structure might only refer to a file instead of containing the actual data: my %attachStruct = ( name => $fileName, size => $fileSize, file => $fileName, ); Be aware, however, that the second variant might crash with older versions of ARSperl. The attachment structure can then be passed to ars_CreateEntry just like any other field value: my $entryId = ars_CreateEntry( $ctrl, $form, $fieldId => \%attachStruct, $fieldId2 => ...., .... ); die "ars_CreateEntry($form): $ars_errstr\n" if $ars_errstr; Regards, Thilo Steve McDonald wrote: > > Hello! > > Is it possible to submit an attachment via ars_CreateEntry? I have a webform with an attachment field and would like to submit the attached file with the ticket. > > Thanks in advance for your help. > > > Steve > > > ------------------------------------------------------------------------- > 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=/ > _______________________________________________ > Arsperl-users mailing list > Ars...@ar... > https://lists.sourceforge.net/lists/listinfo/arsperl-users > |
|
From: White, L. <lin...@ed...> - 2008-07-16 16:44:26
|
It's entirely possible. I do something similar to the
following(assuming that your Field ID->Value inforamtion is stored in an
array called @ticket_information):
...
my @size = ();
my %attachment = ();
if(-f $file)
{
@size = stat($file);
%attachment = (file => $file, size => $size[7]);
push(@ticket_information, 'fieldid', \%attachment); #by ref
}
...
my $ticket = ars_CreateEntry($ctrl, $schema, @ticket_information) ||
return error($ctrl, $ars_errstr);
-----Original Message-----
From: ars...@ar...
[mailto:ars...@ar...] On Behalf Of Steve McDonald
Sent: Wednesday, July 16, 2008 12:02 PM
To: ARSperl User Discussion
Subject: [Arsperl-users] Attachments via ars_CreateEntry
Hello!
Is it possible to submit an attachment via ars_CreateEntry? I have a
webform with an attachment field and would like to submit the attached
file with the ticket.
Thanks in advance for your help.
Steve
------------------------------------------------------------------------
-
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=/
_______________________________________________
Arsperl-users mailing list
Ars...@ar...
https://lists.sourceforge.net/lists/listinfo/arsperl-users
|
|
From: Urban, R. (A. A. M. e. Mitarbeiter) <EXT...@al...> - 2008-07-17 15:40:37
|
Thilo, thanks for your helpful answer.
Now I'll answer my own question...
Yes, I had configured the portmapper on solaris10 ("svcadm enable rpc/bind").
Yes, ARS was configured to use the portmapper.
The problem had two causes:
1. the portmapper ("rpcbind") is under the control of the "Service Management Facility" (SMF) on solaris10. SMF seems (to me, at least) very bloated with lots of gratuitous stuff, including "properties". One of the properties for rpc/bind is "config/local_only" which apparently controls whether the portmapper can be reached from other hosts. It was set to "true", so other hosts were out of luck. I set it to "false" using:
svccfg -s svc:/network/rpc/bind
svc:/network/rpc/bind> setprop config/local_only = false
svc:/network/rpc/bind> quit
svcadm refresh svc:/network/rpc/bind
2. the 2nd cause was also related to a property, "config/enable_tcpwrappers", which was set to "true", meaning access to rpcbind was filtered by tcpwrappers, so I added a line to "/etc/hosts.allow" as follows:
rpcbind: ALL
And made sure /etc/hosts.allow was readable by rpcbind ("chmod 644 /etc/hosts.allow").
The I restarted ARS and the problem was gone.
Cheers,
Robert Urban
-----Ursprüngliche Nachricht-----
Von: ars...@ar... [mailto:ars...@ar...] Im Auftrag von Thilo Stapff
Gesendet: Dienstag, 15. Juli 2008 19:55
An: ARSperl User Discussion
Betreff: Re: [Arsperl-users] API problem: hostname : RPC: Rpcbind failure - RPC: Authentication error) (ARERR #90)
Do the AR Servers use the portmapper or are they configured to use a
specific TCP port? You can check this in the admin tool under "Server
Information -> Server Ports and Queues".
The number 390621 that you used in the ARTCPPORT variable looks more
like an RPC port number, for which there's a separate ARRPC variable.
The ARTCPPORT variable should contain the TCP/IP port number (if the
server does't use the portmapper), which is something completely different.
By the way, the ARTCPPORT/ARRPC variables aren't even needed since the
port numbers can also be passed as parameters to the ars_Login function,
e.g.
my $ctrl = ars_Login($server,$username,$passwd, "", "", 2090,390621);
Regards,
Thilo Stapff
Urban, Robert (Allianz ASIC München, externer Mitarbeiter) wrote:
> Hi Folks,
>
> I have a problem that I don't think is related specifically to ARSPerl,
> but I thought
> this might nevertheless be a good place to ask for help...
>
> I have several Sparc machines (SPARC-Enterprise-T5220) running
> Solaris10. They have ARS v6.3
> installed and are configured to be in a server-group with another
> machine running Solaris8 with ARS v6.3.
> There is another server-group running on Solaris9 with ARS v6.3.
>
> I have a simple ARSPerl script:
>
>
> my $ARS = ars_Login($server, $username, $password);
> if (!defined($ARS)) {
> print "connection failed.\nars-error:\n$ars_errstr\n";
> exit;
> }
> print "connect OK\n";
>
> ars_Logoff($ARS);
>
> If I run this script on either one of the Solaris10 servers and point it
> at the same machine ($server)
> where the script is running (localhost), it works. If I point it at one
> of the Solaris9 machines, it works.
> If I point it at the the other Solaris10 machine, it fails with the
> following error:
>
>
> connection failed.
> ars-error:
> [ERROR] Message not in catalog; Message number = 90 (sol10host1 :
> RPC: Rpcbind failure - RPC: Authentication error) (ARERR #90)
>
> I also get the error if I run the script from the Solaris8 machine, and
> point at either of the Solaris10 machines.
>
> If I point the script at any other machine, for example the Solaris8
> machine in the same server-group, it works.
>
> If I set the environment variable ARTCPPORT to a port I know is
> configured in ARS ("private"), as follows:
>
> export ARTCPPORT=390621
>
> and run my script, it fails with a different error-message:
>
> connection failed
> ars-error:
> [ERROR] Message not in catalog; Message number = 90 (sol10host2 (0)
> : RPC: Miscellaneous tli error - An event requires attentionError 0)
> (ARERR #90)
>
> To sum things up: the script is successful when run from and machine to
> a non-solaris10 machine
>
> the script fails when run from any machine to a Solaris10 machine.
>
> I'm using ARSperl-1.91 and ARS API v6.3.
>
> anyone have a clue what the problem is?
>
> Rob Urban
>
>
> ------------------------------------------------------------------------
>
> -------------------------------------------------------------------------
> 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=/
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Arsperl-users mailing list
> Ars...@ar...
> https://lists.sourceforge.net/lists/listinfo/arsperl-users
-------------------------------------------------------------------------
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=/
_______________________________________________
Arsperl-users mailing list
Ars...@ar...
https://lists.sourceforge.net/lists/listinfo/arsperl-users
|