"Specify the URL to your organization or portal for Arcgis. Unable to access http://arcgisonlineaccount.com. A server with the specified hostname could not be found".

6649
3
Jump to solution
11-24-2015 10:16 AM
munimelpati
New Contributor III

Hi,

We recently created windows service to run Web Appbuilder. When we start the web appbuilder using batch file (startup.bat), installed in our development box,all members in the group can access web appbuilder (both in IE/Chrome). We specified port and proxy in the batch file. We use both IE and Chrome to access Web Appbuilder.  However, since we started using windows service to run web appbuilder, some of the members, when they try to access Web appbuilder get this message

"Specify the URL to your organization or portal for Arcgis. Unable to access http://arcgisonlineaccount.com. A server with the specified hostname could not be found".

Some people in the group can access Web appbuilder in either IE and/or chrome. Others can not access it in either browsers. All the members of the group can sign in and access ArcGIS online.

I tried to re-registrating (tried few more times) the url and updated signininfo.json (with key). updated package.json/proxy.js with port/proxy info. After these changes I could access web appbuilder and connect to Arcgisonline. However,other members of the group still could not access it.

Has anybody faced similar problems?

1 Solution

Accepted Solutions
munimelpati
New Contributor III

I am finally able to successfully run WebAppBuilder using Windows service. I created a window service and run the batchfile in hidden mode. This helped fix my problem. This might offer you a solution if you are going through the same problem.

View solution in original post

0 Kudos
3 Replies
munimelpati
New Contributor III

I was able to capture  log file generated when this error happens:

2 info using npm@2.14.7

3 info using node@v4.2.2

4 verbose run-script [ 'prestart', 'start', 'poststart' ]

5 info prestart ArcGISWebAppBuilder@1.1.0

6 info start ArcGISWebAppBuilder@1.1.0

7 verbose unsafe-perm in lifecycle true

8 info ArcGISWebAppBuilder@1.1.0 Failed to exec start script

9 verbose stack Error: ArcGISWebAppBuilder@1.1.0 start: `node server.js -port=3344`

9 verbose stack Exit status 1

9 verbose stack     at EventEmitter.<anonymous> (C:\Program Files\nodejs\node_modules\npm\lib\utils\lifecycle.js:214:16)

9 verbose stack     at emitTwo (events.js:87:13)

9 verbose stack     at EventEmitter.emit (events.js:172:7)

9 verbose stack     at ChildProcess.<anonymous> (C:\Program Files\nodejs\node_modules\npm\lib\utils\spawn.js:24:14)

9 verbose stack     at emitTwo (events.js:87:13)

9 verbose stack     at ChildProcess.emit (events.js:172:7)

9 verbose stack     at maybeClose (internal/child_process.js:818:16)

9 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)

10 verbose pkgid ArcGISWebAppBuilder@1.1.0

11 verbose cwd C:\arcgis-web-appbuilder-1.22\server

12 error Windows_NT 6.3.9600

13 error argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "start"

14 error node v4.2.2

15 error npm  v2.14.7

16 error code ELIFECYCLE

17 error ArcGISWebAppBuilder@1.1.0 start: `node server.js -port=3344`

17 error Exit status 1

18 error Failed at the ArcGISWebAppBuilder@1.1.0 start script 'node server.js -port=3344'.

18 error This is most likely a problem with the ArcGISWebAppBuilder package,

18 error not with npm itself.

18 error Tell the author that this fails on your system:

18 error     node server.js -port=3344

18 error You can get their info via:

18 error     npm owner ls ArcGISWebAppBuilder

18 error There is likely additional logging output above.

19 verbose exit [ 1, true ]

0 Kudos
munimelpati
New Contributor III

Looks like once the cache is cleared none of us can actually be able to validate with AGOL.

0 Kudos
munimelpati
New Contributor III

I am finally able to successfully run WebAppBuilder using Windows service. I created a window service and run the batchfile in hidden mode. This helped fix my problem. This might offer you a solution if you are going through the same problem.

0 Kudos