Salt * Wet * Bytes

May 15, 2008

Citrix: Logon Process Hangs at “Running Logon Scripts…”

Filed under: Citrix — saltwetfish @ 5:41 am
Tags: ,

We had a citrix server issue today. User complained of not being able to launch their published application.

So I fired up my citrix neighbourhood and tried connection to a citrix desktop. I could logon fine… however, it hung at “Running Logon Scripts…” dialog box. So I searched the knowledgebase in the net and go referred to CTX107433: The Logon Process Hangs At the “Running logon scripts…” Step. However, this KB don’t seem to resolve my problem and I am very sure that its not a printer driver issue.

Then I remember that we had resolved an issue with citrix before in one of my previous article on citrix. However for that case the citrix services could not start, in the current case, all the services started without issues. However, I still decided to have a poke at the path environment variable on this Windows 2000 box. (more…)

July 16, 2006

Weird problem with Windows environment variables at startup

Filed under: WindowsAdmin — saltwetfish @ 5:37 am
Tags:

Strange problem occured today with one of my Windows 2000 server, its a citrix server and had some issues with the database, so I tried to start and stop the IMA service and rebooted the server.

Upon reboot, it threw up one of the dreaded errors:

Application popup: ImaSrv.exe – Unable To Locate DLL : The dynamic link library BRAPI.dll could not be found in the specified path

Having an long path doesn’t help neither, but then the path is only 582 chars long… only half way to 1023 chars.

Its a strange error as all I did was to start stop a service and reboot the server, so there is no reasons why some of the dlls will go missing after that.

The problem was that Windows could not find the dlls located in C:\Program Files\Citrix\System32 when it starts up. Also the path variable contains environment variable %pf% which substitutes for c:\program files. That is, the string in the path variable is actaully %pf%\citrix\Sytem32. Now if we execute an echo on %pf% and %path%, all works fine. Somehow and suddenly, during the service startup time, Windows was not able to recognize or resolve the %pf% variable and hence, the dlls was not found.

Obviously, replacing the %pf% string with a literal string C:\program files seems to solve this probem upon next reboot. I have seen this problem before in NT but I am surprised to see this also in 2000. Also why Citrix is still depending on the path variable to start services is a mystery to me.

Weird…

Blog at WordPress.com.