• Backup log ist telling “<backup_dir> is not within the allowed path …”, but it is in allowed path. I think this error occures since I updated BackWPup to version 3.4.1, because it happens since archive name has to be prefixed with backwpup_ebc97501_ (files before worked).
    Archives are created and therefore I’m not sure what not worked.

    PHP was updated last time month ago and next time after backup didn’t work first time.

    Thanks in advance,
    Tom

    =======================================================
    End of log:
    [16-Aug-2017 17:56:47] Backup wurde erstellt.
    [16-Aug-2017 17:56:47] Archivgr??e ist 43,83 MB
    [16-Aug-2017 17:56:47] 4278 Dateien mit 72,45 MB im Archiv.
    [16-Aug-2017 17:56:47] FEHLER: Ausnahme eingefangen in RuntimeException: SplFileInfo::isWritable(): open_basedir restriction in effect. File(/NFS/backup/COWTUX/Websites/WP-Backups/Budokan/..) is not within the allowed path(s): (/var/www/budokan/:/NFS/backup/COWTUX/Websites/WP-Backups/Budokan/:/usr/share/phpmyadmin/)
    [16-Aug-2017 17:56:48] FEHLER: Ausnahme eingefangen in RuntimeException: SplFileInfo::isWritable(): open_basedir restriction in effect. File(/NFS/backup/COWTUX/Websites/WP-Backups/Budokan/..) is not within the allowed path(s): (/var/www/budokan/:/NFS/backup/COWTUX/Websites/WP-Backups/Budokan/:/usr/share/phpmyadmin/)
    [16-Aug-2017 17:56:48] FEHLER: Ausnahme eingefangen in RuntimeException: SplFileInfo::isWritable(): open_basedir restriction in effect. File(/NFS/backup/COWTUX/Websites/WP-Backups/Budokan/..) is not within the allowed path(s): (/var/www/budokan/:/NFS/backup/COWTUX/Websites/WP-Backups/Budokan/:/usr/share/phpmyadmin/)
    [16-Aug-2017 17:56:48] FEHLER: Schritt abgebrochen: zu viele Versuche!
    [16-Aug-2017 17:56:48] 1. Versuche, die Datenbank zu prüfen …
    [16-Aug-2017 17:56:48] Datenbank-Check fertig!
    [16-Aug-2017 17:56:48] Eine alte Log-Datei gel?scht
    [16-Aug-2017 17:56:48] FEHLER: Job mit Fehlern beendet in 15 Sekunden. Um eine korrekte Ausführung zu gew?hrleisten, musst du die Fehler beheben.

    ===================================================
    Debug Info

    WordPress-Version: 4.8.1
    BackWPup-Version: 3.4.1
    PHP-Version: 7.0.22-0ubuntu0.16.04.1 (64bit)
    MySQL-Version: 5.7.19-0ubuntu0.16.04.1
    cURL-Version: 7.47.0
    cURL-SSL-Version: OpenSSL/1.0.2g
    WP-Cron-URL:: https://www.XXX.de/wp-cron.php
    Verbindung zum Server selbst:: Response-Test OK
    Document root: /var/www/budokan/wp_prod/
    Temp-Verzeichnis:: /var/www/budokan/wp_prod/wp-content/temp/backwpup-ebc975/
    Protokoll-Verzeichnis:: /var/www/budokan/wp_prod/wp-content/backwpup-98372-logs/
    Server: Apache/2.4.18 (Ubuntu)
    Betriebssystem: Linux
    PHP-SAPI: apache2handler
    Aktueller PHP-User: www-data
    Maximale Skript-Laufzeit: 30 Sekunden
    Alternative WP Cron: Aus
    WP Cron abgeschaltet: Aus
    Verzeichnis-Rechte: 0755
    Server-Zeit: 17:0
    Zeit der Website: 18:00
    Zeitzone der Website:
    Zeitverschiebung der Website: 1 Stunden
    Sprache der Website: de-DE
    Zeichensatz des MySQL-Clients: utf8
    PHP-Memory-Limit: 256M
    WordPress-Memory-Limit: 40M
    Maximales WordPress-Memory-Limit: 256M
    Benutzter Speicher: 6,00 MB
    Deaktivierte PHP-Funktionen:: pcntl_alarm, pcntl_fork, pcntl_waitpid, pcntl_wait, pcntl_wifexited, pcntl_wifstopped, pcntl_wifsignaled, pcntl_wifcontinued, pcntl_wexitstatus, pcntl_wtermsig, pcntl_wstopsig, pcntl_signal, pcntl_signal_dispatch, pcntl_get_last_error, pcntl_strerror, pcntl_sigprocmask, pcntl_sigwaitinfo, pcntl_sigtimedwait, pcntl_exec, pcntl_getpriority, pcntl_setpriority,
    Geladene PHP-Erweiterungen:: Core, PDO, Phar, Reflection, SPL, SimpleXML, Zend OPcache, apache2handler, calendar, ctype, curl, date, dom, exif, fileinfo, filter, ftp, gd, gettext, hash, iconv, imagick, imap, json, libxml, mbstring, mcrypt, mysqli, mysqlnd, openssl, pcre, pdo_mysql, posix, readline, session, shmop, soap, sockets, standard, sysvmsg, sysvsem, sysvshm, tokenizer, wddx, xml, xmlreader, xmlwriter, xsl, zip, zlib

    The page I need help with: [log in to see the link]

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Support happyAnt

    (@duongcuong96)

    Hi @,
    Could you please contact your hosting provider and ask them something like that:

    “Hi, I have an error on my WordPress site, it shows:
    open_basedir: backup dir is not within the allowed path

    This plugin has nothing to do with this problem.
    Hope that help, if it’s not, please comment below and we will go further ??

    Thread Starter tronic69

    (@tronic69)

    Hi,
    why should it depend on hosting provider or OS, when I have a virtual root server and have changed nothing. This is the relevant line in my vhost config which for one year (!!!) on that server:

    php_admin_value open_basedir /var/www/budokan/:/NFS/backup/COWTUX/Websites/WP-Backups/Budokan/

    Take a look at the error message and find the error …

    FEHLER: Ausnahme eingefangen in RuntimeException: SplFileInfo::isWritable(): open_basedir restriction in effect. 
                  File(/NFS/backup/COWTUX/Websites/WP-Backups/Budokan/..) is not within the allowed path(s): 
    (/var/www/budokan/:/NFS/backup/COWTUX/Websites/WP-Backups/Budokan/)

    The problem are the two dots at the end of the path used by plugin (since last version?).
    Path “…/WP-Backups/Budokan/..” => WP-Backups/
    and not the sub-directory it should be (like before), because this plugin for this domain should only access sub-directory for this domain and not directory above.

    As I told in my first post this error happens since plugin uses prefix backwpup_ebc97501_ for archive names and therefore this was introduced this month for me – with an update of the plugin which changed behavior for archive names!

    After changing my vhost config to this everything is working without error, but this ist not what I expect:
    php_admin_value open_basedir /var/www/budokan/:/NFS/backup/COWTUX/Websites/WP-Backups/

    Check file handling in plugin, please. I think there was changed something.

    =========================================
    Bakup files on my server:

    ROOT @ cowtux => /NFS/backup/COWTUX/Websites/WP-Backups/Budokan
    # > ls -ldhtr *
    -rw-r--r-- 1 www-data www-data   1 2012-08-23 11:20 index.php
    -rw-r--r-- 1 www-data www-data 41M 2017-04-24 04:01 Budokan_backwpup_2017-04-24_03-00-48.zip
    -rw-r--r-- 1 www-data www-data 41M 2017-05-01 04:21 Budokan_backwpup_2017-05-01_03-20-50.zip
    -rw-r--r-- 1 www-data www-data 42M 2017-05-08 04:05 Budokan_backwpup_2017-05-08_03-05-08.zip
    -rw-r--r-- 1 www-data www-data 42M 2017-05-15 04:02 Budokan_backwpup_2017-05-15_03-01-51.zip
    -rw-r--r-- 1 www-data www-data 44M 2017-05-22 04:04 Budokan_backwpup_2017-05-22_03-04-21.zip
    -rw-r--r-- 1 www-data www-data 44M 2017-05-29 04:01 Budokan_backwpup_2017-05-29_03-01-09.zip
    -rw-r--r-- 1 www-data www-data 44M 2017-06-05 04:01 Budokan_backwpup_2017-06-05_03-00-47.zip
    -rw-r--r-- 1 www-data www-data 44M 2017-06-12 04:02 Budokan_backwpup_2017-06-12_03-01-29.zip
    -rw-r--r-- 1 www-data www-data 44M 2017-06-19 04:01 Budokan_backwpup_2017-06-19_03-00-13.zip
    -rw-r--r-- 1 www-data www-data 44M 2017-06-26 04:01 Budokan_backwpup_2017-06-26_03-00-24.zip
    -rw-r--r-- 1 www-data www-data 44M 2017-07-03 04:00 Budokan_backwpup_2017-07-03_03-00-15.zip
    -rw-r--r-- 1 www-data www-data 44M 2017-07-10 04:01 Budokan_backwpup_2017-07-10_03-01-13.zip
    -rw-r--r-- 1 www-data www-data 44M 2017-07-17 04:01 Budokan_backwpup_2017-07-17_03-01-10.zip
    -rw-r--r-- 1 www-data www-data 44M 2017-07-24 04:01 Budokan_backwpup_2017-07-24_03-00-33.zip
    -rw-r--r-- 1 www-data www-data 44M 2017-07-31 04:01 Budokan_backwpup_2017-07-31_03-00-11.zip
    -rw-r--r-- 1 www-data www-data 44M 2017-08-07 04:00 backwpup_ebc97501_Budokan_backwpup_2017-08-07_03-00-16.zip
    -rw-r--r-- 1 www-data www-data 44M 2017-08-14 04:01 backwpup_ebc97501_Budokan_backwpup_2017-08-14_03-01-08.zip
    -rw-r--r-- 1 www-data www-data 44M 2017-08-16 18:31 backwpup_ebc97501_Budokan_backwpup_2017-08-16_17-31-18.zip
    -rw-r--r-- 1 www-data www-data 44M 2017-08-16 18:40 backwpup_ebc97501_Budokan_backwpup_2017-08-16_17-39-48.zip
    -rw-r--r-- 1 www-data www-data 44M 2017-08-16 18:43 backwpup_ebc97501_Budokan_backwpup_2017-08-16_17-42-59.zip
    -rw-r--r-- 1 www-data www-data 44M 2017-08-16 18:56 backwpup_ebc97501_Budokan_backwpup_2017-08-16_17-56-33.zip
    -rw-r--r-- 1 www-data www-data 44M 2017-08-17 17:17 backwpup_ebc97501_Budokan_backwpup_2017-08-17_16-16-57.zip
    -rw-r--r-- 1 www-data www-data 44M 2017-08-17 17:18 backwpup_ebc97501_Budokan_backwpup_2017-08-17_16-17-59.zip
    -rw-r--r-- 1 www-data www-data 44M 2017-08-17 17:21 backwpup_ebc97501_Budokan_backwpup_2017-08-17_16-21-36.zip
    • This reply was modified 7 years, 3 months ago by tronic69.

    Hi @tronic69,

    I think this might be a bug in BackWPup.

    Try changing line 247 of inc/class-destination-folder.php.

    Currently it is this:

    if ( $file->isWritable() && ! $file->isDir() && ! $file->isLink() ) {

    Please change it to this:

    if ( ! $file->isDot() && $file->isWritable() && ! $file->isDir() && ! $file->isLink() ) {

    Please let us know if that works. If so it’ll be fixed in the next version.

    Thread Starter tronic69

    (@tronic69)

    Hi Brandon,

    in my plugin it was line 200. ??

    I changed the line and put back my vhost config to old state and now it worked without any trouble.
    So, you can put this fix into next version.

    Thanks for quick support and have a nice weekend!

    Best regards,
    Tom

    Thanks @tronic69, I’m so happy it worked for you. ?? Let us know if you need anything else in the future.

    Thread Starter tronic69

    (@tronic69)

    Hello,

    it seems this bug was reintroduced in Version 3.4.4.

    Content of line 200 in /inc/class-destination-folder.php:
    if ( $file->isWritable() && ! $file->isDir() && ! $file->isLink() ) {

    After changing this line to following it worked again:
    if ( ! $file->isDot() && $file->isWritable() && ! $file->isDir() && ! $file->isLink() ) {

    I think you should check your RCS/repository. Maybe someone checked out an old code. So, please fix it in next version.

    Thanks in advance,
    Tom

    I have just figured out that backups on a client site haven’t since October 2017. Same problem like described here. I changed /inc/class-destination-folder.php with no luck. This is the only installation where this error occurs. I have no idea what’s going on.

    Thread Starter tronic69

    (@tronic69)

    Every day the marmot greets … updated to version 3.5.1 (in WordPress 4.9.6) and *bang* the error is back.

    It seems like it’s another root cause this time, because I checked file class-destination-folder.php and my bugfix is still there.

    Any idea why?

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘open_basedir: backup dir is not within the allowed path’ is closed to new replies.