Statistics graph not shown

Hi there,

after a restart of the server the statistics page don´t show the graphs, it only shows a non accessible or existent image (red cross). How to fix it? I already tried restarting the service and the server…

Hi,

it could be an error with python. Unfortunately I did not manage to print those python errors to the log file. But if you want to debug the problem here is what you could do to get the error message
*Stop the UrBackupServer service
*Open a command line window (cmd)
*Navigate to C:\Program Files\UrBackupServer
*Run “urbackup_srv.exe pgo”
*Navigate to the “Statistics” page on the web interface.
*If there is an error it should show in the console.

Alternatively, if the computer you are accessing UrBackup from has Internet access, you could delete C:\Program Files\UrBackupServer\pychart.dll. UrBackup then uses Google chart as fallback.

Hi Uroni,

seems to be a problem with a UNC path for temoprary directory:

C:\Program Files\UrBackupServer>urbackup_srv.exe pgo
--plugin
urlplugin.dll
--plugin
fsimageplugin.dll
--plugin
downloadplugin.dll
--plugin
pychart.dll
--plugin
httpserver.dll
--plugin
cryptoplugin.dll
--plugin
urbackupserver.dll
--no-server
--logfile
urbackup.log
--loglevel
warn
--server
true
--http_root
urbackup\www
--http_port
55414
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "pychart/pychart.py", line 36, in drawPie
    plt.savefig(tfn, transparent=True, format=pltformat, dpi=g_dpi)
  File "matplotlib\pyplot.pyc", line 363, in savefig
  File "matplotlib\figure.pyc", line 1084, in savefig
  File "matplotlib\backend_bases.pyc", line 1923, in print_figure
  File "matplotlib\backends\backend_agg.pyc", line 443, in print_png
IOError: [Errno 22] invalid mode ('wb') or filename: '\\servername\x08ackup$\\cl
ients\\urbackup_tmp\\urb80BC.tmp'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "pychart/pychart.py", line 52, in drawBar
    plt.savefig(tfn, transparent=True, format=pltformat, dpi=g_dpi)
  File "matplotlib\pyplot.pyc", line 363, in savefig
  File "matplotlib\figure.pyc", line 1084, in savefig
  File "matplotlib\backend_bases.pyc", line 1923, in print_figure
  File "matplotlib\backends\backend_agg.pyc", line 443, in print_png
IOError: [Errno 22] invalid mode ('wb') or filename: '\\servername\x08ackup$\\cl
ients\\urbackup_tmp\\urb82DF.tmp'

The share in reality is named “backup$” and not “x08ackup$”. If I use local path for temp it works again.

Weird. \x08 stands for backspace in ASCII which is \b. But I do escape the backslashes so this should not happen. What exacly is the UNC path, because I tried it now with a UNC path with \backup$ in it and it did escape the backslash correctly.

Hi Uroni,

i entered \servername\backup$\clients in settings for temp folder.

[quote=“fossy777”]Hi Uroni,

i entered \servername\backup$\clients in settings for temp folder.[/quote]

Hmm, is escaped correctly for me. The function name is a little bit generic, so there may be a conflict there which does not occur for me – I’ve changed it. This is a longshot. You can work around the problem for now by changing the backslash before the b to a forward slash or by putting another letter in front of the b.