[OPEN-ILS-DEV] how to login in staff-client

vijay kumar vijcrjbhu at gmail.com
Sat Aug 23 12:21:07 EDT 2008


Dear Member,

When I run the following command

root at shriram-desktop:/etc# xulrunner
/home/opensrf/Evergreen-ILS-1.2.2.3/Open-ILS/xul/staff_client/build/application.ini
================================================
1)I got following error in xulrunner application.ini
root at shriram-desktop:~# xulrunner
/home/opensrf/Evergreen-ILS-1.2.2.3/Open-ILS/xul/staff_client/build/application.ini
Loading OpenILS/util_overlay.xul
Loading constants.js
Loaded OpenILS/util_overlay.xul
entering main/main.js
exiting main/main.js
entities['lang.version'] = remote v1
entering main_init()
entering util/error.js
exiting util/error.js
entering util/sound.js
exiting util/sound.js
-----------------------------------------
1219579763927	delta = 3	D_ERROR
Testing
-----------------------------------------
entering util/window.js
exiting util/window.js
entering auth/controller.js
exiting auth/controller.js
entering OpenILS/data.js
exiting OpenILS/data.js
entering util/network.js
exiting util/network.js
-----------------------------------------
1219579763988	delta = 10	D_DATA_STASH
stashing entities : [object Object] = [object Object]

-----------------------------------------
entering util/file.js
exiting util/file.js
file: /root/.openils/open_ils_staff_client/a8wldve6.default/chrome/ws_info
-----------------------------------------
1219579764028	delta = 1	D_ERROR
/root/.openils/open_ils_staff_client/a8wldve6.default/chrome/ws_info
util.file.get_content(): File does not exist.
-----------------------------------------
-----------------------------------------
1219579764028	delta = 0	D_ERROR
/root/.openils/open_ils_staff_client/a8wldve6.default/chrome/ws_info
util.file.get_object(): File does not exist.
-----------------------------------------
-----------------------------------------
1219579764028	delta = 40	D_DATA_STASH
stashing ws_info : [object Object] = [object Object]

-----------------------------------------
entering util/controller.js
exiting util/controller.js
entering auth/session.js
exiting auth/session.js
entering util/widgets.js
exiting util/widgets.js
file: /root/.openils/open_ils_staff_client/a8wldve6.default/chrome/last_ws_server
file: /home/opensrf/Evergreen-ILS-1.2.2.3/Open-ILS/xul/staff_client/build/chrome/open_ils_staff_client/content/conf/ws_info
exiting main_init()


================================================
2)I got an window ask for hostname,username and password
so when i give hostname as localhost and username admin and passwd as
abc123 that i used for logging in OPAC

hostname localhost
status 200 ok
version 200 ok
but i got error in xulrunner application.ini as

root at shriram-desktop:/etc# xulrunner
/home/opensrf/Evergreen-ILS-1.2.2.3/Open-ILS/xul/staff_client/build/application.ini
Loading OpenILS/util_overlay.xul
Loading constants.js
Loaded OpenILS/util_overlay.xul
entering main/main.js
exiting main/main.js
entities['lang.version'] = remote v1
entering main_init()
entering util/error.js
exiting util/error.js
entering util/sound.js
exiting util/sound.js
-----------------------------------------
1219578947365	delta = 52	D_ERROR

and when I used to login as
username admin
passwd abc123
showing an error message

localhost:443 uses an invalid security certificate.

The certificate is not trusted because it is self signed.
The certificate is only valid for <a id="cert_domain_link"
title="vijay kumar">vijay kumar</a>

(Error code: sec_error_untrusted_issuer)

and i got following error in xulrunner application.ini as

entering util/window.js
exiting util/window.js
entering auth/controller.js
exiting auth/controller.js
entering OpenILS/data.js
exiting OpenILS/data.js
entering util/network.js
exiting util/network.js
-----------------------------------------
1219578947522	delta = 21	D_DATA_STASH
stashing entities : [object Object] = [object Object]

-----------------------------------------
entering util/file.js
exiting util/file.js
file: /root/.openils/open_ils_staff_client/a8wldve6.default/chrome/ws_info
-----------------------------------------
1219578947538	delta = 1	D_ERROR
/root/.openils/open_ils_staff_client/a8wldve6.default/chrome/ws_info
util.file.get_content(): File does not exist.
-----------------------------------------
-----------------------------------------
1219578947538	delta = 0	D_ERROR
/root/.openils/open_ils_staff_client/a8wldve6.default/chrome/ws_info
util.file.get_object(): File does not exist.
-----------------------------------------
-----------------------------------------
1219578947539	delta = 17	D_DATA_STASH
stashing ws_info : [object Object] = [object Object]

-----------------------------------------
entering util/controller.js
exiting util/controller.js
entering auth/session.js
exiting auth/session.js
entering util/widgets.js
exiting util/widgets.js
file: /root/.openils/open_ils_staff_client/a8wldve6.default/chrome/last_ws_server
file: /home/opensrf/Evergreen-ILS-1.2.2.3/Open-ILS/xul/staff_client/build/chrome/open_ils_staff_client/content/conf/ws_info
exiting main_init()
server url = http://localhost
version url = http://localhost/xul/12345/server/
-----------------------------------------
1219579407395	delta = 459940	D_AUTH
login with admin and ncsi123 at localhost

-----------------------------------------
-----------------------------------------
1219579407396	delta = 1	D_AUTH
auth.controller.session.on_init = auth.controller.on_login

