Link to home
Start Free TrialLog in
Avatar of stefme
stefme

asked on

Citrix PS4.0 : The resource you requested is no longer available

We've got a Farm of 2 Citrix presentation servers 4.0 and an additional server hosting Citrix Licensing/Access Management.
Load balancing is working fine but when server 1 (the server that was set up first) goes down applications cannot be started anymore from the web interface. Clicking on an icon results in
"The resource you requested is no longer available from the servers or the specified user no longer has access to it".

Looking at the events on the access management server I see the following entries:
1. "An error of type "IMA" with an Error ID of "0x80000001" was reported by the XML Service at address "http://server1:80/scripts/wpnbr.dll [com.citrix.xml.NFuseProtocol.RequestAddress]".  This XML Service transaction failed, but the XML Service has not been removed from the list of active services."
2. "An error of type "IMA" with an Error ID of "0x8000000D" was reported by the XML Service at address "http://server2:80/scripts/wpnbr.dll [com.citrix.xml.NFuseProtocol.RequestAddress]".  This XML Service transaction failed, but the XML Service has not been removed from the list of active services."
3. "All of the configured XML Services for farm "Farm1" failed to respond to this XML transaction."

To troubleshoot I
- checked login permissions (gp "allow log on locally")
- ctxxmlss /r80
- checked that XML service was started
- in CMC "trust requests sent to XML service" was enabled

IIS is not used/installed on both servers, STA not configured. I did not see any configuration differences between server 1 and server 2 and the servers look fine in the farm configuration in the Access Management Console.

Not sure how I can test the XML Server on server 1 and 2, but I assume it works on server1 as otherwise we should get the error message every time.
Avatar of Carl Webster
Carl Webster
Flag of United States of America image

Sounds like you are using an Access data store and server 1 has that data store.  When the data store becomes unavailable the farm literally becomes unusable (not 100% unusable).  I would recommend moving the data store from Access to SQL Server.

I wrote an article on how to do that:

Learning How to Migrade a Citrix Data Store from Access to SQL Server
http://www.dabcc.com/article.aspx?id=9882
Avatar of stefme
stefme

ASKER

Thanks.
The MF20.dsn points to the Citrix SQL server DB (on another server) and is set as DataSourceName in the registry of both Citrix PS servers. Only lmalhc.db is used on both servers (individual files).


You write "An alternate way to test connectivity to the data store is from a command prompt type in QFARM and press enter."

When I enter "qfarm" on server1 I get
---------------------------------------
server1*   TCP/IP    10.1......  D
server2    TCP/IP    10.1......  D

When I enter it on server2 I get
---------------------------------------
server1    TCP/IP    10.1......  D
server2*   TCP/IP    10.1......  D

Assume this is fine, isn't it? Not sure what * and D mean.
Avatar of stefme

ASKER

made a mistake. There is only one "D"

---------------------------------------
server1*   TCP/IP    10.1......  D
server2    TCP/IP    10.1......  

When I enter it on server2 I get
---------------------------------------
server1    TCP/IP    10.1......  D
server2*   TCP/IP    10.1......  
The "D" means that both servers think they are the Data Collector!  There can only be one per zone.
The "*" means that is the server you ran qfarm from.

I would reboot server1, when it gets to the logon screen, reboot server2, when it gets to the logon screen, logon to both servers and rerun qfarm and report the results.

I'll go over to my lab server, which has 2 PS servers, and run qfarm and see what it says.
What account did you use to connect to the SQL Server for the data store?  Did its password change?  If it did, reset the password back to the original and change the account to not have a pwd expiration.
Avatar of stefme

ASKER

What I forgot: server1 is the ZDC, It does not matter if this one is offline, in other words: server2 does not need to be a backup ZDC, right?
What you want for ZDC has no bearing on what the Farm wants for a ZDC.  Once you initiate the power off or reboot cycle on Server1, an election occurs for a new ZDC.  This is from http://support.citrix.com/article/CTX112525:

Election Process in Detail

What is meant by a Zone Data Collector election?

Should for any reason this ZDC not be available, another server in the zone can take over this role in its place. The process of taking this role is known as an election. The setup of how these elections take place are very important in a Presentation Server farm design, especially in large environments like Miami Incs. Miami Inc has a global distributed Citrix environment, where farm communication is heavily reliant on zone setup.

What server is the boss, and how is that determined?

Server Administrators must choose the Zone Data Collector strategy carefully during farm design. There are many variables associated with this process that are outside the scope of this document. When an election needs to occur in a zone, the winner of the election is determined using the following criteria:

" Highest Presentation Server version first (should always be 1)
" Highest rank (as configured in the Management Console)
" Highest Host ID number (a Host ID is just a number  every server has a unique ID)

====
Even if you have Server1 set with the status of Most Preferred, if Server2 has a higher version # it will ALWAYS win the election regardless of what YOU want.  PERIOD.

If both servers are set for a Direct connection to the SQL Server then it should not matter if either server is rebooted.

Can you give the contents of MF20.dsn from both servers?
Avatar of stefme

ASKER

qfarm shows the same values after the reboot as before.
I'm gonna change the SQL password on the SQL server (sql02) and the 2 DSN connections tomorrow evening to see if that makes any difference.

Mf20.dsn of server1
-------------------------
[ODBC]
DRIVER=SQL Server
UID=citrix
DATABASE=citrix
WSID=server1
APP=Citrix IMA
SERVER=sql02
Description=citrix

Mf20.dsn of server2
-------------------------
[ODBC]
DRIVER=SQL Server
UID=citrix
DATABASE=citrix
WSID=server2
APP=Citrix IMA
SERVER=sql02
Description=citrix
ASKER CERTIFIED SOLUTION
Avatar of Carl Webster
Carl Webster
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of stefme

ASKER

I figured out it is still the original password we set at the beginning months ago, so I did not change it.  Then lately we added a second Citrix server to the farm.
What I did not realize until now is that we moved the DB from one SQL server to another one some months ago.

I ran "dsmaint config" successfully on server2 and wait till I can shutdown server1 to test..
"Successfully connected to the data store.
Configuration successfully changed."
Avatar of stefme

ASKER

dsmaint config did the trick, thank you very much. The logon to the portal is slower than if server1 is down but that does not matter as it works and I guess it is normal.
Avatar of stefme

ASKER

thanks for your great help!