Impossible to retrieve files from an FTP in WinSCP - Bad message - ssis

I use WinSCP 5.17 to retrieve files from an FTP, when I retrieve files from the root folder of the FTP all works, but as soon as I try to retrieve the files from the sub-folder it doesn't work.
Here is the instruction I use:
get /Clients/Folder2/Folder3/*.* F:\folder1\folder2\
and this is the error message:
Error listing directory '/Clients/Folder2/Folder3'.
Bad message (badly formatted packet or protocol incompatibility).
Error code: 5
Error message from server: Bad message
Thanks for your help.

Finally I solved the problem, I generated the script from WinSCP GUI and it works.
open ftps://username:password#ftp-adresse.azure.com/ -certificate="ee:5f:af:7c:26:6b:bb:6f:cd:86:6a:2c:03:1e:8f:ab:e7:63:fd:43" -rawsettings FollowDirectorySymlinks=1
cd /Clients/folder2/folder3
lcd "F:\folder1\folder2"
get "*.xlsx"
exit

Related

AllenNLP: HEAD request failed for url with status code 404 - open information extraction

Running the training command from open information extraction demo fails with the following error message:
OSError: HEAD request failed for url https://raw.githubusercontent.com/allenai/allennlp-models/main/training_config/structured-prediction/srl.jsonnet with status code 404
Does this mean the file is removed? Where can the replacement file be found?
Looking for a replacement file I found this file from allenai repo but it seems to have required fields such as "dataset_reader" missing.
communicated the issue with allennlp and the file is now accessible at the same address.

SFTP transfer using Execute Process Task and WinSCP in SSIS

I am having a User_file.txt file placed at WinSCP root folder USERDATA, which I am trying to download to the given location C:\User\Local\.
Executable- C:\Program Files (x86)\WinSCP\WinSCP.exe
Arguments - /log=c:\path\to\log\winscp.log /command "open ftp://username:password#example.com/" "get /USERDATA/User_file.txt C:\User\Local\" "exit"
I am facing below error:
No connection could be made the target machine actively refused it
Not sure what I am missing. I took reference from couple of related post on Stack Overflow.
You want to use SFTP, but use FTP (ftp://) protocol in the session URL.
Use sftp:// instead:
... "open sftp://username:password#example.com/" ...
WinSCP GUI can generate a correct script/command-line template for you.

Server unable to find JSON files, but finds IMG files in the same Assets folder

I have built a portfolio site for my first Angular project and now it is ready and I'm getting an error when my Angular project attempts to locate the JSON files, but it can find and generate the image files that are in the same assets folder and I can get the JSON when I run my project locally-
main.dad43c6….bundle.js:1 ERROR
e {headers: t, status: 404, statusText: "Not Found", url: "http://megakyle83.com/assets/json/socialMedia.json", ok: false, …}
error
:
"<HTML>
↵<HEAD>
↵<TITLE>404 Not Found</TITLE>
↵<BASE href="/error_docs/"><!--[if lte IE 6]></BASE><![endif]-->
↵</HEAD>
↵<BODY>
↵<H1>Not Found</H1>
↵The requested document was not found on this server.
↵<P>
↵<HR>
↵<ADDRESS>
↵Web Server at megakyle83.com
↵</ADDRESS>
↵</BODY>
↵</HTML>
headers
:
t {normalizedNames: Map(0), lazyUpdate: null, lazyInit: ƒ}
message
:
"Http failure response for http://megakyle83.com/assets/json/socialMedia.json: 404 Not Found"
name
:
"HttpErrorResponse"
ok
:
false
status
:
404
statusText
:
"Not Found"
url
:
"http://megakyle83.com/assets/json/socialMedia.json"
__proto__
:
Object
When I did my build I used the terminal command ng build --prod and then uploaded the files from the generated dist folder onto my Windows Plesk Server through GoDaddy. When I look at my assets folder on the Plesk server it shows that all the files are there under assets/json/ . I have several separate JSON files in this same folder. Could that be part of the problem?
I have all my files uploaded to my github at -https://github.com/RyanIndustries8/megakyle83
I have tried everything under the sun to make this work and I'm struggling to find anyone who knows enough about Angular to get an answers.
Look at the error message, http://megakyle83.com/assets/json/socialMedia.json 404 Not Found. I've browsed your repo and there is no such a file in assets/json/ directory moreover, there is no json directory in the assets.
I couldn't find missing socialMedia.json file in your entire repo. Ensure that this file exist under path mentioned in the error message.
The issue didn't end up being my code, instead it was a setting issue in the Plesk Server. I had to go into the Server Settings and add text/json and */json to the list of usable files. Thank you for looking at this issue.

payment module error 500

I recently move to a new server. During the new setup, a payment module (vpos), had the ionCube Loader which cannot work with temp URL. Message that the module work with the IP of the domain.
To check if the magento works ok with orders i rename the folder in app/code/local/mage/module_name_folder so everything loads ok.
My magento site is again on air with the domain point to the new server.
When i try to rename again the folder to have this module, i get error 500 in checkout page.
2017-05-20T09:12:12+00:00 ERR (3): Warning: include(Mage/Empbankr/Model/Emppay.php): failed to open stream: No such file or directory in /home/username/public_html/commerce/lib/Varien/Autoload.php on line 94
Mage/Empbankr/Model/Emppay.php' for inclusion (include_path='/home/username/public_html/commerce/app/code/local:/home/username/public_html/commerce/app/code/community:/home/username/public_html/commerce/app/code/core:/home/username/public_html/commerce/lib:.:/opt/cpanel/ea-php55/root/usr/share/pear') in /home/username/public_html/commerce/lib/Varien/Autoload.php on line 94
i have turn compilation off, clear all magento caches automated and manual.
i remove completely memcached through local.xml
The same error again. Does anyone have face the issue opr any idea?

Getting 500 Internal Server Error on my cpanel hosting?

I have been trying to download a zip file from my cpanel server but I was getting first 403 forbidden error so I added .htaccess with the following code as :
Require all granted so for the time my 403 forbidden error was solved but now I am getting 500 Internal Server Error..!
Here is link to the directory where I am getting error please as :
http://huntedhunter.com/backups/
And I want to download this file as :
http://huntedhunter.com/backups/backup_hunter.zip
so getting the 500 Internal server error on file downloading..!
So if you people can please help me.
As discussed, the issue is with the file permission for backup_hunter.zip
so make sure the file permissions are set accordingly
an example from File Permissions Tutorial
image from the linked tutorial, read the same for more info