-----------------------------------------
-----------------------------------------
1219579407397	delta = 459837	D_SES
_request open-ils.auth open-ils.auth.authenticate.init "admin"
override_params = undefined
_params = undefined
Result #1 synced
-----------------------------------------
-----------------------------------------
1219579407773	delta = 376	D_SES_RESULT
synced result #1

"ab9b59e2115c6b60cdb06562def72329"

Original Request:

request open-ils.auth open-ils.auth.authenticate.init "admin"
-----------------------------------------
-----------------------------------------
1219579407790	delta = 17	D_SES
_request open-ils.auth open-ils.auth.authenticate.complete
{
	"username":"admin",
	"password":"92e921c52b536f159c23a0df0ca9fca9",
	"type":"temp"
}

override_params = undefined
_params = [object Object]
Result #2 synced
-----------------------------------------
! NETWORK FAILURE.  HTTP STATUS = <unknown>
service=open-ils.auth&method=open-ils.auth.authenticate.complete&param=%7B%22username%22%3A%22admin%22%2C%22password%22%3A%2292e921c52b536f159c23a0df0ca9fca9%22%2C%22type%22%3A%22temp%22%7D
-----------------------------------------
1219579418023	delta = 10233	D_SES_RESULT
synced result #2

null

Original Request:

request open-ils.auth open-ils.auth.authenticate.complete
{"username":"admin","password":"92e921c52b536f159c23a0df0ca9fca9","type":"temp"}
-----------------------------------------
! NETWORK FAILURE.  HTTP STATUS = <unknown>
service=open-ils.auth&method=open-ils.auth.authenticate.complete&param=%7B%22username%22%3A%22admin%22%2C%22password%22%3A%2292e921c52b536f159c23a0df0ca9fca9%22%2C%22type%22%3A%22temp%22%7D
! NETWORK FAILURE.  HTTP STATUS = <unknown>
service=open-ils.auth&method=open-ils.auth.authenticate.complete&param=%7B%22username%22%3A%22admin%22%2C%22password%22%3A%2292e921c52b536f159c23a0df0ca9fca9%22%2C%22type%22%3A%22temp%22%7D
! NETWORK FAILURE.  HTTP STATUS = <unknown>
service=open-ils.auth&method=open-ils.auth.authenticate.complete&param=%7B%22username%22%3A%22admin%22%2C%22password%22%3A%2292e921c52b536f159c23a0df0ca9fca9%22%2C%22type%22%3A%22temp%22%7D
-----------------------------------------
1219579418025	delta = 2	D_SES_ERROR
Network/server failure.  Please check your Internet connection to
undefined and choose Retry Network.  If you need to enter Offline
Mode, choose Ignore Errors in this and subsequent dialogs.  If you
believe this error is due to a bug in Evergreen and not network
problems, please contact your helpdesk or friendly Evergreen admins,
and give them this information:
method=open-ils.auth.authenticate.complete
params=[{"username":"admin","password":"92e921c52b536f159c23a0df0ca9fca9","type":"temp"}]
THROWN:
Network Failure: status = <unknown>
service=open-ils.auth&method=open-ils.auth.authenticate.complete&param=%7B%22username%22%3A%22admin%22%2C%22password%22%3A%2292e921c52b536f159c23a0df0ca9fca9%22%2C%22type%22%3A%22temp%22%7D
STATUS:
<unknown>
-----------------------------------------
yns_alert:
	s = Network/server failure.  Please check your Internet connection to
undefined and choose Retry Network.  If you need to enter Offline
Mode, choose Ignore Errors in this and subsequent dialogs.  If you
believe this error is due to a bug in Evergreen and not network
problems, please contact your helpdesk or friendly Evergreen admins,
and give them this information:
method=open-ils.auth.authenticate.complete
params=[{"username":"admin","password":"92e921c52b536f159c23a0df0ca9fca9","type":"temp"}]
THROWN:
Network Failure: status = <unknown>
service=open-ils.auth&method=open-ils.auth.authenticate.complete&param=%7B%22username%22%3A%22admin%22%2C%22password%22%3A%2292e921c52b536f159c23a0df0ca9fca9%22%2C%22type%22%3A%22temp%22%7D
STATUS:
<unknown>
	title = Network Failure
	b1 = Retry Network
	b2 = Ignore Errors
	b3 = null
	c = Check here to confirm this message
url = [xpconnect wrapped nsIURL]
play_url(): [Exception... "Component returned failure code: 0x804b0012
(NS_ERROR_UNKNOWN_PROTOCOL) [nsISound.play]"  nsresult: "0x804b0012
(NS_ERROR_UNKNOWN_PROTOCOL)"  location: "JS frame ::
chrome://open_ils_staff_client/content/main/JSAN.js :: anonymous ::
line 249"  data: no]
-----------------------------------------
1219579423664	delta = 5640	D_DATA_STASH
stashing proceed_offline : true

-----------------------------------------
Remembering proceed_offline for 200000 ms.
Ignore Errors
-----------------------------------------
1219579425188	delta = 477628	D_AUTH
auth.session.on_error()

-----------------------------------------
-----------------------------------------
1219579425188	delta = 17792	D_AUTH
logoff[object ChromeWindow]

-----------------------------------------
-----------------------------------------
1219579425215	delta = 27	D_AUTH
auth.session.close()

-----------------------------------------

=================================================
3) But as you suggest me to login as
locatname as demo.gapines.org
Username arl-ath-demo-localadmin and
 password demo123

i am unable to get status and version
and its not connected.....

Please help me to solve this problem,
Is there is any default username and passwd and hostname
Please provide me a link that I follow to get staff-client page login
What is the problem I am unable to login ??

Please suggest me,
vijay kumar
NCSI,IISc


More information about the Open-ils-dev mailing list