Re: old website keep reappering in /var/www/html

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



From what your describing, a few things to check, some may be overly obvious so I apologize if you have checked these:

1.  Did you clear your browser cache?
2.  Is there a proxy server that has an old version of the site cached on it, and it's serving up the old site content instead of a refresh? 3.  Are there multiple web servers hosting the content in a cluster and you only rsync'd to one of them, and requests for connections is doing a round robin approach? 4.  Is there a backup mechanism or security appliance that is checking for the presence of pages on the site, doing a checksum or a diff or something, and if things have changed, then it's putting everything back to it's secured copy, perhaps an antimalware security tool or auto backup tool or some other tool reaching into the server and doing this check.

Check the host names, IP addresses, mac addresses when you see the inconsistent data, and check for your bio folder w/ it present and w/o it present see if anything changes.

Set up a new CentOS VPS w/ a LAMP stack with the same base packages installed as the existing VM (don't clone the existing one), then put the new site there and see if it's happening there.  If it isn't then some kind of security mechanism is checking the data and restoring a backup.

Just my 2 cents.

Chris


On 9/7/2023 1:19 PM, Marco Fioretti wrote:
Greetings,
absurd subject, but I don't know how else I could describe what is happening.
I have a small static website hosted on a Centos 7 VPS (that I'll update as soon as possible, but what follows is much more urgent, I must absolutely fix it asap).
The website is generated by Hugo. I run hugo on my computer, then rsync everything on the server, in the /var/www/html/hugo/MYWEBSITE folder.
Everything worked great for years.
This week I rebuilt the whole website almost from scratch, using a different hugo theme and updating many pages.
Then I ran rsync, checked the new website in my browser, jumping from page to page, and everything worked as expected: new theme, new content, new menus, everything.
2/3 minutes later, the OLD website reappeared, all of it, as if I had not ran rsync at all. For example, in the new website there is a new subfolder called "bio", that did not exist in the old version.

If I ssh to the server, cd to /var/www/html/hugo/MYWEBSITE  and run "ls -l" RIGHT AFTER running rsync, I see the "bio" subfolder. If I do "ls -l" 3 minutes later, the "bio" subfolder is no more.

I have repeated the rsync process 5/6 times before writing this email, and it's always the same. Every time I rsync, what I uploaded lasts 2/3 minutes, then the WHOLE folder on the server is erased and refilled with the previous full version of the website.

It's as if there were some hidden cron job somewhere that runs hugo on the OLD source files, but I can't find it. All the standard methods one can find by googling "how to list all cron jobs" don't show anything that may be the reason.
THANKS in advance for any help,
Marco
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
https://lists.centos.org/mailman/listinfo/centos

--
Christopher Wensink
IS Administrator
Five Star Plastics, Inc
1339 Continental Drive
Eau Claire, WI 54701
Office:  715-831-1682
Mobile:  715-563-3112
Fax:  715-831-6075
cwensink@xxxxxxxxxxxxxxxxxxxxxx
www.five-star-plastics.com

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
https://lists.centos.org/mailman/listinfo/centos




[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]


  Powered by Linux