Community Tip - You can change your system assigned username to something more personal in your community settings. X
I have ThingWorx 5.0 installed on my local Tomcat 7.0 instance running on Windows.
Hello Steve, yes that is possible, please see Wiki entry 2.01.03
The wiki entry 2.01.03 is not specific enough in my opinion, and is also ambiguous, and if I follow my interpretation of it I cannot succeed in changing that location. I'm using version 5.0.1.103.
Here are the points of ambiguity:
Thanks,
Alessio
Thanks for you input. We've updated the Wiki entry with more detailed information. Please let me know if you have any questions.
Adam,
thank you for the prompt reply and especially for updating the wiki entry.
Unfortunately, I still can't change those locations.
Could it be a bug maybe? How do I report it?
Thanks,
Alessio
Hi Alessio,
That is unfortunate : (
Which method are you using?
system environment variable set to THINGWORX_PLATFORM_SETTINGS=D:\PTC\ThingWorx
if works now. I was still using the platform-settings.json as described before you updated the wiki.
--- start of old platform-settings.json -<br>{ <br> "Storage": "D:/PTC/ThingWorx/ThingWorxStorage",<br> "BackupStorage": "D:/PTC/ThingWorx/ThingWorxBackupStorage"<br>}<br><br>- end of old platform-settings.json -<br><br>while instead the settings must be set deeper in the JSON structure:<br><br>- start of NEW platform-settings.json ---
{
"Settings": {
"name": "Settings",
"description": "Platform Settings",
"isMultiRow": false,
"ordinal": 0,
"rows": [
{
"Storage": "D:/PTC/ThingWorx/ThingWorxStorage",
"BackupStorage": "D:/PTC/ThingWorx/ThingWorxBackupStorage"
} ],
....
Hi, where is the Wiki are you talking about ? Is that the documentation (http://support.ptc.com/cs/help/thingworx_hc/thingworx_6.5_hc/) ?
Thank you
Greetings,
I found the docs on setting an alternate location for the storage and backup storage (thanks).
I tried to follow the docs and what ever i do, i cannot get ThingWorxStorage or ThingWorxBackupStorage
to get created in any location other than the root directory (for my case Windows D:\ ).
What i have done:
- Created the following directories:
- D:/svn/projects/twx/ThingWorxStorage
- D:/svn/projects/twx/ThingWorxBackupStorage
Before each attempt, i undeployed Thingsworx web app from Tomcat and restarted tomcat server
Attempt #1
--
- Added the following system env. variable THINGWORX_PLATFORM_SETTINGS with value=D:\svn\projects\twx
- Created platform-settings.json file
- added the following to the file
{
"Storage": "D:\svn\projects\twx",
"BackupStorage": "D:\svn\projects\twx"
}
Results: ThingworxStorage and ThingworxBackupStorage created on D:\
Hi,
(I'm using Linux so my command lines may be different)
Did you try to follow this support case: https://support.ptc.com/appserver/cs/view/solution.jsp?n=CS197998
It works for me on Linux:
- $CATALINA_HOME/bin/setenv.sh: add "export THINGWORX_PLATFORM_SETTINGS=[link_thingworx_directory]"
- platform-settings.json:
...
"Storage": "/home/[linux_user]/ThingworxStorage",
"BackupStorage": "/home/[linux_user]/ThingworxBackupStorage"
...
- sudo chown tomcat8:tomcat8 [link_thingworx_directory] /home/[linux_user]/ThingworxStorage /home/[linux_user]/ThingworxBackupStorage
- sudo chmod 775 [link_thingworx_directory] /home/[linux_user]/ThingworxStorage /home/[linux_user]/ThingworxBackupStorage