We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 1650
    • 18 Posts
    Hi Shamblett

    Here’s the config. The database is Evo 1.0.3

    $dbType = 1;

    /* Database parameters */
    $host = ’atlas.**.**.**’;
    $user = ’sportwor_sport’;
    $password = ’********’;
    $database = ’sportwor_db’;
    $port = ’’;
    $prefix = ’mdx_’;

    /* Working directory */
    $working = ’/home/andy/sportworks’;

    /* Mount point */
    $mount_point = ’/’;

    /* Passthru */
    $passthru_point = ’/’;

    /* Log file */
    $logfile = ’modxfuse.log’;

    /*
    * Array of pass through directories/files, case sensitive.
    * Defaults to the minimum required to work with SVN
    */
    $passthrudirs = array(0=>’.svn’,
    1=>’checkoutmode’);



    Thanks for your help

    A.
      • 26903
      • 1,336 Posts
      OK andyw4, you have your passthru directory and your db mountpoint both set to ’/’ so they will try and share the same directory which won’t work. I tend to use this directory structure under my working directory :-


      /* Mount point */
      $mount_point = ’/db’;

      /* Passthru */
      $passthru_point = ’/passthru’;

      As you can see they are different, it doesn’t matter what they are called as long as they are different. Sorry if this is not clear in the user guide. I’ll put in a check for this and warn the user appropriately in the next release.
        Use MODx, or the cat gets it!
        • 1650
        • 18 Posts
        Hi Shamblett

        Any chance you could give a brief explanation of what the passthru directory is for? Sorry for being thick, but i really didn’t grasp it from the docs.

        Cheers,

        A.
          • 26903
          • 1,336 Posts
          Yes, at the mo its not really used it just needs to be there, its main use is in integration with VCS’s such as SVN. This where the tracking directories reside e.g SVN uses .svn directories, it needs to create these but they can’t reside in the database mount point as they would be created in your database which you don’t want. As far as things like SVN go if you list the mount point it also picks up the contents of the passthru directory and merges them, so SVN sees the directory structure it needs to function.

          It will also contain other tracking files as well in the future, to store atime/ctime/ info etc. this is what’s stopping full SVN integration at the mo.

          It can also be used to signal the FUSE process at runtime, this can dynamically change the packages behaviour for instance without taking the mount point down.

          As said above in this release as long as its specified correctly it can be ignored.
            Use MODx, or the cat gets it!
            • 1650
            • 18 Posts
            Thanks for your help Shamblett - all working now smiley

            Is there any known issue with categories with spaces in the name?

            I just saved the file (using vim):

            /home/andy/sportworks/db/sportwor_db/Chunks/Template elements/site_header.html and it deleted.

            Do I need to rename my categories?

            A.
              • 26903
              • 1,336 Posts
              Doesn’t ring a bell but I’ll check here.
                Use MODx, or the cat gets it!
                • 26903
                • 1,336 Posts
                OK, just mounted an evo database and created the category ’Template elements’ as you did above, the spaces in the name are OK what’s happening is your trying to create a category and a file at the same time I believe, it won’t do this, it will try and create the file under an existing category which of course it won’t find and fail. Create your categories first, then the file contents. I’ll raise an issue for this in GitHub.
                  Use MODx, or the cat gets it!
                  • 1650
                  • 18 Posts
                  Hi

                  No, that isn’t what’s happening.

                  andy@fafnir:~$ cd sportworks/db/sportwor_db/
                  andy@fafnir:~/sportworks/db/sportwor_db$ ls -la
                  total 0
                  drwxrwxr-x 0 andy andy 4096 1970-01-01 01:00 .
                  drwxrwxr-x 0 andy andy 4096 1970-01-01 01:00 ..
                  drwxrwxr-x 0 andy andy 4096 1970-01-01 01:00 Chunks
                  drwxrwxr-x 0 andy andy 4096 1970-01-01 01:00 Modules
                  drwxrwxr-x 0 andy andy 4096 1970-01-01 01:00 Plugins
                  drwxrwxr-x 0 andy andy 4096 1970-01-01 01:00 Resources
                  drwxrwxr-x 0 andy andy 4096 1970-01-01 01:00 Snippets
                  drwxrwxr-x 0 andy andy 4096 1970-01-01 01:00 Templates
                  drwxrwxr-x 0 andy andy 4096 1970-01-01 01:00 TVs
                  andy@fafnir:~/sportworks/db/sportwor_db$ cd Chunks
                  andy@fafnir:~/sportworks/db/sportwor_db/Chunks$ ls -la
                  ls: cannot access Andy’s experiments: No such file or directory
                  total 0
                  drwxrwxr-x 0 andy andy 4096 1970-01-01 01:00 .
                  drwxrwxr-x 0 andy andy 4096 1970-01-01 01:00 ..
                  drwxrwxr-x 0 andy andy 4096 1970-01-01 01:00 Account
                  drwxrwxr-x 0 andy andy 4096 1970-01-01 01:00 AJAX Backend
                  d????????? ? ? ? ? ? Andy’s experiments
                  drwxrwxr-x 0 andy andy 4096 1970-01-01 01:00 baskets
                  drwxrwxr-x 0 andy andy 4096 1970-01-01 01:00 Boots
                  drwxrwxr-x 0 andy andy 4096 1970-01-01 01:00 categories
                  drwxrwxr-x 0 andy andy 4096 1970-01-01 01:00 CMS
                  drwxrwxr-x 0 andy andy 4096 1970-01-01 01:00 Content
                  drwxrwxr-x 0 andy andy 4096 1970-01-01 01:00 Demo Content
                  drwxrwxr-x 0 andy andy 4096 1970-01-01 01:00 ditto
                  drwxrwxr-x 0 andy andy 4096 1970-01-01 01:00 Do Not Use
                  drwxrwxr-x 0 andy andy 4096 1970-01-01 01:00 Forms
                  drwxrwxr-x 0 andy andy 4096 1970-01-01 01:00 Joma
                  drwxrwxr-x 0 andy andy 4096 1970-01-01 01:00 Joma Templates
                  drwxrwxr-x 0 andy andy 4096 1970-01-01 01:00 Links
                  drwxrwxr-x 0 andy andy 4096 1970-01-01 01:00 Login
                  drwxrwxr-x 0 andy andy 4096 1970-01-01 01:00 Manager and Admin
                  drwxrwxr-x 0 andy andy 4096 1970-01-01 01:00 Navigation
                  drwxrwxr-x 0 andy andy 4096 1970-01-01 01:00 Product
                  drwxrwxr-x 0 andy andy 4096 1970-01-01 01:00 Product Images
                  drwxrwxr-x 0 andy andy 4096 1970-01-01 01:00 Product Templates
                  drwxrwxr-x 0 andy andy 4096 1970-01-01 01:00 Search
                  drwxrwxr-x 0 andy andy 4096 1970-01-01 01:00 Selectors
                  drwxrwxr-x 0 andy andy 4096 1970-01-01 01:00 Shop
                  drwxrwxr-x 0 andy andy 4096 1970-01-01 01:00 Sizes
                  drwxrwxr-x 0 andy andy 4096 1970-01-01 01:00 Style Templates
                  drwxrwxr-x 0 andy andy 4096 1970-01-01 01:00 Sub-item
                  drwxrwxr-x 0 andy andy 4096 1970-01-01 01:00 template
                  drwxrwxr-x 0 andy andy 4096 1970-01-01 01:00 Template elements
                  drwxrwxr-x 0 andy andy 4096 1970-01-01 01:00 Test
                  drwxrwxr-x 0 andy andy 4096 1970-01-01 01:00 TVs for Internal Use Only
                  drwxrwxr-x 0 andy andy 4096 1970-01-01 01:00 Uncategorized
                  drwxrwxr-x 0 andy andy 4096 1970-01-01 01:00 wayfinder
                  andy@fafnir:~/sportworks/db/sportwor_db/Chunks$ cd Template\ elements/
                  andy@fafnir:~/sportworks/db/sportwor_db/Chunks/Template elements$ ls -la
                  total 0
                  drwxrwxr-x 0 andy andy 4096 1970-01-01 01:00 .
                  drwxrwxr-x 0 andy andy 4096 1970-01-01 01:00 ..
                  -rw-rw-r-- 0 andy andy 330 1970-01-01 01:00 navbar.html
                  -rw-rw-r-- 0 andy andy 570 1970-01-01 01:00 site_footer.html
                  -rw-rw-r-- 0 andy andy 2316 1970-01-01 01:00 site_header.html
                  andy@fafnir:~/sportworks/db/sportwor_db/Chunks/Template elements$ vi site_header.html

                  All I did in vi was just save the file.

                  "site_header.html" [dos] 46L, 2316C written
                  andy@fafnir:~/sportworks/db/sportwor_db/Chunks/Template elements$ ls -la
                  total 0
                  drwxrwxr-x 0 andy andy 4096 1970-01-01 01:00 .
                  drwxrwxr-x 0 andy andy 4096 1970-01-01 01:00 ..
                  -rw-rw-r-- 0 andy andy 330 1970-01-01 01:00 navbar.html
                  -rw-rw-r-- 0 andy andy 570 1970-01-01 01:00 site_footer.html
                  andy@fafnir:~/sportworks/db/sportwor_db/Chunks/Template elements$

                  And the file has gone.

                  I’ve got the logs for this, but they’re a bit long. ould it be better for me to post them to GitHub?

                  A.
                    • 26903
                    • 1,336 Posts
                    OK, try the same thing but not using vi or vim, or, turn off the ’back up file’ option in these editors, so you don’t try and create files ending with ’~’. You could use nano or joe here for instance.
                      Use MODx, or the cat gets it!
                      • 26903
                      • 1,336 Posts
                      OK, just got round to checking this, it’s how vi vim saves things, to get round this simply passthru any temp files. ie those with ’~’ usually denote this, change
                      $passthrudirs = array(0=>'.svn',
                                            1=>'checkoutmode');
                      

                      to
                      $passthrudirs = array(0=>'.svn',
                                            1=>'checkoutmode',
                                            2=>'~');
                      


                      This works here. I need to put this is in as a default really.
                        Use MODx, or the cat gets it!