• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Issue Image issue after transfer

octoma

New Pleskian
Hi, all. I'm new to Plesk, and I ran into a strange issue.

I transferred about 300k images (jpg) one directory to another all within the same httpdocs directory. The strange thing is that the files aren't working. and have an icon with a [01] instead of normal image icon. It all looks well from my FTP client, but, when I go into Plesk file manager, then I notice the issue. the file name contains the proper extension but here is where it gets really strange.

1) Both Plesk and Fftp show a file size but, when I download the file to my PC it shows 0-bytes
2) If I try to rename the file viaPlesk file manager and click ok without actually renaming or changing anything, the file is fixed. (see Photo)
3) If I try to rename the file via FTP client nothing changes at all. only works when I use Plesk file manager.

I have way too many files to manually go through and rename them in Plesk file manager so, I tried bash rename from .jpg to .gif and nothing! It won't change them... I think the issue is it can't see the .jpg extension to make the change. The directory is set to 0777 along with all of the files in it.

any ideas?


screen.jpg
 
thanks for replying Peter.
I used
Code:
rsync -a -v --ignore-existing src dst /var/www/vhosts/file location/. /var/www/vhosts/file dest
 
Ok, after trying a few things, I suspect that somehow the extension became a part of the actual file name or... something??
I ran a few rename options but nothing worked until I tried this.
Code:
rename 's/jpg?.*/jpg/' *

I transferred a few files into a test directory and it worked perfectly to fix them BUT, when I try to use the command in the main directory, I get the following
:eek:
Code:
-bash: /usr/bin/rename: Argument list too long
Any ideas?
 
How about using a simple copy command instead of rsync:
# cp -R <source> <dest>
for example
# cp -R /var/www/vhosts/<source subscription>/<source directory> /var/www/vhosts/<target subscription>
Or all files within the same /httpdocs directory to another directory even simpler
# cp -R /<source>/*.* /<destination>
 
Back
Top