I can see that I have some work to do in preparing a package for
server installations. :) The sample-swamp.conf is not consistent
with the current code. I'll fix that.
I haven't been able to reproduce your problem. I tested a script
similar to yours:
'''
TESTROOT=/pcmdi
ncks -d lat,1 $TESTROOT/
pcmdi.ipcc4.cccma_cgcm3_1.sresb1.run1.daily.pr_a2_sresb1_1_cgcm3.1_t47_2046_2065.nc
r5_pressure-0_test.nc
'''
...which gave me expected results as far as I could tell. I changed
the path/filename to fit my data, and the variable to lat, because it
doesn't have a 'level' variable. I reused your output file name to
test whether there's some strange file naming problem.
It's strange that the return types are different. My version
returned:
<SOAPpy.Types.typedArrayType Result at 46912541042376>:
[['
r5_pressure-0_test.nc', '
http://localhost:8081/pub/
f26183_F98BB326r5_pressure-0_test.nc']]
Fetching
http://localhost:8081/pub/f26183_F98BB326r5_pressure-0_test.nc
and writing to
r5_pressure-0_test.nc
I'm inclined to believe that the client is okay, since it works
properly against our test instance. pollOutputs(token) should only be
called once per script, where your output seems to show that it's
been called twice, receiving one list element of the correct return
value each time.
Here's the swamp.conf of my single-node development instance. I'm
sure you've doublechecked everything, but you may have been waylaid by
my incorrect sample earlier. It's got a lot of vestigial things from
my testing, but perhaps you'll see something.
Hope this helps,
-Daniel
--------------------
## Logging-related settings
[log]
# A place to write logs of what the handler sees.
location = ./ssdap_cli.log
# True turns off logging
disable = False
# Log level: one of CRITICAL, ERROR, WARNING, INFO, DEBUG,
NOTSET
level = DEBUG
########################################
## Service-related settings (for servers)
########################################
[service]
hostname = localhost
port = 8081
path = SOAP
filePath = data
# mode is one of: master, worker
mode = master
# level is one of: production, testing, debug
level = debug
########################################
## Execution-related settings
########################################
[exec]
# path to NCO binaries compiled with NetCDF4 support
nco4 = /home/wangd/bin
# path to NCO binaries compiled with OPeNDAP support
ncodap = /home/wangd/bin
# scratchPath: temporary scratchspace
scratchPath = /dev/shm/
# semi-persistent space
resultPath = /data/wangd/swamp/publish
bulkPath = /data/wangd/swamp
# root for source data (will support catalog later)
sourcePath = /data/wangd
# exec slots:
localSlots = 3
slaveNodes = 0
# if you have slave nodes with the same source file space,
# define slave?Url and slave?Slots for each of them.
slave1Url =
http://localhost:8082/SOAP
slave1Slots = 4
slave2Url =
http://localhost:8083/SOAP
slave2Slots = 4
########################################
## Database settings
## (for db-backed asynchronous scheduling)
[db]
#/dev/shm is a ram-based temporary filesystem.
dbFilename = /home/wangd/ssdapSpace/swamp_db.sqlite