Proxmox error "401 No ticket"

Hello.

I have tried to add Proxmox monitoring, but no data was gathered.

I've done a lot of debugging, and noticed, that in the first step auth ticket is gathered without problem, but later no PVEAuthCookie were sent, so all next Proxmox API queries returned "401 No ticket".

So I have to make the dirty workaround:
$ diff /home/lpar2rrd/install/lpar2rrd-7.20/dist/bin/Proxmox.pm /home/lpar2rrd/lpar2rrd/bin/Proxmox.pm
229c229
< my $req = HTTP::Request->new( 'GET', $self->{protocol}."://".$url );
---
> my $req = HTTP::Request->new( 'GET', $self->{protocol}."://".$url, HTTP::Headers->new('Cookie'=> 'PVEAuthCookie='.$self->{ticket} ));
And now all works.

Maybe you have some ideas as, why It doesn't work without this workaround? Why the cookie jar is not sending?

Comments

  • Hi,

    please send LWP version:

    . /home/lpar2rrd/lpar2rrd/etc/lpar2rrd.cfg

    $PERL -MLWP -e 'use LWP::Protocol::https; print "LWP Version: $LWP::VERSION\n"'



  • Hi Matej.
    The result is:
    LWP Version: 6.39

  • Any bits of advice? Do we need to update LWP?

  • Hi,

    I apologize for the later response. The LWP version should be fine. Please be patient, I will try it in another environment.

    Are you connecting to the default port 8006?
  • Hi, Matej.

    Yes, we're using the default port 8006.
Sign In or Register to comment.