Change Largefiles directory

m.rossi's Avatar

m.rossi

14 Sep, 2015 02:22 PM

Hi,

I noticed that our mercurial Largefiles folder is currently saved at:

/root/rhodecode/repos/.cache/largefiles

which is on our OS partition, whilst all our repositories are on a
separate partition (which is a separate drive). Is there any way (some
config file?) to change the path of this folder? If not, would a simple
symbolic link work?

Thanks!
- Mireno

P (Please consider your environmental responsibility before printing this
e-mail)
The information contained in this e-mail is intended for the sole use of
the individual or entity named above and may contain privileged and/or
confidential information that is exempt from disclosure under applicable
law. If you are not the intended recipient, you are hereby notified that
any dissemination, distribution or duplication of this message by someone
other than the intended addressee or their designated agent is strictly
prohibited. If your receipt of this transmission is in error, please
promptly notify [email blocked] and destroy this message. Thank you.

  1. Support Staff 1 Posted by Marcin Kuzminsk... on 15 Sep, 2015 10:01 AM

    Marcin Kuzminski's Avatar

    Hi,

    This is stored in a secret option inside RhodeCode database. Here's how you can change it.

    Run our interactive shell, called ishell.
    # Open iShell from the terminal
    $ .rccontrol/enterprise-1/profile/bin/paster ishell .rccontrol/enterprise-1/rhodecode.ini

    Then run those commands, make sure new directory is writable by RhodeCode:

    ```
    In [1]: RhodeCodeUi.get_by_key('usercache')
    Out[1]: <RhodeCodeUi[largefiles]usercache=>/mnt/hgfs/marcink-shared/workspace/xxxx/.cache/largefiles]>

    In [2]: largefiles_cache = RhodeCodeUi.get_by_key('usercache’)
    In [3]: largefiles_cache.ui_value = '/new/path’
    In [4]: Session().add(largefiles_cache);Session().commit()
    ```

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

 

03 Oct, 2017 08:26 PM
03 Oct, 2017 05:48 PM
28 Sep, 2017 05:55 PM
25 Sep, 2017 06:06 PM
25 Sep, 2017 05:54 AM
18 Aug, 2017 09:19 PM