Various SR Errors to be investigated #634

Closed
antonba opened this Issue Nov 26, 2012 · 1 comment

Projects

None yet

2 participants

@antonba
Contributor
antonba commented Nov 26, 2012

I tried using an older version of the SDK and got this:

[02-Nov-2012 23:29:13 UTC] PHP Fatal error: Uncaught exception 'WindowsAzure\ServiceRuntime\Internal\ChannelNotAvailableException' in E:\approot\vendor\microsoft\windowsazure\WindowsAzure\ServiceRuntime\Internal\FileInputChannel.php:60
Stack trace:
#0 E:\approot\vendor\microsoft\windowsazure\WindowsAzure\ServiceRuntime\Internal\Protocol1RuntimeGoalStateClient.php(200): WindowsAzure\ServiceRuntime\Internal\FileInputChannel->getInputStream('.\pipe\Window...')
#1 E:\approot\vendor\microsoft\windowsazure\WindowsAzure\ServiceRuntime\Internal\Protocol1RuntimeGoalStateClient.php(114): WindowsAzure\ServiceRuntime\Internal\Protocol1RuntimeGoalStateClient->_ensureGoalStateRetrieved()
#2 E:\approot\vendor\microsoft\windowsazure\WindowsAzure\ServiceRuntime\Internal\Protocol1RuntimeClient.php(72): WindowsAzure\ServiceRuntime\Internal\Protocol1RuntimeGoalStateClient->getCurrentGoalState()
#3 E:\approot\vendor\microsoft\windowsazure\WindowsAzure\ServiceRuntime\RoleEnvironment.php(212): WindowsAzure\ServiceRuntime\Internal\Protocol1RuntimeClient->getCurrentGoalState in E:\approot\vendor\microsoft\windowsazure\WindowsAzure\ServiceRuntime\Internal\FileInputChannel.php on line 60

[02-Nov-2012 23:29:44 UTC] PHP Notice: Undefined index: RoleEnvironmentPath in E:\approot\vendor\microsoft\windowsazure\WindowsAzure\ServiceRuntime\Internal\XmlGoalStateDeserializer.php on line 55
[02-Nov-2012 23:29:44 UTC] PHP Notice: Undefined index: RoleEnvironmentPath in E:\approot\vendor\microsoft\windowsazure\WindowsAzure\ServiceRuntime\Internal\XmlGoalStateDeserializer.php on line 55
[02-Nov-2012 23:29:44 UTC] PHP Notice: Undefined index: RoleEnvironmentPath in E:\approot\vendor\microsoft\windowsazure\WindowsAzure\ServiceRuntime\Internal\XmlGoalStateDeserializer.php on line 55
[02-Nov-2012 23:29:44 UTC] PHP Notice: Undefined index: RoleEnvironmentPath in E:\approot\vendor\microsoft\windowsazure\WindowsAzure\ServiceRuntime\Internal\XmlGoalStateDeserializer.php on line 55

Your thoughts appreciated…

From: Brian Swan
Sent: Friday, November 02, 2012 1:54 PM
To: André Rodrigues; Anton Babadjanov
Subject: Bug in PHP Service Runtime?

I’m using the latest SDK to test PHP Service Runtime code that I wrote back in August (and it worked then). Now, I’m getting this error (complete error log attached):

[02-Nov-2012 20:36:27 UTC] PHP Notice: Undefined index: RoleEnvironmentPath in E:\approot\vendor\microsoft\windowsazure\WindowsAzure\ServiceRuntime\Internal\XmlGoalStateDeserializer.php on line 55

I’m wondering if this is my code or a bug in the SDK. I’m testing event handling by starting this blocking script…

…then running this one…

add(new DateInterval('PT50S')); _RoleEnvironment::setStatus(RoleInstanceStatus::BUSY, $leaseEnd);_ var_dump('Is available:'); var_dump(RoleEnvironment::isAvailable()); // sleep 30 seconds var_dump('sleeping'); sleep(30); var_dump('changing to ready'); RoleEnvironment::clearStatus(); var_dump('Is available:'); var_dump(RoleEnvironment::isAvailable()); ?>

The script that calls trackChanges never seems to call my event handler.

Any idea what’s going on here?

Thanks.

-Brian

@matt-gibbs
Member

Closing stale issues. Reactivate if it should be reconsidered.

@matt-gibbs matt-gibbs closed this Jul 29, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment