Step 8) Albums System Alterations (can't create filesystem for attachements)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • McMendo
    Senior Member
    • Aug 2006
    • 110
    • 3.6.x

    [Suite] Step 8) Albums System Alterations (can't create filesystem for attachements)

    The following problem while trying to upgrade 3.8.4 PL1 to 4.0.0 PL1, while running the script upgrade_400a1.php?step=8 :
    Step 8) Albums System Alterations
    Moving picture 1 into the Attachment System


    vBulletin Message
    Could not create file system directory to hold your attachment.
    I'm using a database dump from which I had removed all hacks and styles.

    After the error, I've created a attachments/ directory and 'chmod 777' it. Same error.
    I've also tried moving in the old attachments/ directory from a backup of 3.8.1 filesystem (and 'chmod -R 777'). Same error again.

    On AdminCP (in 3.8.4) it reports that attachments are in the database, not in the filesystem.
  • McMendo
    Senior Member
    • Aug 2006
    • 110
    • 3.6.x

    #2
    Originally posted by McMendo
    After the error, I've created a attachments/ directory and 'chmod 777' it. Same error.
    But I've noticed that it creates a attachments/1/ directory.

    Comment

    • redtailboas
      Member
      • Jan 2005
      • 34
      • 3.8.x

      #3
      Anyone find a solution to this? Happened to me today as well.

      Comment

      • Trevor Hannant
        vBulletin Support
        • Aug 2002
        • 24358
        • 5.7.X

        #4
        Do you have Safe Mode enabled or any open_basedir restrictions in effect?
        Vote for:

        - Admin Settable Paid Subscription Reminder Timeframe (vB6)
        - Add Admin ability to auto-subscribe users to specific channel(s) (vB6)

        Comment

        • redtailboas
          Member
          • Jan 2005
          • 34
          • 3.8.x

          #5
          This is a port of an existing 3.8.4 site. Site was fairly large, lots of attachments. It spent quite a while "converting" the attachments.

          Restored database and forum directory to new site on my same server/host. (I have a second VB license for this test/new site)'

          This is the error and the url at the time of the error


          Click image for larger version

