Error during uploading files to the device

111 views
Skip to first unread message

Dmitry

unread,
Oct 17, 2011, 5:24:28 AM10/17/11
to DataPower Buddy
Hi!
I used DPBuddy to upload some files to the DataPower. It worked fine.
But today when I tryed to use the same command I've received such an
error

D:\soft\DataPower\DataPower>dpconfig.bat
Buildfile: test.ant

copy:
[dp:copy] Executing DataPower file upload command...
[dp:copy] Copying 2 file(s) to the device...
[dp:copy] Executing request 'do-action/CreateDir' against
'ERIB.EXT.DEV' domain
[dp:copy] Executing request 'set-file' against 'ERIB.EXT.DEV' domain

BUILD FAILED
D:\soft\DataPower\DataPower\test.ant:62: Request failed with the error
'Access Denied (from client)'

Total time: 35 seconds

Nothing changed in DataPower configuration and DPBuddy script
properties since it worked fine. I tryed different files and amount of
files being uploaded, but always get such an error.
Does anybody know what does it mean? How can I get it work again?

The DPBuddy copy command I used is as follows

<!-- Upload files to the device -->
<target name="copy">
<!-- root directory for out wsdl files on the device -->
<property name="destination" value="PhizIC-res" />
<!-- cleanDirectories="true" will automatically delete all
files from any directory
on the device where we're uploading the files to -->
<dp:copy>
<dpFileset prefix="${destination}"
dir="PhizIC-res" includes="**/* **/*"/>
</dp:copy>
</target>

Alexander Ananiev

unread,
Oct 17, 2011, 10:58:25 AM10/17/11
to DataPower Buddy, Dmitry
Hi Dmitry,
This looks like an error from the device, I don't think it has
anything to do with dpbuddy.
Could you make sure that you're able to login to the device with the
credentials you're using for dpbuddy? Also, if you run Ant with "-v"
option, you'll be able to see the raw XML coming from the device.
- Alexander

Dmitry

unread,
Oct 17, 2011, 11:33:12 AM10/17/11
to DataPower Buddy
Hi, Alexander!

Thank you for your reply!

Yes, I'm able to login to the device with such login/password that I
try to use with DPBuddy.
Furthermore, I used the same configuration later and it worked fine.
Now I can use tail task to write logs from the device, but when I'm
trying to upload file - I get an error. One more thing - when I use
curl command to upload file it works well too.

Regards,
Dmitry

On 17 окт, 18:58, Alexander Ananiev <alexan...@myarch.com> wrote:
> Hi Dmitry,
> This looks like an error from the device, I don't think it has
> anything to do with dpbuddy.
> Could you make sure that you're able to login to the device with the
> credentials you're using for dpbuddy? Also, if you run Ant with "-v"
> option, you'll be able to see the raw XML coming from the device.
> - Alexander
>

Alexander 'Sasha' Ananiev

unread,
Oct 17, 2011, 11:54:13 AM10/17/11
to Dmitry, DataPower Buddy
OK, please run Ant with -v option and send me the log.

2011/10/17 Dmitry <dstol...@gmail.com>

Alexander 'Sasha' Ananiev

unread,
Oct 20, 2011, 9:19:39 AM10/20/11
to Dmitry Stolbovsky, DataPower Buddy
Hi Dmitry,
/service/mgmt/2004 URL should work. The reason it is used is because it supports uploading multiple files at once, whereas the "current" one does not. 
So, please take a look at your device logs. You will see the actual error in the logs. Please let me know what you find. Also, please provide your device model/firmware version.
Regards,
- Alexander.

On Wed, Oct 19, 2011 at 4:59 AM, Dmitry Stolbovsky <dstol...@gmail.com> wrote:
Hi, Alexander!
I used -v option and get the log (see it in attached log.txt file).
Then I tryed to use xml from log to execute set-file command with curl and get Internal Error (from client).
I found out that when xml contains more than one set-file tag, execution fails with the Internal Error (from client) error. When I deleted one set-file tag so that only one exists in the uploaded xml file, it worked fine.
I tryed to remain only one file in the uploaded with dpbuddy directory, but got the same error (see attached log2.txt file).
I also found out that dpbuddy createdir command posts to http://<dpip:port>/service/mgmt/current url, but set-file command posts to http://<dpip:port>/service/mgmt/2004 url. When I used curl I always post xml to /service/mgmt/current url
When I tryed to post xml with only one file to /service/mgmt/2004 with curl I've got the same (Access Denied (from client)) error.
So, can you help me to understand why it is so?

As summary I think there are two main problems:
1. posting xml with set-file to /services/mgmt/2004 instead of /services/mgmt/current
2. using more than one file in the posting xml file

Thank you for your help and advises! They are very useful fo me.

Regards,
Dmitry Stolbovsky


17 октября 2011 г. 19:54 пользователь Alexander 'Sasha' Ananiev <alex...@myarch.com> написал:
Ant with -v option


Alexander 'Sasha' Ananiev

unread,
Oct 21, 2011, 12:08:37 AM10/21/11
to Dmitry Stolbovsky, DataPower Buddy
Dmitriy, 
I think I know what's going on. The legacy 2004 schema support on your device is disabled. Please go to Network/Management/XML Management Interface and make sure that SOAP Configuration Management (v2004) is checked. 
Regards,
- Alexander


2011/10/20 Alexander 'Sasha' Ananiev <alex...@myarch.com>
Reply all
Reply to author
Forward
0 new messages