Forum Discussion
Tmsh: problem moving two files to the Sandbox (from an iApp)
- Aug 30, 2013
I see the issue now. I filed it as a product bug. Here is a workaround that calls a script from within the iapp and uses a time delay to solve the timestamp issue.
set fh [open my_script w] puts $fh " tmsh modify apm resource sandbox hosted-content { files add {\ foo1.xml { folder /test local-path /var/tmp/bar1.xml }}} sleep 1 tmsh modify apm resource sandbox hosted-content { files add {\ foo2.xml { folder /test local-path /var/tmp/bar2.xml }}} " close $fh exec bash my_script
Hello and thanks a lot for the answer. I am currently using v11.4 too. Using the command line, I can move the files with different calls to the command, but it can't be possible in a single call like:
root@(bigip)(cfg-sync Standalone)(ModuleNotLicensed:Active)(/Common)(tmos) modify /apm resource sandbox /Common/hosted-content files add { file1.xml { folder /test/globalconfig local-path /var/tmp/file1.xml } } files add { file1.html { folder /test local-path /var/tmp/file1.html } }
The same error occurs (regardless running one or two calls to the command) from an iApp. That is why I have the problem, I need to move the two files using an iApp, and then I always get the error (the same as if you try to move the to files using a single call to the command from the tmsh shell(:
01070734:3: Configuration error: DB validation exception, unique constraint violation on table (sandbox_file) object ID (/Common/hosted-content jwtcon.html ). A duplicate value was received for a non-primary key unique index field. DB exception text (Can't save/checkpoint DB object, class:sandbox_file status:13
I suspect the same "numerical ID" generated for every file stored in the sandbox is in this case the same (if I am not wrong, this number is generated using a timestamp from 'now'), so both the iApp with two commands or the tmsh shell single command have the same database constraint violation error because of this. Any ideas?
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com