0

Modify install_location.yml

Hello, I have managed a typo in the installation of a new SGTK and am wanting to non-destructively modify the linux location for my project configuration. Editing the text file directly doesn't seem to change the lookup points SG is using to find the project configuration, and I am unable to cleanly reinstall over top.

Windows has locked some of the files found in the cache directory, and any calls to overwrite the project config fail due to it folders existing on disk.

Is there a manual way to rebuild the cache that SG is using to search directories?

Thanks,

Robert Durnin

 

 

6 comments

  • 0
    Avatar
    Permanently deleted user

    Hello!

    There is a tank command move_configuration which should hopefully fit the bill here!

    Run it for the project, e.g. \\Windoze\path\to\script\tank.bat Project your_project_name move_configuration and it will outline the parameters etc you need to pass.

    The command won't let you move the configuration into a location which already exists, so if you are not running the command from a linux machine, you may have to move the configuration to a temp location first, then move it again to the final location.

    Let us know how it goes! Thanks!

    Manne

  • 0
    Avatar
    Robert Durnin

    Without the move command, what is the best way to strip and reinstall a project configuration? It looks as if there has been some server migration here in my absence and I need to inform SG that the project configuration of the changes to the software mount.

     

    r

     

     

  • 0
    Avatar
    Michael Wortmann

    I am facing a similar problem, would be great to hear about it. Moving a configuration back and forth does the trick but seems not ideal to me...

  • 0
    Avatar
    Permanently deleted user

    Hi guys, if you want to re-setup a project, essentially replacing the current toolkit configuration with a brand new one, you can run the setup_project command with a --force parameter: tank setup_project --force. This will allow you to re-setup existing projects. The old configuration will be completely replaced with a new one as part of this process! 

  • 0
    Avatar
    Michael Wortmann
    Hmm, replaced completely? Is this the easiest way to adapt for infrastructure changes?
  • 0
    Avatar
    Permanently deleted user

    Sorry Michael, I was answering Robert's question "what is the best way to strip and reinstall a project configuration?" ! I absolutely agree that replacing a project completely is not the easiest way to adapt for infrastructural changes! :) Let me try to summarize:

    - If you have your configuration in /configuration/location1 and want to move it to /configuration/location2, just use the tank move_configuration command which will move it.

    - If your configuration is located in /configuration/location on linux (which is the platform you are also currently running) but you want to move the windows path from \\storage1\configuration\location to \\storage2\configuration\location, you currently unfortunately have to first move it to an alt location on linux, then move it back to /configuration/location. This is because the move_configuration command checks to ensure that the target location doesn't already exist. I will add a ticket so that we can make the move_configuration command a bit more intelligent and realise that if the path where you are moving from is the same path as you are moving to, then that of course should be fine too! We were thinking that this was a bit of an edge case, but it sounds like it may be less of an edge case than we thought :)

    - Lastly, if you want to completely blow your config away and do a reinstall of toolkit for a project, use the tank setup_project --force command. This is different altogether and can be useful if you are doing lots of testing on a single project.

    Hope this helps!
    Manne

Please sign in to leave a comment.