Wordpress Files Disappearing off Linux Container

GGN 0 Reputation points
2023-10-06T00:58:17.52+00:00

Hi, I am testing migrating a Wordpress website to Azure and contents of my wp-contents folder are randomly disappearing. It happened two days in a row, once all the themes and plugins were wiped, and the next just part of the themes folder.

I'm using the basic plan, Linux VM with flexible SQL db. Migrated by:

-imported SQL files to phpmyadmin

-git cloned wp files in SSH and moved to /var/www/wordpress/wp-contents

File system storage showed I had used 1gb/1gb, wondering if when the vm restarts it wiped some data from being over my limit? but I couldn't find anything confirming that.

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
9,014 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Amira Bedhiafi 33,071 Reputation points Volunteer Moderator
    2023-10-06T11:55:37.7433333+00:00

    If your file system storage is showing that you've used 1GB out of 1GB, it suggests that the disk is full (you need to get rid of unwanted stuffs) . Systems can behave erratically when the disk is full, which can lead to file deletions, especially on system restarts. However, it's important to note that reaching disk capacity wouldn't inherently cause files to delete.

    1 person found this answer helpful.
    0 comments No comments

  2. Prrudram-MSFT 28,201 Reputation points Moderator
    2023-10-09T05:25:10+00:00

    Hi @GGN

    Thank you for reaching out to the Microsoft Q&A platform.

    Based on the information you provided, it is difficult to determine the exact cause of the issue. However, I can provide you with some general guidance that may help you troubleshoot the problem.

    First, it is important to note that the wp-contents folder contains all of your WordPress themes, plugins, and media files. If any of these files are missing, it can cause issues with your website.

    Most common cause of the issue could be related to the file system storage limit. If you have exceeded your storage limit, it is possible that some of your files may have been deleted. You can check your storage usage in the Azure portal to see if this is the case**.**

    Another possible cause of the issue could be related to the migration process itself. It is possible that some files were not properly transferred during the migration, which could cause issues with your website.

    To troubleshoot the issue, I would recommend checking your storage usage in the Azure portal to see if you have exceeded your limit. If you have, you may need to increase your storage limit or remove some files to free up space.

    Additionally, you may want to consider using a different migration method to transfer your WordPress files to Azure. For example, you could try using the All-In-One WP Migration plugin, which is designed to simplify the migration process and ensure that all files are properly transferred.

    I hope this information helps! Let me know if you have any other questions or concerns.

    If this does answer your question, please accept it as the answer as a token of appreciation.

    1 person found this answer helpful.
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.