<p dir="auto">Hey all, getting the error below when executing julia from a windows service. Any input is welcome.</p>
<p dir="auto">Thanks,<br>
Jon</p>
<p dir="auto">Info:</p>
<ul dir="auto">
<li>Windows 2012</li>
<li>If i start a command line prompt as my local user and run julia.exe, it loads fine.</li>
<li>If i start a command prompt as user 'svc-resolvernonprod' and run julia.exe it loads fine.</li>
<li>The IIS app-pool W3WP.EXE is running under the user account 'svc-resolvernonprod'</li>
<li>When the IIS app-pool application runs julia.exe, the following error is displayed:</li>
</ul>
<p dir="auto">fatal: error thrown and no exception handler available.<br>
[inline] at /home/Administrator/buildbot/slave/package_win6_2-x64/build/src\task.c:583<br>
rec_backtrace_ctx at /home/Administrator/buildbot/slave/package_win6_2-x64/build/src\task.c:578<br>
jl_throw at /home/Administrator/buildbot/slave/package_win6_2-x64/build/src\task.c:854<br>
[inline] at .\env.jl:37<br>
getindex at .\env.jl:79<br>
<strong>init</strong> at .\pkg.jl:57<br>
unknown function (ip: 00000000021DE6C4)<br>
jl_apply_generic at /home/Administrator/buildbot/slave/package_win6_2-x64/build/src\gf.c:1917<br>
[inline] at /home/Administrator/buildbot/slave/package_win6_2-x64/build/src\julia.h:1555<br>
jl_eh_restore_state at /home/Administrator/buildbot/slave/package_win6_2-x64/build/src\module.c:624<br>
jl_init_restored_modules at /home/Administrator/buildbot/slave/package_win6_2-x64/build/src\dump.c:1818<br>
_julia_init at /home/Administrator/buildbot/slave/package_win6_2-x64/build/src\init.c:698<br>
julia_init at /home/Administrator/buildbot/slave/package_win6_2-x64/build/src\task.c:278<br>
wmain at /home/Administrator/buildbot/slave/package_win6_2-x64/build/ui\repl.c:628<br>
__tmainCRTStartup at /usr/src/debug/mingw64-x86_64-runtime-4.0.2-1/crt\crtexe.c:334<br>
mainCRTStartup at /usr/src/debug/mingw64-x86_64-runtime-4.0.2-1/crt\crtexe.c:214<br>
BaseThreadInitThunk at C:\Windows\system32\KERNEL32.DLL (unknown line)<br>
RtlUserThreadStart at C:\Windows\SYSTEM32\ntdll.dll (unknown line)<br>
Base.InitError(mod=:Pkg, error=Base.KeyError(key="HOMEDRIVE"))</p>
<p dir="auto">Ubuntu 14.04, julia 0.4.5<br>
I have a julia script, when I run it in a running aws instance, it works.<br>
but when I tried to run it using <code class="notranslate">user_data</code>, which means running the script after system initialization, it failed.</p>
<p dir="auto">I got the following output in <code class="notranslate">/var/log/cloud-init-output.log</code>. It seems that it is a problem of julia. Any help will be appreciated.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Base.InitError(mod=:Base, error=Base.KeyError(key=&quot;HOME&quot;))
rec_backtrace at /usr/bin/../lib/x86_64-linux-gnu/julia/libjulia.so (unknown line)
jl_throw at /usr/bin/../lib/x86_64-linux-gnu/julia/libjulia.so (unknown line)
unknown function (ip: 0x7f0e54b75eca)
init_load_path at ./client.jl:302
__init__ at ./sysimg.jl:308
unknown function (ip: 0x7f0e54c04bb9)
jl_apply_generic at /usr/bin/../lib/x86_64-linux-gnu/julia/libjulia.so (unknown line)
jl_module_run_initializer at /usr/bin/../lib/x86_64-linux-gnu/julia/libjulia.so (unknown line)
unknown function (ip: 0x7f0e578d4713)
unknown function (ip: 0x7f0e578ccf2c)
julia_init at /usr/bin/../lib/x86_64-linux-gnu/julia/libjulia.so (unknown line)
unknown function (ip: 0x4016d3)
__libc_start_main at /lib/x86_64-linux-gnu/libc.so.6 (unknown line)
unknown function (ip: 0x401725)
unknown function (ip: (nil))
2016-04-15 20:36:20,478 - util.py[WARNING]: Failed running /var/lib/cloud/instance/scripts/part-001 [1]
2016-04-15 20:36:20,480 - cc_scripts_user.py[WARNING]: Failed to run module scripts-user (scripts in /var/lib/cloud/instance/scripts)
2016-04-15 20:36:20,480 - util.py[WARNING]: Running scripts-user (&lt;module 'cloudinit.config.cc_scripts_user' from '/usr/lib/python2.7/dist-packages/cloudinit/config/cc_scripts_user.pyc'&gt;) failed
Cloud-init v. 0.7.5 finished at Fri, 15 Apr 2016 20:36:20 +0000. Datasource DataSourceEc2.  Up 68.38 seconds"><pre class="notranslate"><code class="notranslate">Base.InitError(mod=:Base, error=Base.KeyError(key="HOME"))
rec_backtrace at /usr/bin/../lib/x86_64-linux-gnu/julia/libjulia.so (unknown line)
jl_throw at /usr/bin/../lib/x86_64-linux-gnu/julia/libjulia.so (unknown line)
unknown function (ip: 0x7f0e54b75eca)
init_load_path at ./client.jl:302
__init__ at ./sysimg.jl:308
unknown function (ip: 0x7f0e54c04bb9)
jl_apply_generic at /usr/bin/../lib/x86_64-linux-gnu/julia/libjulia.so (unknown line)
jl_module_run_initializer at /usr/bin/../lib/x86_64-linux-gnu/julia/libjulia.so (unknown line)
unknown function (ip: 0x7f0e578d4713)
unknown function (ip: 0x7f0e578ccf2c)
julia_init at /usr/bin/../lib/x86_64-linux-gnu/julia/libjulia.so (unknown line)
unknown function (ip: 0x4016d3)
__libc_start_main at /lib/x86_64-linux-gnu/libc.so.6 (unknown line)
unknown function (ip: 0x401725)
unknown function (ip: (nil))
2016-04-15 20:36:20,478 - util.py[WARNING]: Failed running /var/lib/cloud/instance/scripts/part-001 [1]
2016-04-15 20:36:20,480 - cc_scripts_user.py[WARNING]: Failed to run module scripts-user (scripts in /var/lib/cloud/instance/scripts)
2016-04-15 20:36:20,480 - util.py[WARNING]: Running scripts-user (&lt;module 'cloudinit.config.cc_scripts_user' from '/usr/lib/python2.7/dist-packages/cloudinit/config/cc_scripts_user.pyc'&gt;) failed
Cloud-init v. 0.7.5 finished at Fri, 15 Apr 2016 20:36:20 +0000. Datasource DataSourceEc2.  Up 68.38 seconds
</code></pre></div>