{"id":2538,"date":"2012-07-03T16:11:43","date_gmt":"2012-07-03T20:11:43","guid":{"rendered":"https:\/\/pitss.org\/us\/2012\/07\/03\/pitss-con-error-can-not-open-context\/"},"modified":"2020-09-15T09:45:27","modified_gmt":"2020-09-15T13:45:27","slug":"pitss-con-error-can-not-open-context","status":"publish","type":"post","link":"https:\/\/pitss.org\/us\/2012\/07\/03\/pitss-con-error-can-not-open-context\/","title":{"rendered":"PITSS.CON Error &#8211; &#8216;Can Not Open Context&#8217;"},"content":{"rendered":"<p>In Linux installations of PITSS.CON, there have been reports when developers have tried to load forms, menus, or libraries into PITSS.CON, they encounter the following error:<br \/>\n<b>&#8220;Can not open context &#8211; Operation Failed!&#8221;<\/b><\/p>\n<p><strong><a class=\"thickbox\" href=\"https:\/\/pitss.org\/files\/2012\/07\/Can-not-open-context-Forms-Load-Error.jpg\"><img loading=\"lazy\" decoding=\"async\" style=\"padding-left: 0px; padding-right: 0px; padding-top: 0px; border-width: 0px;\" src=\"https:\/\/pitss.org\/files\/2012\/07\/Can-not-open-context-Forms-Load-Error_thumb.jpg\" alt=\"Can not open context Forms Load Error\" width=\"485\" height=\"331\" border=\"0\" \/><\/a><\/strong><br \/>\nIn order to overcome the context error, you will need to make sure that:<\/p>\n<ul>\n<li>VNC Server is running in the server. Most RHEL (Red Hat Enterprise Linux) and OEL (Oracle Enterprise Linux) operating systems come with VNC Server which provide access to a GUI. Run the command &#8220;vncserver&#8221; and it will be listening on a certain address (example: hostname\/IP_address:1).<\/li>\n<li>In all .env files associated with PITSS.CON, make sure the DISPLAY variable is set to the same value set in vncserver (see step above for more information). Example: export DISPLAY=hostname:1.0<\/li>\n<li>LD_LIBRARY_PATH and LD_PRELOAD are set in the PITSS.CON related .env files.<\/li>\n<li>NLS_LANG is not set in any of the PITSS.CON related .env files.<\/li>\n<\/ul>\n<p>After applying any of the options above, restart your browser, log back into PITSS.CON, and you should be able to load modules using Module Handling.<\/p>\n<p>If the problem still occurs or if you get the error, &#8220;Error on execute batch job&#8230;&#8221;, there are additional steps which you may run to resolve either error:<\/p>\n<ol>\n<li>As the root user, install both Xvfb and openmotif (the latter may already be installed).<\/li>\n<li>Start Xvfb: <span class=\"code\" data-renderer-mark=\"true\">Xvfb :99 -screen 0 1280x1024x24 -fbdir \/tmp -fp \/usr\/X11R6\/lib\/X11\/fonts\/misc\/,\/usr\/share\/X11\/fonts\/misc\/ 2&gt;&amp;1 &amp;<\/span><\/li>\n<li>Add the following environment variable into pitsscon.env: DISPLAY=localhost:99.0<\/li>\n<li>In your terminal window, set the DISPLAY variable there too: export DISPLAY=localhost:99.0<\/li>\n<li>Add the display to openmotif: mwm -display localhost:99 -multiscreen &amp;<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>In Linux installations of PITSS.CON, there have been reports when developers have tried to load forms, menus, or libraries into PITSS.CON, they encounter the following error: &#8220;Can not open context &#8211; Operation Failed!&#8221; In order to overcome the context error, you will need to make sure that: VNC Server is running in the server. Most [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_et_pb_use_builder":"","_et_pb_old_content":"","_et_gb_content_width":"","footnotes":""},"categories":[6,14,19],"tags":[12,7],"class_list":["post-2538","post","type-post","status-publish","format-standard","hentry","category-pitss-con","category-resolve-issues","category-unix-linux","tag-error","tag-pitss-con"],"_links":{"self":[{"href":"https:\/\/pitss.org\/us\/wp-json\/wp\/v2\/posts\/2538","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pitss.org\/us\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pitss.org\/us\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pitss.org\/us\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pitss.org\/us\/wp-json\/wp\/v2\/comments?post=2538"}],"version-history":[{"count":6,"href":"https:\/\/pitss.org\/us\/wp-json\/wp\/v2\/posts\/2538\/revisions"}],"predecessor-version":[{"id":13432,"href":"https:\/\/pitss.org\/us\/wp-json\/wp\/v2\/posts\/2538\/revisions\/13432"}],"wp:attachment":[{"href":"https:\/\/pitss.org\/us\/wp-json\/wp\/v2\/media?parent=2538"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pitss.org\/us\/wp-json\/wp\/v2\/categories?post=2538"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pitss.org\/us\/wp-json\/wp\/v2\/tags?post=2538"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}