I occured the same problem, and solved by changing the default DatabaseDir '/var/lib/vnstat' to '/mnt/user/vnstat' in /etc/vnstat.conf.
The new DatabaseDir ‘/mnt/user/vnstat’ was created in UNRAID WEBGUI shares tab.
Though I still don't understand why default DatabaseDir failed. Hope someone could enlight me.