Upgrading to 7.0.2 and license not retrieved
Hello,
on my Ubuntu docker/Jupyter setup I upgraded heavyai from 7.01 to 7.0.2 using the yml file.
After the upgrade i get this message in the Web log:
time="2023-07-07T15:40:23Z" level=error msg="Unable to find or retrieve license: Post \"http://localhost:6278\": dial tcp 127.0.0.1:6278: connect: connection refused"
The heavyai.license file is still in the /var/lib/heavyai/data path, and I don't get the license input screen but a black screen.
What should I do in this scenario?
-
Well, it turns out that the message was misleading: in this case there is no problem with the license topic at all.
In the container log I find:
Server Error: Whitelisted root path "/var/share/ingesting/" does not exist.
The culprit is, every time an upgrade is made (I'm using a yml file) the container is recreated, and the whitelisted path is lost.
The issue can be solved by entering the container and recreating the missing path: either way fast enough before the next crash, or disabling temporary the whitelist dir into /var/lib/heavyai/heavy.conf commenting the allowed-import-paths line.
Once the path is recreated into the container also the "Unable to find or retrieve license: " message in heavy_web_server logfile is gone and everything works fine.
I think an improvement would be avoiding throwing such a message in this scenario: this would also avoid some useless license troubleshooting.Regards
Please sign in to leave a comment.
Comments
2 comments