If you encounter timeouts in AEN you can change the default value for your refresh token in your config.
In order to make this change edit your Gateway config file, /opt/wakari/wakari-gateway/etc/wakari/wk-gateway-config.json
and add an entry for "refreshTokenExpiration"
.
{
"CDN": "http://foo.bar/static/",
"SUBDOMAIN_ROUTING": false,
"WAKARI_SERVER": "http://foo.bar",
"client_id": "5a8d5dd5a4b9c90aba41a590",
"client_secret": "83af5ba9-4a97-51b4-9216-4f658b7c7542",
"logLevel": "info",
"port": 8088,
"refreshTokenExpiration": 86400000
}
Here, refreshTokenExpiration
is set to 86400000 milliseconds (24 hours). You can set it to whatever value you'd like but be mindful that it should be in milliseconds. After making this change to your config you will have to restart the gateway services by running:
sudo service wakari-gateway restart
In the case that you do encounter a timeout and lose work, our AEN team has also developed a workaround for recovering lost work:
- You will need to open the dashboard page in a NEW tab from the notebook app.
- You can do that opening a NEW tab with the secondary menu (right-click) on the Anaconda logo at the top-left of their notebooks
- You will most likely need to log in again
- After that, you can come back to the notebook showing the error and should be able to save it