I am installing the CDN plugin and I am following the instructions but I am hung up here:
2. Copy files from Modules folder to the /cgi-bin/Modules folder on your site.
There is no "Modules" folder in the file I downloaded.
What I did was moved the 2 files below into the Modules folder:
transfer_azure.pl
transfer_s3.pl
Apparently that wasn't what was needed. This is the error I get:
Software error:
Can't locate Net/Azure/StorageClient.pm in @INC (@INC contains: . Plugins Modules /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5) at Modules/Session.pm line 3.
BEGIN failed--compilation aborted at Plugins/CDN/azure.pm line 7.
For help, please send mail to the webmaster ([email protected]), giving this error message and the time and date of the error.
Software error:
[Fri Aug 1 22:44:19 2014] index.cgi: Can't locate Net/Azure/StorageClient.pm in @INC (@INC contains: . Plugins Modules /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5) at Modules/Session.pm line 3.
[Fri Aug 1 22:44:19 2014] index.cgi: BEGIN failed--compilation aborted at Plugins/CDN/azure.pm line 7.
Compilation failed in require at Modules/Session.pm line 3.
Any ideas? Thank you
XFileSharing Pro - Problem with CDN Install
When I try to use the "import files" link next to the Amazon S3 server I get this error:
Error
Error when requesting API.
400 URL must be absolute
When I try to transfer files from the local server to Amazon S3, the files go into the transfer queue and nothing happens. The files just sit pending at 0%.
I have deleted the server and rebuilt it and verified all required keys and permissions. Nothing seems to work.
Also, when I update settings I get these errors:
Have 3 servers to update.
ID=1 Local...OK
ID=5 s01.myserver123.com...FAILED!
ID=4 Amazon S3...FAILED!
Done.
2 servers failed to update.
Error
Error when requesting API.
400 URL must be absolute
When I try to transfer files from the local server to Amazon S3, the files go into the transfer queue and nothing happens. The files just sit pending at 0%.
I have deleted the server and rebuilt it and verified all required keys and permissions. Nothing seems to work.
Also, when I update settings I get these errors:
Have 3 servers to update.
ID=1 Local...OK
ID=5 s01.myserver123.com...FAILED!
ID=4 Amazon S3...FAILED!
Done.
2 servers failed to update.
Re: Problem with CDN Install
I also had this issue. I got an error when i tried to add an s3 server.
I followed your directions and deleted both azure files "azure.pm" & "transfer_azure.pl" then I was able to add a S3 server.
But now I am having the issue where i can't transfer anyfiles to the s3 server. It's stuck in the Transfer queue as "pending"
Did you solve this issue?
Where do we put the file "transfer_s3.pl"
Which folder is that file supposed to go to. The directions did not specify.
The directions say "Add transfer_s3.pl in cronjobs on all file server(s)"
Heres what i did
/home/myuploadsite/public_html/cgi-bin/Modules/S3Utils.pm
/home/myuploadsite/public_html/cgi-bin/Plugins/CDN/amazon_s3.pm
/home/myuploadsite/public_html/cgi-bin/Plugins/CDN/azure.pm <--- deleted
/home/myuploadsite/public_html/cgi-bin/transfer_azure.pl <--- deleted
/home/myuploadsite/public_html/cgi-bin/transfer_s3.pl
I installed XML::Simple in WHM panel
and also install via the terminal
yum install perl-XML-Simple
Then i updated my License ID
Then i went to the admin panel and clicked on "+ Add new CDN"
But the transfer issue is still not solved.
I went into the Terminal did the following:
cd /home/myuploadsite/public_html/cgi-bin/transfer_s3.pl
./transfer_s3.pl
and it transferred the file
Im assuming I have to add the transfer_s3.pl to the list of cron jobs so it automatically runs the file?
How would i go about doing that
This is what i see in my crontab now
I solved the cron issue but adding a command in the crons
command:
crontab -e
then i added this following at the very bottom of the file:
* * * * * cd /home/myuploadsite/public_html/cgi-bin; ./transfer_s3.pl 2>&1 >/dev/null
I followed your directions and deleted both azure files "azure.pm" & "transfer_azure.pl" then I was able to add a S3 server.
But now I am having the issue where i can't transfer anyfiles to the s3 server. It's stuck in the Transfer queue as "pending"
Did you solve this issue?
Where do we put the file "transfer_s3.pl"
Which folder is that file supposed to go to. The directions did not specify.
The directions say "Add transfer_s3.pl in cronjobs on all file server(s)"
Heres what i did
/home/myuploadsite/public_html/cgi-bin/Modules/S3Utils.pm
/home/myuploadsite/public_html/cgi-bin/Plugins/CDN/amazon_s3.pm
/home/myuploadsite/public_html/cgi-bin/Plugins/CDN/azure.pm <--- deleted
/home/myuploadsite/public_html/cgi-bin/transfer_azure.pl <--- deleted
/home/myuploadsite/public_html/cgi-bin/transfer_s3.pl
I installed XML::Simple in WHM panel
and also install via the terminal
yum install perl-XML-Simple
Then i updated my License ID
Then i went to the admin panel and clicked on "+ Add new CDN"
But the transfer issue is still not solved.
I went into the Terminal did the following:
cd /home/myuploadsite/public_html/cgi-bin/transfer_s3.pl
./transfer_s3.pl
and it transferred the file
Im assuming I have to add the transfer_s3.pl to the list of cron jobs so it automatically runs the file?
How would i go about doing that
This is what i see in my crontab now
I solved the cron issue but adding a command in the crons
command:
crontab -e
then i added this following at the very bottom of the file:
* * * * * cd /home/myuploadsite/public_html/cgi-bin; ./transfer_s3.pl 2>&1 >/dev/null
Last edited by sib-fan87 on Jan 21, 2023 11:20 pm, edited 2 times in total.
Re: Problem with CDN Install
I have another issue too when i download an image. Its not showing.
on xfilesharing
Even when i looked at the file from the Amazon website i get Access Denied
I believe it's an issue with Access List or Policies on CDN website
I need to create a S3 Bucket policy or something?
anyone know how to set it up?
on xfilesharing
Even when i looked at the file from the Amazon website i get Access Denied
I believe it's an issue with Access List or Policies on CDN website
I need to create a S3 Bucket policy or something?
anyone know how to set it up?
Re: Problem with CDN Install
I'm made a picture of step by step on how i setup Amazon s3
https://ibb.co/yQRTHJ4
and here i am uploading a test image, then moving it to the new s3 server. The trying to download the picture and trying to download the zip file
https://ibb.co/tJJvHBX
and here is the screen i get when i access the files straight from amazon s3. I can see the files are there but i get an error when trying to access them
https://ibb.co/jkrqKns
https://ibb.co/yQRTHJ4
and here i am uploading a test image, then moving it to the new s3 server. The trying to download the picture and trying to download the zip file
https://ibb.co/tJJvHBX
and here is the screen i get when i access the files straight from amazon s3. I can see the files are there but i get an error when trying to access them
https://ibb.co/jkrqKns