Name:	screen-capture.jpg
Views:	1
Size:	31.3 KB
ID:	3677302

          http://**sitenamehere**/install/upgr...0a1.php?step=8
          Last edited by redtailboas; Thu 24 Dec '09, 6:13pm.

          Comment

          • McMendo
            Senior Member
            • Aug 2006
            • 110
            • 3.6.x

            #6
            safe_mode = Off
            open_basedir = [empty]

            Comment

            • McMendo
              Senior Member
              • Aug 2006
              • 110
              • 3.6.x

              #7
              Originally posted by McMendo
              safe_mode = Off
              open_basedir = [empty]
              This was in the php.ini configuration.

              In /usr/local/www/vhosts/mysite.com/conf/httpd.include I have:
              Code:
              <Directory /usr/local/www/vhosts/mysite.com/httpdocs>
                      <IfModule sapi_apache2.c>
                              php_admin_flag engine on
                              php_admin_flag safe_mode on
                              php_admin_value open_basedir "/usr/local/www/vhosts/mysite.com/httpdocs:/tmp"
                      </IfModule>
                      <IfModule mod_php5.c>
                              php_admin_flag engine on
                              php_admin_flag safe_mode on
                              php_admin_value open_basedir "/usr/local/www/vhosts/mysite.com/httpdocs:/tmp"
                      </IfModule>
                              Options -Includes -ExecCGI
                      </Directory>
              I've set to "off" both there and now whenever I click on "next step" it asks me if I want to open or to download upgrade_400a1.php

              After reverting the configuration, the same behaviour (asks to open or download) persists.

              Comment

              • McMendo
                Senior Member
                • Aug 2006
                • 110
                • 3.6.x

                #8
                From errors_log:
                Code:
                [Fri Dec 25 06:36:18 2009] [error] [client xx.xxx.xx.xxx] PHP Warning:  fopen() [<a href='function.fopen'>function.fopen</a>]: SAFE MODE Restriction in effect.  The script whose uid is 10007 is not allowed to access /usr/local/www/vhosts/mysite.com/httpdocs/vb4test/attachments/1/2/1/9 owned by uid 80 in /usr/local/www/vhosts/mysite.com/httpdocs/vb4test/includes/class_dm_attachment.php on line 269, referer: http://mysite.com/vb4test/install/upgrade_400a1.php?step=7
                [Fri Dec 25 06:36:18 2009] [error] [client xx.xxx.xx.xxx] PHP Warning:  fopen(/usr/local/www/vhosts/mysite.com/httpdocs/vb4test/attachments/1/2/1/9/922.attach) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: No such file or directory in /usr/local/www/vhosts/mysite.com/httpdocs/vb4test/includes/class_dm_attachment.php on line 269, referer: http://mysite.com/vb4test/install/upgrade_400a1.php?step=7

                Comment

                • aaraam
                  Member
                  • Oct 2005
                  • 77
                  • 3.8.x

                  #9
                  I also have same error still there is no solutions
                  Now I tried quite lot

                  Comment

                  • McMendo
                    Senior Member
                    • Aug 2006
                    • 110
                    • 3.6.x

                    #10
                    Since no actual help is offered for this problem I have skipped step 8 and run the upgrade_400a1.php?step=9 script manually.

                    Comment

                    • aaraam
                      Member
                      • Oct 2005
                      • 77
                      • 3.8.x

                      #11
                      I can solve my issue
                      We help you acquire the perfect domain for your site. Affordable payment options. Quick and responsive customer support available.

                      Comment

                      • af1racing
                        Member
                        • Jul 2006
                        • 64

                        #12
                        I am having the same issue, please let us know how you solved it.

                        Thank you

                        Comment

                        • aaraam
                          Member
                          • Oct 2005
                          • 77
                          • 3.8.x

                          #13
                          only advice if this happen first u need re-store fresh backup with new database and install vb3.8.4 remove all your hacks if installed than run again upgrade to vb4

                          Comment

                          • McMendo
                            Senior Member
                            • Aug 2006
                            • 110
                            • 3.6.x

                            #14
                            This is how I've fixed most of my issues, including this one. The database is 6 years old and it had paths from old servers written all over it. I had to replace these old paths with the current ones.

                            For example, I've replaced the old paths
                            /usr/local/psa/home/vhosts/mysite.com/...
                            with the current
                            /usr/local/www/vhosts/mysite.com/...
                            Another problem with paths was that until 3.8.x I had vbulletin forums installed in
                            .../mysite.com/forum (http://mysite.com/forum/)
                            and now with vbulletin suite 4.0.x I've moved to
                            .../mysite.com (http://mysite.com/)
                            So I also had to replace those in the database backup file, before restoring it.

                            Just in case the edited dump would merge with the working database, I had the working database deleted from mysql before restoring.

                            HTH

                            Comment

                            • redtailboas
                              Member
                              • Jan 2005
                              • 34
                              • 3.8.x

                              #15
                              Originally posted by McMendo
                              This is how I've fixed most of my issues, including this one. The database is 6 years old and it had paths from old servers written all over it. I had to replace these old paths with the current ones.

                              For example, I've replaced the old paths
                              /usr/local/psa/home/vhosts/mysite.com/...
                              with the current
                              /usr/local/www/vhosts/mysite.com/...
                              Another problem with paths was that until 3.8.x I had vbulletin forums installed in
                              .../mysite.com/forum (http://mysite.com/forum/)
                              and now with vbulletin suite 4.0.x I've moved to
                              .../mysite.com (http://mysite.com/)
                              So I also had to replace those in the database backup file, before restoring it.

                              Just in case the edited dump would merge with the working database, I had the working database deleted from mysql before restoring.

                              HTH
                              This describes my installation almost exactly.

                              What database tables did you have to replace the paths in? Or is there a query you ran to discover them?

                              Thanks

                              Comment

                              widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
                              Working...