How to change path to data folder on Windows

A Forum to provide feedback, and report issues about Zimbra Desktop Beta or Release Candidate versions
Locked
dzilupl
Posts: 21
Joined: Thu Jun 16, 2016 8:34 am

How to change path to data folder on Windows

Post by dzilupl »

I had to join my laptop to domain on Windows 10. Because Microsoft doesn't provide easy transfer tool anymore in Windows 10 I had to use external tools to do this (i needed to move my local profile with all settings to domain). Everything works ok excepts Zimbra Desktop 7.3. When trying to run it I got error about wrong path to "User Data" folder - it's looking for it in old user profile and this folder has been renamed to new user name. Where can I change this path to set new correct path without loosing my zimbra data?

Error:
"NW.js cannot read and write to its data directory:
C:\Users\OldUserName\AppData\Local\zimbra-dektop\User Data"

Ofcourse "OldUserName" means that there is the name of my old local user name and now this has been changed to new domain user folder.
PriteshGajjar
Outstanding Member
Outstanding Member
Posts: 310
Joined: Tue Mar 31, 2015 4:59 am

Re: How to change path to data folder on Windows

Post by PriteshGajjar »

Can you try re-installing Zimbra Desktop.
dzilupl
Posts: 21
Joined: Thu Jun 16, 2016 8:34 am

Re: How to change path to data folder on Windows

Post by dzilupl »

I found solution for this problem today in the morning - this path is in shortcut to Zimbra Desktop as parameter --user-data-dir=
I changed it to actual path but now I have another problem:

"Unable to create anchor file"

After I accept this information on "OK" I get blank page:

"This site can’t be reached
127.0.0.1 refused to connect.
Try:
Reloading the page
Checking the connection
Checking the proxy and the firewall
ERR_CONNECTION_REFUSED"
PriteshGajjar
Outstanding Member
Outstanding Member
Posts: 310
Joined: Tue Mar 31, 2015 4:59 am

Re: How to change path to data folder on Windows

Post by PriteshGajjar »

Anchor file gets created when server starts(Jetty server) and that process id is added to anchor file. So you won't be able to manually create this file.
dzilupl
Posts: 21
Joined: Thu Jun 16, 2016 8:34 am

Re: How to change path to data folder on Windows

Post by dzilupl »

I run setup file and choose "Repair" option - still problem with anchor file. I run setup again, choose "Uninstall", next run once again and make new installation - still problem with anchor file. What can I do now? Which files should I delete?
PriteshGajjar
Outstanding Member
Outstanding Member
Posts: 310
Joined: Tue Mar 31, 2015 4:59 am

Re: How to change path to data folder on Windows

Post by PriteshGajjar »

You could take backup of your data and delete everything udner AppData related to Zimbra Desktop. If you using Zimbra a/c then you could sync email again from remote servers, if you have any mails in local folder then make sure you take backup of them.
anderRS
Posts: 3
Joined: Tue Apr 12, 2016 1:32 am

Re: How to change path to data folder on Windows

Post by anderRS »

If you changed your USER name by creating new user in windows 10 (C:\Users\oldname\AppData\Local\Zimbra\Zimbra Desktop\) in the computer, you need to find the paths and change it in archives: localconfig.xml, zdesktop.conf, jetty.xml.
In my case I created a new user in Windows and so I copied the two folders in C:\Users\oldname\AppData\Local\Zimbra and C:\Users\oldname\AppData\Local\zimbra-desktop to C:\Users\newname\AppData\Local\ and C:\Users\newname\AppData\Local\. When I installed zimbra desktop there was a message related to anchor file. So I changed paths in those archives considering "newname".
Sorry about my english...
dzilupl wrote:I run setup file and choose "Repair" option - still problem with anchor file. I run setup again, choose "Uninstall", next run once again and make new installation - still problem with anchor file. What can I do now? Which files should I delete?
Locked