How to fix "Directory doesn't exist" error displayed when selecting xml file in LoginSchema profile

How to fix "Directory doesn't exist" error displayed when selecting xml file in LoginSchema profile

book

Article ID: CTX317935

calendar_today

Updated On:

Description

Clear the Citrix ADC error "Directory doesn't exist" when selecting xml files in LoginSchema profiles to allow for configuration of new Login Schemas.


Instructions

Symptom 
1. GUI error:
image.png

2. In shell mode, custom does not exist 
root@12# ls /var/netscaler/logon/LogonPoint/custom
ls: /var/netscaler/logon/LogonPoint/custom: No such file or directory


How to fix

Method #1
Create the directory custom in  /var/netscaler/logon/LogonPoint/ in shell mode , then upgrade to a new release build

Method #2
Copy the directory /var/netscaler/logon/LogonPoint/custom and all of the content in it from the same build to the Citrix ADC experiencing the error.
 
The following is an example where the Citrix ADC experiencing the issue is running build 13.0-76.31. 
-------
1. Download a copy of the software build from the Citrix download website
                 
2. Login to the Citrix ADC and switch to shell mode
 
  > shell
  Copyright (c) 1992-2013 The FreeBSD Project.
  Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
        The Regents of the University of California. All rights reserved.

  root@12#

               
3. Create a temporary directory and switch to the created directory

  mkdir -p /var/nsinstall/76.31
  cd /var/nsinstall/76.31


4. Upload downloaded build to the server and save in directory '/var/nsinstall/76.31' 
 
5. Confirm the mode of the downloaded build file is 644 (-rw-r--r--) and the owner is root:wheel

  12# ls -l
  total 2
  -rw-r--r--  1 root  wheel   811M May  7 17:05 build-13.0-76.31_nc_64.tgz

                               
6. Extract build-13.0-76.31_nc_64.tgz
  
  12# tar -zxvf build-13.0-76.31_nc_64.tgz

  12# ls -l LogonPoint.tgz
  -rw-r--r--  1 root  wheel   5.1M Mar  9 19:03 LogonPoint.tgz

                        
8. Extract LogonPoint.tgz and then cd to directory  'logon/LogonPoint'

  root@12# pwd
  /var/nsinstall/76.31

  root@12# tar -zxvf LogonPoint.tgz

  root@12# pwd
  /var/nsinstall/76.31

  root@12# cd logon/LogonPoint/

  root@12# pwd
  /var/nsinstall/76.31/logon/LogonPoint

  root@12# ls -l custom/
  total 44
  -rw-r--r--  1 root  wheel   2.8k Mar  9 18:22 ajax-loader.gif
  -rw-r--r--  1 root  wheel   921B Mar  9 18:22 script.js
  -rw-r--r--  1 root  wheel   437B Mar  9 18:22 strings.de.js
  -rw-r--r--  1 root  wheel     3B Mar  9 18:22 strings.de.json
  -rw-r--r--  1 root  wheel   438B Mar  9 18:22 strings.en.js
  -rw-r--r--  1 root  wheel     3B Mar  9 18:22 strings.en.json
  -rw-r--r--  1 root  wheel   437B Mar  9 18:22 strings.es.js
  -rw-r--r--  1 root  wheel     4B Mar  9 18:22 strings.es.json
  -rw-r--r--  1 root  wheel   437B Mar  9 18:22 strings.fr.js
  -rw-r--r--  1 root  wheel     3B Mar  9 18:22 strings.fr.json
  -rw-r--r--  1 root  wheel   438B Mar  9 18:22 strings.it.js
  -rw-r--r--  1 root  wheel     3B Mar  9 18:22 strings.it.json
  -rw-r--r--  1 root  wheel   438B Mar  9 18:22 strings.ja.js
  -rw-r--r--  1 root  wheel     3B Mar  9 18:22 strings.ja.json
  -rw-r--r--  1 root  wheel   438B Mar  9 18:22 strings.nl.js
  -rw-r--r--  1 root  wheel     3B Mar  9 18:22 strings.nl.json
  -rw-r--r--  1 root  wheel   438B Mar  9 18:22 strings.pt.js
  -rw-r--r--  1 root  wheel     3B Mar  9 18:22 strings.pt.json
  -rw-r--r--  1 root  wheel   444B Mar  9 18:22 strings.zh-CN.js
  -rw-r--r--  1 root  wheel     3B Mar  9 18:22 strings.zh-CN.json
  -rw-r--r--  1 root  wheel   738B Mar  9 18:22 style.css


9. copy 'custom' directory to '/var/netscaler/logon/LogonPoint'

  root@12# pwd
  /var/nsinstall/76.31/logon/LogonPoint

  root@12# cp -rf custom /var/netscaler/logon/LogonPoint/


                               
10. Cd to '/var/netscaler/logon/LogonPoint' and check the content and mode and owner of custom and content in it

  root@12# cd /var/netscaler/logon/LogonPoint
  root@12# ls -l | grep custom
  drwxr-xr-x  2 root  wheel   1.0k May  7 17:24 custom

  root@12# ls -l custom/
  total 44
  -rw-r--r--  1 root  wheel   2.8k May  7 17:24 ajax-loader.gif
  -rw-r--r--  1 root  wheel   921B May  7 17:24 script.js
  -rw-r--r--  1 root  wheel   437B May  7 17:24 strings.de.js
  -rw-r--r--  1 root  wheel     3B May  7 17:24 strings.de.json
  -rw-r--r--  1 root  wheel   438B May  7 17:24 strings.en.js
  -rw-r--r--  1 root  wheel     3B May  7 17:24 strings.en.json
  -rw-r--r--  1 root  wheel   437B May  7 17:24 strings.es.js
  -rw-r--r--  1 root  wheel     4B May  7 17:24 strings.es.json
  -rw-r--r--  1 root  wheel   437B May  7 17:24 strings.fr.js
  -rw-r--r--  1 root  wheel     3B May  7 17:24 strings.fr.json
  -rw-r--r--  1 root  wheel   438B May  7 17:24 strings.it.js
  -rw-r--r--  1 root  wheel     3B May  7 17:24 strings.it.json
  -rw-r--r--  1 root  wheel   438B May  7 17:24 strings.ja.js
  -rw-r--r--  1 root  wheel     3B May  7 17:24 strings.ja.json
  -rw-r--r--  1 root  wheel   438B May  7 17:24 strings.nl.js
  -rw-r--r--  1 root  wheel     3B May  7 17:24 strings.nl.json
  -rw-r--r--  1 root  wheel   438B May  7 17:24 strings.pt.js
  -rw-r--r--  1 root  wheel     3B May  7 17:24 strings.pt.json
  -rw-r--r--  1 root  wheel   444B May  7 17:24 strings.zh-CN.js
  -rw-r--r--  1 root  wheel     3B May  7 17:24 strings.zh-CN.json
  -rw-r--r--  1 root  wheel   738B May  7 17:24 style.css
 
11. Login to GUI and verify the error is cleared when choosing a login schema
 

12. If the error is cleared, remove the temporary directory '/var/nsinstall/76.31'
   
  rm -rf /var/nsinstall/76.31

Note:

This is a known issue and will be corrected in a future version of Citrix ADC.