Results 1 to 10 of 10

Thread: Files missing every wek

  1. #1
    emailgirls
    Guest

    Default Files missing every wek

    Hi,

    Week after week, the following files keep disappearing from my root directory:

    tmp

    banners

    id_wav

    id_ avi

    I have two web sites, and a test one, the same on all at the same time it happens.

    It is always the same files.

    Can this be the cron job that causes this or is it another cause that anyone may be familiar with?

    Kind regards

    Cheryll

    IQ 4.10001

  2. #2
    Administrator Smoge's Avatar
    Join Date
    Mar 2005
    Posts
    6,634
    Blog Entries
    5

    Default

    Rather strange - did you figure it out?

    No - I don't know of any standard aedating/dolphin cron job that would do this.

    Are you on a shared hosting account?

    What hosting company?

    Smoge
    ModMySite Administrator

    Problems? Questions? Need modifications or other help with your site?

    Open A Ticket , Send Us An Email Or Give Us A Telephone Call +1 518-632-4152.

  3. #3
    emailgirls
    Guest

    Default Files keep becoming missin every week

    Hi Smoge,

    Yes, cron job would not seem to be the issue.

    Host for web is the present host for the web site, like most it was recommended to by aedating, so the boss will just finish this period already paid for.

    Yes, the web site is on a shared server.

    Which files of ae is safe to put at 664 and still function correctly?

    By putting most files to chmod 664, would this help?

    Smoge, I thank you for responding to my question on this dilemma.


    Kind regards

    Cheryll

    IQ 4.10001

  4. #4
    ijk
    ijk is offline

    Join Date
    Apr 2005
    Posts
    340

    Default Hi

    You must be glad it is not your id_img folder.

    So firstly make sure you back up everything till you know why.

    Paste you list of CRON JOBS here may be useful to see.

    All the folders listed

    tmp
    banners
    id_wav
    id_ avi

    If you donot use banners all above folders seem to be the ones which get used infrequently. Wonder if you server is set up to delete files if not used for a certain period of time.

    Your probably donot need them much so you could try CHMOD THEM 644 and if they still disappear than you know it is being excuted by the server root .


    Test the theory.

    Back up all data make sure the site works after you have done it .
    AE Version 4.0 IQ

  5. #5
    emailgirls
    Guest

    Default Missing file folders every week

    Hi.

    First, I thank you for replying to my post.

    Yes, I am thankful my id_img folder was not removed.

    I think your theory is good in regards to non-active used and possible removal by the web site, but always the same identical ones folders, and the tmp file is being used daily I think, because of the temporary position of the photos from new signups that I see in it everyday within the tem folder.

    I make a structure and content sql back up every day (sometimes twice if many signups that day) but as I will also make folder backups of those specific folders as well, thanks for giving me that idea as well.

    The following is an example of the only two cron jobs that I have

    php -q /home/myusername/public_html/mysitename/periodic/cmd.php

    php -q /home/myusername/public_html/mysite/periodic/notifies.php

    Last: I CHMOD those applicable files to 644 to test out your theory as well.

    I thank you one again for your time to reply, and give me more ideas and possible casues of the files becoming missing.

    Kind regards

    Cheryll
    IQ 4.10001

  6. #6
    ijk
    ijk is offline

    Join Date
    Apr 2005
    Posts
    340

    Default hi

    Do give me an update.
    So after you CHMOD 644 do those files still disappear ?
    AE Version 4.0 IQ

  7. #7
    ijk
    ijk is offline

    Join Date
    Apr 2005
    Posts
    340

    Default cmd.php

    Code:
    function del_old_all_files()
    {
    // actually, $TMP_VIDEO_DIR now equal to $TMP_WAV_DIR and holds path to 'tmp' folder
        global $TMP_VIDEO_DIR;
    
        $num_tmp = 0;
        $num_del = 0;
    
        $file_life = 172800;  // two days
        $wdir = $TMP_VIDEO_DIR;
    
        if ( !( $lang_dir = opendir( $wdir ) ) )
            return false;
    
        for ( $i = 0; $lang_file = readdir( $lang_dir ); )
        {
    
                $diff = time() - filectime ( "$wdir$lang_file");
    
                if ( $diff > $file_life && '.' != $lang_file && '..' != $lang_file )
                {
    
    		unlink ("$wdir$lang_file");
                    ++$num_del;
                }
                ++$num_tmp;
    
        }
        closedir( $lang_dir );
    
        echo "\n- Temporary files check -\n";
    
        echo "Total temp files: $num_tmp\n";
        echo "Deleted temp files: $num_del\n";
    }

    is your code similar
    AE Version 4.0 IQ

  8. #8
    emailgirls
    Guest

    Default Missing file folders

    Hi,

    So far after changing the applicable files to 644, they are still there. I will continue to monitor this and if they become missing, I will report back.

    Thank you for that advice

    As far as the cmd.php in the periodic, the string that you comparison is the same with the following exceptions:

    after function del_old_all_files()

    You have this -

    // actually, $TMP_VIDEO_DIR now equal to $TMP_WAV_DIR and holds path to 'tmp' folder


    after after function del_old_all_files()

    I have this -

    global $TMP_DIR;

    $num_tmp = 0;
    $num_del = 0;


    where you have -

    $file_life = 172800; // two days
    $wdir = $TMP_VIDEO_DIR;

    I have -

    $file_life = 172800; // two days
    $wdir = $TMP_DIR;

    Besides that, the rest of the string within those parameters seems the same.

    It is very nice of you to followup about my missing file issue with me, thank you very much for that

    Kind regards

    Cheryll
    IQ4.10001

  9. #9
    ijk
    ijk is offline

    Join Date
    Apr 2005
    Posts
    340

    Default hi

    as long as the AVI and WAV files are chmod 644 user will not be able to upload video or voice messages.
    So once you have narrowed down the problem you can set them back to 777 or 755 if it works.
    I believe your cron jobs are excuted by root.
    AE Version 4.0 IQ

  10. #10
    emailgirls
    Guest

    Red face Missing file folders

    Hi again,

    Yes, I will change the CHMOD for wav & avi to 755. Thank your very much for you input, and the time / effort in assisting me

    If ever I have that problem comes back, then I will post it, but so far the file folders are still there.

    Best of luck with your site, and it's nice to have someone who cares enough to keep in tounch on a issue as you have done with me. You and the guys here are super, being here for all of us who are still in the dark on many areas of this ae is great for people like me.

    Thank you very much for being available here.

    Kind regards

    Cheryll
    IQ 4.10001

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Ray Modules missing
    By cg1 in forum Ray Community Widget Suite
    Replies: 5
    Last Post: 07-25-2008, 01:40 PM
  2. missing cc.php and inbox.php
    By skyrider in forum Bugs Dolphin 6.03 CLEAN
    Replies: 4
    Last Post: 01-16-2008, 12:12 AM
  3. Missing Photos
    By murr71 in forum Dolphin General Discussion v6.00 and above
    Replies: 0
    Last Post: 10-30-2007, 06:53 AM
  4. AE missing profiles
    By sheff in forum General Issues, Comments, Questions
    Replies: 1
    Last Post: 06-04-2007, 11:23 AM
  5. Missing Something Simple:
    By Ringodestarr in forum General Troubleshooting
    Replies: 4
    Last Post: 03-20-2007, 12:38 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •