Dear Josh,
I successfully capture the AJAX call:
Request body:
continuation=%252BoFNS7j%252FFgpPOXumAru3L3agAA%252BIYLcw8r4THvrJ7vDyZ1jDOwMMIPZ4nhciePKWf6R9lyGM5gszSjN6cLtpHg%253D%253D
Response body:
Error encountered<br>
Unkown error type: [8] Undefined index: 1<br />
Error at 1710 in /var/www/html/.ht-inc/utils.php<br>
<pre>
Array
(
[imageid] => 2
[revisionid] => 2
[locale] => en_US
[descfield] => description
[textfield] => connecttext
[query] => SELECT c.id, c.`description` AS description, c.`connecttext` AS
connecttext, cm.disabled FROM connectmethod c, connectmethodmap cm, image i
LEFT JOIN OS o ON (o.id = i.OSid) LEFT JOIN OStype ot ON (ot.name = o.type)
WHERE i.id = 2 AND cm.connectmethodid = c.id AND cm.autoprovisioned IS NULL AND
(cm.OStypeid = ot.id OR cm.OSid = o.id OR cm.imagerevisionid = 2) ORDER BY
cm.disabled, c.`description`
[qh] => Resource id #37
[row] => Array
(
[id] => 1
[description] => ssh on port 22
[connecttext] => You will need to have an X server running on your
local computer and use an ssh client to connect to the system. If you did not
click on the <b>Connect!</b> button from the computer you will be using to
access the VCL system, you will need to return to the <strong>Current
Reservations</strong> page and click the <strong>Connect!</strong> button from
a web browser running on the same computer from which you will be connecting to
the VCL system. Otherwise, you may be denied access to the remote
computer.<br><br>
Use the following information when you are ready to connect:<br>
<UL>
<LI><b>Remote Computer</b>: #connectIP#</LI>
<LI><b>User ID</b>: #userid#</LI>
<LI><b>Password</b>: #password#<br></LI>
</UL>
<b>NOTE</b>: The given password is for <i>this reservation only</i>. You will
be given a different password for any other reservations.<br>
<strong><big>NOTE:</big> You cannot use the Windows Remote Desktop Connection
to connect to this computer. You must use an ssh client.</strong>
[disabled] => 0
)
[cmports] => Array
(
)
[methods] => Array
(
)
)
</pre>
<br><br><br>
<pre>
Backtrace:
=-=-=-=-=-=-=-=-=-=-=-=
Call#:1 => index.php:AJconnectRequest() (line#:98)
Call#:2 => requests.php:getImageConnectMethodTexts() (line#:4149)
Call#:3 => utils.php:errorHandler() (line#:1710)
Backtrace with Arguments:
=-=-=-=-=-=-=-=-=-=-=-=
Call#:1 => index.php:AJconnectRequest() (line#:98)
Arguments(none):
-----------------------
Call#:2 => requests.php:getImageConnectMethodTexts() (line#:4149)
Arguments(2)
Argument#: 1 => 2
Argument#: 2 => 2
-----------------------
Call#:3 => utils.php:errorHandler() (line#:1710)
Arguments(5)
Argument#: 1 => 8
Argument#: 2 => Undefined index: 1
Argument#: 3 => /var/www/html/.ht-inc/utils.php
Argument#: 4 => 1710
Argument#: 5 => Array
(
[imageid] => 2
[revisionid] => 2
[locale] => en_US
[descfield] => description
[textfield] => connecttext
[query] => SELECT c.id, c.`description` AS description, c.`connecttext` AS
connecttext, cm.disabled FROM connectmethod c, connectmethodmap cm, image i
LEFT JOIN OS o ON (o.id = i.OSid) LEFT JOIN OStype ot ON (ot.name = o.type)
WHERE i.id = 2 AND cm.connectmethodid = c.id AND cm.autoprovisioned IS NULL AND
(cm.OStypeid = ot.id OR cm.OSid = o.id OR cm.imagerevisionid = 2) ORDER BY
cm.disabled, c.`description`
[qh] => Resource id #37
[row] => Array
(
[id] => 1
[description] => ssh on port 22
[connecttext] => You will need to have an X server running on your
local computer and use an ssh client to connect to the system. If you did not
click on the <b>Connect!</b> button from the computer you will be using to
access the VCL system, you will need to return to the <strong>Current
Reservations</strong> page and click the <strong>Connect!</strong> button from
a web browser running on the same computer from which you will be connecting to
the VCL system. Otherwise, you may be denied access to the remote
computer.<br><br>
Use the following information when you are ready to connect:<br>
<UL>
<LI><b>Remote Computer</b>: #connectIP#</LI>
<LI><b>User ID</b>: #userid#</LI>
<LI><b>Password</b>: #password#<br></LI>
</UL>
<b>NOTE</b>: The given password is for <i>this reservation only</i>. You will
be given a different password for any other reservations.<br>
<strong><big>NOTE:</big> You cannot use the Windows Remote Desktop Connection
to connect to this computer. You must use an ssh client.</strong>
[disabled] => 0
)
[cmports] => Array
(
)
[methods] => Array
(
)
)
-----------------------
</pre>
Thank you in advance.
Br,
Aaron Toth
-----Josh Thompson <[email protected]> ezt írta: -----
Címzett: [email protected]
Feladó: Josh Thompson <[email protected]>
Dátum: 2014/10/31 01:05du.
Tárgy: Re: Trunk code issues
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Aron,
I just wrote up a page to explain how to debug the "Error encountered: Please
try again later" messages. Let me know if it is helpful.
https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=47385093
Thanks,
Josh
On Thursday, October 30, 2014 8:01:00 PM [email protected] wrote:
> Dear Josh,
>
> Thanks for your help, your guadince solve the initial problem. However,
> unfortunately I run into an another issue described below.
>
> If I click on connect button, I got the following error message:
> "Error encountered: Please try again later"
>
> Using API:
>
> [root@maya vcl-test]# ./xml-rpc-call.pl getStatus 9
> RPC::XML version supports useragent options, setting verify_hostname to 0
> created RPC::XML client object, URL:
> https://10.23.93.10/index.php?mode=xmlrpccall, username: admin called
> RPC::XML::Client::send_request:
> arguments: 9
> response value:
> $VAR1 = {
> 'status' => 'ready'
> };
>
> requestState: ready
>
> If I try get connect information via API I got this error:
>
> [root@maya vcl-test]# ./xml-rpc-call.pl getConnectInfo 9
> RPC::XML version supports useragent options, setting verify_hostname to 0
> created RPC::XML client object, URL:
> https://10.23.93.10/index.php?mode=xmlrpccall, username: admin
> RPC::XML::Client::send_request failed
> URL: https://10.23.93.10/index.php?mode=xmlrpccall
> username: admin
> password: *****
> error: <none>
> arguments: 9, 10.23.93.10
> response: '
> syntax error at line 1, column 0, byte 0:
> Error encountered<br>
> ^
> Unkown error type: [8] Undefined index: 1<br />
> at /usr/local/share/perl5/RPC/XML/Client.pm line 402'
> Can't call method "value" on an undefined value at ./xml-rpc-call.pl line
> 58.
>
> Thank you in advance.
>
> Br,
>
> Aaron
>
> -----Josh Thompson <[email protected]> ezt írta: -----
> Címzett: [email protected]
> Feladó: Josh Thompson <[email protected]>
> Dátum: 2014/10/30 06:58du.
> Tárgy: Re: Trunk code issues
>
> - gpg control packet
> Aron,
>
> Using Dojo from an old release will not work correctly. You either need to
> use a stock copy of Dojo 1.6.2 or use the custom "compiled" version I
> uploaded to my ASF space:
>
> http://people.apache.org/~jfthomps/updates/dojo-1.6.2vcl.tar.gz
>
> Dojo provides a way to "compile" it so that it combines all of the necessary
> files into a single file that has unnecessary white space removed and
> shortened variable names. This provides for a faster loading experience.
> However, these files from a previous release will be missing bits that are
> needed for the updated code. Thus the need to use the stock code (which
> loads files individually) or the one from my ASF space (which has the newer
> bits added to each "compiled" file).
>
> Josh
>
> On Thursday, October 30, 2014 9:43:48 AM [email protected] wrote:
> > Dear all,
> >
> > I start testing code from the svn trunk and I run into some issues.
> >
> > Environment:
> > - Centos 6.5 x86_64 latest updates, necesarry packeges are installed for
> >
> > VCL - VMware ESXi 5.5 as copute node
> >
> > - Spyc 0.5.1 installed to: .ht-inc/spyc-0.5.1/Spyc.php
> > - dojo directory copied from 2.3.2 release
> > - themes/default/css/dojo also copied from 2.3.2 release
> >
> > Issues:
> >
> > New reservation issue:
> > When I click to New Reservation nothing happend.
> > With IE11 Developer Tools, I got this:
> > in request.js
> > dijit.byId('deployimage').set('query', {basic: 1, checkout: 1});
> > Unable to get property 'set' of undefined or null reference
> > dijit.byId('newResDlgBtn').set('disabled', false);
> > Unable to get property 'set' of undefined or null reference
> >
> > I would like to request your assitance, because I can not solve this
> > issue.
> >
> > -------------------
> > Init script:
> > [root@maya ~]# service vcld start
> > Starting vcldp daemon: /bin/bash: /usr/local/vcl/bin/vcldp: No such file
> > or
> > directory [FAILED] In /usr/local/vcl/bin/S99vcld.linux
> > # DAEMON: Name of the daemon executable
> > DAEMON=vcldp
> >
> > I easily fix this.
> > -------------------
> > Generated vmx file:
> > The trunk version of vmware provisioning module generate vhv.enabled =
> > "TRUE" to the vmx file. If ESXi host does not support AMD RVI or Intel EPT
> > the created virtual machine will not start.
> >
> >
> > Best regards,
> >
> > Aaron Toth
> > VCL System Administrator
> >
> > Fault Tolerant Systems Research Group
> > Department of Measurement and Information Systems
> > Budapest University of Technology and Economics
>
> --
> -------------------------------
> Josh Thompson
> VCL Developer
> North Carolina State University
>
> my GPG/PGP key can be found at pgp.mit.edu
>
> All electronic mail messages in connection with State business which
> are sent to or received by this account are subject to the NC Public
> Records Law and may be disclosed to third parties.
- --
- -------------------------------
Josh Thompson
VCL Developer
North Carolina State University
my GPG/PGP key can be found at pgp.mit.edu
All electronic mail messages in connection with State business which
are sent to or received by this account are subject to the NC Public
Records Law and may be disclosed to third parties.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (GNU/Linux)
iEYEARECAAYFAlRTepEACgkQV/LQcNdtPQO6zQCfTcNJg53lUB4rMPCJjXLaecxe
TbEAn2W6yAy0QwTqK/vfRax8Ob3ncQrL
=56RI
-----END PGP SIGNATURE-----