Copy Folder Does Not Copy All Images

Status
Not open for further replies.
Operating System & Version
Linux
cPanel & WHM Version
Don't Know

PostAlmostAnything

Well-Known Member
Mar 3, 2020
91
2
8
Portland, Oregon
cPanel Access Level
Website Owner
I copied a huge folder of images from one directory to another using the copy tool in File Manager or so I thought. Turns out about 20% of the images were not copied. I have tried re-doing it and each time it throws no error but the size of the file never increases

Also, you don't have the real file size next to the file in the File Manager UI. You claim the file size is just 11.4 MB when in fact the file size is many GB probably over 20.

Is there a way to do fix this using File Manager or should I rely on FileZilla from now on?
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
13,427
2,113
363
cPanel Access Level
Root Administrator
Hey there! We don't recommend using FileZilla as they have been reported for installing malware recently. It would be best to use a different FTP client for your security.

Do you see any errors in the main cPanel log at /usr/local/cpanel/logs/error_log when you perform this work in File Manager? That's the first place I'd check to examine this behavior.
 

PostAlmostAnything

Well-Known Member
Mar 3, 2020
91
2
8
Portland, Oregon
cPanel Access Level
Website Owner
Is that the same error log which is accessible from the main cPanel dashboard? I ask because unless that log is accessible from cPanel either via the dashboard or File Manager I can't access it because I use a remote Linux server without a remote desktop.

I tried using FileZilla anyway but the files which failed to copy were not visible in the directory listing from the server. I know the files are there because when I search for the file names using File Manager they're found at their original locations. What might cause files to not be copied and prevent FileZilla from displaying them?

Also, please don't respond to people with /default/linux/location/file.ext and start responding with at least one link to how to access the same information from WHM/cPanel without having to use the terminal. If I wanted to use a command line I would not pay for cPanel.
 
Last edited:

PostAlmostAnything

Well-Known Member
Mar 3, 2020
91
2
8
Portland, Oregon
cPanel Access Level
Website Owner
Another problem, I just tried to access the home directory backup that I downloaded only to get a message from WinRAR calling the backup corrupt and when I dove into it there were entire sites missing. It is like your software began to download a backup to my local computer via the internet but stopped before it was finished.
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
13,427
2,113
363
cPanel Access Level
Root Administrator
I ask because unless that log is accessible from cPanel either via the dashboard or File Manager I can't access it because I use a remote Linux server without a remote desktop.
I don't understand this portion of the reply. Why would the lack of a remote desktop tool keep you from being able to see a log file?

Do you have full root access to the server, or only access to your specific cPanel account?
 

PostAlmostAnything

Well-Known Member
Mar 3, 2020
91
2
8
Portland, Oregon
cPanel Access Level
Website Owner
I don't understand this portion of the reply. Why would the lack of a remote desktop tool keep you from being able to see a log file?

Do you have full root access to the server, or only access to your specific cPanel account?
I have full root access but I'm not terribly familiar with Linux. I started off in .Net working with Windows but needed a PBN so I rented a Linux VPS, installed cPanel, and have used that to run the PBN. I don't know how to access files on the system unless I can use the UI you guys provide, so I need to know how to access that information by first logging into cPanel or WHM then navigating to wherever you guys display that stuff.
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
13,427
2,113
363
cPanel Access Level
Root Administrator
Unfortunately there isn't going to be a way to see those logs through either interface - you would have to use the command line to view that information.

There is the WHM >> Terminal option to use the command line through a browser, but you still need to be cautious as it is full root access directly to the server.

The file you'll want to explore is /usr/local/cpanel/logs/error_log. If you can recreate the error in real-time in one browser tab, while watching Terminal in another, you can just run this command to see if anything comes up in that log:

Code:
tail -f /usr/local/cpanel/logs/error_log
That will allow the log to scroll in real-time while you watch for anything related to appear.

I don't have any specific examples of what that could be - since this isn't normal behavior, I don't have a particular reference I can provide.

