Error sending emails / generating snapshots -- "Can't find variable: arc"

If you are using the email feature, you might hit an error like below. You can find this error in the arcviz.INFO logs usually found in /var/log/arcadia directory on the host running the visualizations server.

SOLUTION:
This error is usually because of incorrectly specified IP/Hostname URL in the site settings for thumbnails/snapshots.
http://documentation.arcadiadata.com/latest/#pages/topics/thumbnails-on.html

  • If you are using SSL/TLS for the visualization server UI, you want to make sure change from HTTP to HTTPS
  • If you are using some non-default port other than 38888 you want to update as well.
  • Also, sometimes “localhost” or “127.0.0.1” or not routable. So you have to specify the actual full IP of the host.
    image

ERROR:

Last Run Task:
Saving error and image into run_parameters

Error:
Error: Error exit from phantomjs: 7
TIME_FOR_EXIT:  1000000
RENDER_TRIES:  600
saveType:  screenshot
db_width:  1910 db_height:  957
page.viewportSize:  {"height":957,"width":1910}
sessionid:  9999ok22222b32mzjlabxcasdff7xq
sessioncookie:  arcsessionid
url:  http://127.0.0.1:38888/arc/apps/app/1?embed=true&sheet=1
page.onError()
ReferenceError: Can't find variable: arc
TRACE:
 ->  undefined :  2 
 ->   :  9 
Error when generating snapshot
1 Like

Hi,

So, if we suffer arc:TRACE error, we need to change “http://127.0.0.1:38888” to “http://ip-from-ifconfig-eth0-of-arcviz:38888” ?

Thank you

@rlopez it’s important to make sure to use address that is routable. eth0 would be one place to look and check.