TACTIC Open Source
change preview image issues - Printable Version

+- TACTIC Open Source (http://forum.southpawtech.com)
+-- Forum: TACTIC Open Source (http://forum.southpawtech.com/forumdisplay.php?fid=3)
+--- Forum: TACTIC Discussion (http://forum.southpawtech.com/forumdisplay.php?fid=4)
+--- Thread: change preview image issues (/showthread.php?tid=115)



change preview image issues - EricTsuei - 05-13-2020

I am using tactic4.5 and chrome.
and try to make my custom VFX template project. not by using VFX template.zip file.

So I create a clean windows server and reinstall everything. both pgsql and apache version are the same.
and tactic works.

so I try to move the asset and temp folder, from "c:\programdata\"  to "D:\tactic_asset\"
I change this setting in tactic page:  admin/link/system_config, then save.


But I can't check-in or change preview images anymore.
[attachment=56][attachment=57]

So I change the all the path back to c:\programdata\

Still can't check-in or change preview images. 

But I can check-in or change preview images in another tactic server which I already in use for 3 projects.

So I copy the file " C:/ProgramData/Southpaw/Tactic/config/tactic-conf.xml " from my old tactic server to the new one.

But still Can't.

seems tactic already make the ticket folder in " C:\ProgramData\Southpaw\tactic_temp\upload\ " but there's no images in them. seems upload fail.

here is the part of the log file I found in "C:\ProgramData\Southpaw\tactic_temp\log" please see the attachment.

one more, I am not testing check-in or change preview image before I change path setting in this new server. I tested in the old server and works.


RE: change preview image issues - listy - 05-13-2020

Tactic searhing for
D:/Tactic_Asset/Southpaw/tactic_temp
Have you changed all env configs? Like TACTIC_DATA_DIR ?


RE: change preview image issues - EricTsuei - 05-13-2020

please tell me where to set this: TACTIC_DATA_DIR
and I have reset the path to default , but still can't


RE: change preview image issues - listy - 05-13-2020

"Start > Control Panel > System and Security> System > Advanced system settings"

This is from docs: http://community.southpawtech.com/docs/sys-admin/install-tactic-windows-server/


RE: change preview image issues - remkonoteboom - 05-13-2020

When you check in a file from a browser, it first uploads to the tactic_temp directory which you said you changed in the config file. Your error suggests it is in:

D:/Tactic_Asset/Southpaw/tactic_temp/upload/f656d84842ec709dbd07109f0ac71913/CH_PiLiHuo_Fin.png

which seems to be the folder you set it to in your config. Is this the path that is currently in your config? Or is it still the old one (C:\ProgramData etc)? Normally, it doesn't matter where the temp folder it is writable. It seems like it is uploading the file to one path (either a different path or failing due to permissions and not reporting) and checking in from another.

I don't think the TACTIC processes cache the temp file, but to make sure, shut down all of the python processes and see if the same problems happens.


RE: change preview image issues - EricTsuei - 05-14-2020

what's the right way to change the asset folder path?
I have reinstall tactic and now can upload images, but it's still in c:\programdata\tactic


RE: change preview image issues - remkonoteboom - 05-14-2020

All you should need to do is change it in your TACTIC config file:

For example:
<checkin>
...
<asset_base_dir>D:/assets</asset_base_dir>
...
</checkin>

This should just work. However, bear in mind that when uploading from the browser, it uploads it to the temp folder first:

<install>
...
<tmp_dir>D:/temp</tmp_dir>
...
</install>

This doesn't really matter where it is as it should all be handled automatically. However, for performance reasons, you may want to keep the temp folder on the same partition as the assets folder because on check-in, TACTIC will "move" the file. This is a very fast operation both paths are on the same partition, otherwise, the OS will be forced to copy the file and delete.