• Resolved ekalem02

    (@ekalem02)


    Hey, I wanted to migrate my Site but this error happened:

    [STEP] [2021-06-23 13:14:26] Initializing restore process
    [STEP] [2021-06-23 13:14:28] Looking for PHP CLI executable file.
    [WARN] [2021-06-23 13:14:28] Could not find proper PHP CLI executable, this process may be unstable.
    [SUCCESS] [2021-06-23 13:14:28] Restore process responded
    [SUCCESS] [2021-06-23 13:14:28] Locking migration process
    [STEP] [2021-06-23 13:14:28] Initializing restore process
    [INFO] [2021-06-23 13:14:28] Backup & Migration version: 1.1.1
    [INFO] [2021-06-23 13:14:28] Initializing custom error handler
    [INFO] [2021-06-23 13:14:28] Site which will be restored: https://byograph.de
    [INFO] [2021-06-23 13:14:28] PHP Version: 7.4.20
    [INFO] [2021-06-23 13:14:28] Web server: Apache
    [INFO] [2021-06-23 13:14:28] Max execution time (in seconds): 259200
    [STEP] [2021-06-23 13:14:28] Free space checking...
    [INFO] [2021-06-23 13:14:28] Checking if there is enough amount of free space
    [INFO] [2021-06-23 13:14:28] Requires at least 1472871340 bytes. [1.37 GB]
    [INFO] [2021-06-23 13:14:28] Disk free space function is not disabled - using...
    [INFO] [2021-06-23 13:14:28] Checking this path/partition: /homepages/1/d875584198/htdocs/app875756123/wp-content/backup-migration/backups
    [SUCCESS] [2021-06-23 13:14:28] There is 1,111,504.05 MB free. [1.06 TB]
    [SUCCESS] [2021-06-23 13:14:28] Great! We have enough space.
    [SUCCESS] [2021-06-23 13:14:28] Confirmed, there is enough space on the device, checked: 1472871340 bytes.
    [INFO] [2021-06-23 13:14:28] Making temporary directory
    [STEP] [2021-06-23 13:14:28] Scanning archive...
    [ERROR] [2021-06-23 13:14:28] Something bad happened...
    [ERROR] [2021-06-23 13:14:28] PHP-ZIP: Directory not found, and unable to create it
    [ERROR] [2021-06-23 13:14:28] 578 @ /homepages/1/d875584198/htdocs/app875756123/wp-content/plugins/backup-backup/includes/zipper/src/zip.php
    [ERROR] [2021-06-23 13:14:28] Something bad happened on PHP side.
    [ERROR] [2021-06-23 13:14:28] Error message: RecursiveDirectoryIterator::__construct(/homepages/1/d875584198/htdocs/app875756123//backup-migration_1624454068): failed to open dir: No such file or directory
    [ERROR] [2021-06-23 13:14:28] Error file/line: /homepages/1/d875584198/htdocs/app875756123/wp-content/plugins/backup-backup/includes/extracter/extract.php|151
    [STEP] [2021-06-23 13:14:28] Aborting & unlocking restore process...
    [DOWNLOAD GENERATED] File downloaded on (server time): 2021-06-23 13:14:30
    [DOWNLOAD GENERATED] Last update (seconds): 4 seconds ago
    [DOWNLOAD GENERATED] Last update (date): 2021-06-23 13:14:26
Viewing 15 replies - 1 through 15 (of 19 total)
  • Plugin Author iClyde

    (@iclyde)

    Hi @ekalem02

    This error happens when your root directory is not writable by PHP.
    This issue can also give you error when you’ll try to update WordPress core.

    In order to fix it you’ll need:
    a) FTP or SFTP access with admin/root privileges.
    b) SSH access with root privileges or folder owner.
    c) Contact with your hosting provider to fix it for you if you don’t have access.

    Let me know if you can do any of above, then I’ll provide more details ??
    Thank you!

    Thread Starter ekalem02

    (@ekalem02)

    Thanks for the answer! ??

    I have SFTP access. Is that enough, or do I also need SSH access?

    Plugin Author iClyde

    (@iclyde)

    Hi @ekalem02

    SFTP is basically SSH access.
    The question now is if you have enough privileges to modify the folder rights.

    Could you please try to find this directory in your SFTP application (e.g. FileZilla):
    /homepages/1/d875584198/htdocs/app875756123

    Then right click and from its context menu choose “File permissions…” once it open new window make sure the numeric value is 777 (you can revert it later).

    That should allow our plugin to make new directory here which will be used for the restore process.

    After you save new permissions please make sure it changed, if not that means you don’t have enough privileges to do so, you can try with SSH after it.

    Thread Starter ekalem02

    (@ekalem02)

    Hey,

    I tried to find the directory you told me, but there are hundreds of directorys in the FTP. Is there a way to find it? I tried it with f3 (search) but this didnt work out either.

    Plugin Author iClyde

    (@iclyde)

    Hi @ekalem02

    Hm, that does not sounds good, that probably means your site is on server with many other users.

    Could you please let me know which FTP application you use?
    Is it WinSCP or Total Commander (as only them have F3 for search if I am right)?

    Thread Starter ekalem02

    (@ekalem02)

    I use Filezilla. F3 worked there for me.

    Plugin Author iClyde

    (@iclyde)

    Ah, here you can simply use ctrl+f or cmd+f (if you’re on Mac).

    It will hide other folders this way in real-time.

    Thread Starter ekalem02

    (@ekalem02)

    Thanks for the tip! ??

    Unfortunately this doesn’t work either.

    Plugin Author iClyde

    (@iclyde)

    Hmm :/

    What’s your hosting provider?
    I’ll check their plans and if they can offer the help we need here.

    Thread Starter ekalem02

    (@ekalem02)

    IONOS is my hosting provider.

    From the reviews I saw, it seems like they have a very good support. I can ask there to let them do what you said to me ??

    Plugin Author iClyde

    (@iclyde)

    Hi @ekalem02

    I contacted them and explained the issue why we need it.
    And the reviews were right, they’re very friendly and send me solution.

    By default on their hosting, system manages everything for you.
    I.e. the updates for example.

    If you want full access you can switch to standard hosting which should solve the issue (as they say). For this you need to contact them via live chat anyway.

    Quote from the chat:

    I can initiate it here on my end but I need a confirmation from the account holder before switching it to standard.

    Thread Starter ekalem02

    (@ekalem02)

    Oh wow, thank you very very much!

    I changed it to standard hosting and have full access now. Should I now just try to do the Migration again, or look for the directory you told about?

    Plugin Author iClyde

    (@iclyde)

    Hi @ekalem02

    I think you has different directory now anyway.
    Please check if the folder is writable you can do that in:
    https://<your domain>/wp-admin/site-health.php?tab=debug

    At the bottom you can find “Filesystem Permissions” then find “The main WordPress directory” it should be “Writable”

    If it shows that it’s writable then please try again with the restore ??

    Thread Starter ekalem02

    (@ekalem02)

    Hey,

    Yeah it seems to work now. Thank you so much! But now I am stuck at 61% for a while now ??

    Plugin Author iClyde

    (@iclyde)

    What’s the size of this backup?
    Could you please see on which file it ended?

    If it’s postmeta.sql or posts.sql it takes a bit more time usually.
    You can check it by using horizontal scroll in the progress window (it’s at the end of the line).

    But if it won’t continue in the next 5 minutes I’ll think the restore process was aborted by Web Server for example.

Viewing 15 replies - 1 through 15 (of 19 total)
  • The topic ‘Migration (Restore) failed’ is closed to new replies.