If you aren't able to perform that process, please submit a ticket to our team along with replication steps so we can take a look at the machine.
 

PostAlmostAnything

Well-Known Member
Mar 3, 2020
91
2
8
Portland, Oregon
cPanel Access Level
Website Owner
The odd thing is I am staring at one of the missing images live on the web at its original location on the same server it just does not show up in that file on cPanel and does not copy with other via the File Manager copy tool.
 

PostAlmostAnything

Well-Known Member
Mar 3, 2020
91
2
8
Portland, Oregon
cPanel Access Level
Website Owner
I will try this. Thanks for the command. Please give users on this forum such commands along with initial responses. I always pull may hair out when someone says to check out /etc/whatever/noideahowto.access because I know to view it I will also have to figure out what to type into the terminal.

Also, your quote reply feature is broken. Whenever I try to post a reply with the default quote it says there was an unknown error. Then I delete the quote and it works.
 

PostAlmostAnything

Well-Known Member
Mar 3, 2020
91
2
8
Portland, Oregon
cPanel Access Level
Website Owner
Got this message which I hope helps:

[2023-01-20 21:40:08 +0000] info [cpsrvd] version 11.106.0.13 online
[2023-01-20 21:51:27 +0000] info [whostmgrd] Successfully verified signature for cpanel (key types: release).

cpsrvd 2f81788fe755d: PID 21676: The cPanel Server operation timed out at cpsrvd.pl line 658.

[2023-01-20 22:03:07 +0000] info [cpaneld] Internal Server Error: "POST /cpsess4649843505/json-api/cpanel HTTP/1.1" 500 Error ID 2f81788fe755d
[2023-01-20 22:03:40 +0000] warn [whostmgrd] (XID zs86eu) Documents are not permitted to contain null characters, or new lines.
 

PostAlmostAnything

Well-Known Member
Mar 3, 2020
91
2
8
Portland, Oregon
cPanel Access Level
Website Owner
Here is what I am doing. I used WP Migrate DB to change all the image locations for the new site to the old one. Oddly, the multisite install can fun the same images from the original URL structure. Now I am running the reGenerate Thumbnails Advanced plugin which should detect the images and regenerate thumbnails for them. My hope is that images in posts with URLs like /uploads/2022 will be saved in the new directory at /uploads/sites/4/2022.

I had hoped that a string replace to the original URLs would be enough but Wordpress stores featured images in the database as 2022/month/image.jpg etc. so something else adds the /sites/4 part at some unknown point. If these images are saved properly I'll just do another string replace so that the images in the post content point to the regenerated thumbnails.

I am still concerned about the copying issue though. I can't think of nor can anyone here seem capable of telling me how it is possible for cPanel not to copy every file. I also am concerned about the lack of feedback from the cPanel UI. For instance, I expected to be promoted with a notice that some files already exist in the directory and being asked if I want to overwrite them. I receive no feedback at all other than what your UI claims the new folder sizes are afterwards.
 

PostAlmostAnything

Well-Known Member
Mar 3, 2020
91
2
8
Portland, Oregon
cPanel Access Level
Website Owner
There is never a charge for our support services :D
How about you tell me how to use WHM to remove the 10000 file limit on FTP clients? I think this default setting is the problem because there are way more than 10,000 images in the folder. Right now every time I download the folder via FileZilla it only downloads 9,998 images. I have seen instructions for how to remove this stupid default limit using the Terminal, but I didn't buy cPanel to use a CLI. I bought it to make stuff easy, so please tell me which options to click in WHM to get where I need to go please

Looks like there is no way to change this ridiculous limit without using the CLI. Typical of you guys, put some stupid default limit in place which shouldn't be there to begin with then make people jump through hoops to fix it. You should just add it to Tweak Settings or FTP Configuration as a binary checkbox so that people can get rid of the limit easily.
 
Last edited:

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
13,427
2,113
363
cPanel Access Level
Root Administrator
Status
Not open for further replies.