Hi-
Unfortunately, it is a bit difficult to debug what is occurring. However, I went through the process to install and test the service and it seems to be working as expected. The steps are listed below. Please let me know if you have any issues when performing these steps.
1.) Download the latest service release
wget https://github.com/opendxl-community/opendxl-file-transfer-service-python/releases/download/0.1.1/dxlfiletransferservice-python-dist-0.1.1.zip
2.) Unzip the service release
unzip dxlfiletransferservice-python-dist-0.1.1.zip
3.) Change into service directory
cd dxlfiletransferservice-python-dist-0.1.1
4.) Provision the service
dxlclient provisionconfig config <provision-service-host> service-cn
5.) Provision the samples
dxlclient provisionconfig sample <provision-service-host> sample-cn
6.) Edit the service config and set a destination directory for transferred files
vi config/dxlfiletransferservice.config
- ###############################################################################
- ## File Transfer DXL Python service settings
- ###############################################################################
- [General]
- # Directory under which to store files (required, no default)
- storageDir=/tmp
- ...
7.) Start the service (force into background)
python -m dxlfiletransferservice config &
8.) Run the sample (send a file, "README.html")
python sample/basic/basic_store_example.py README.html
- 2019-06-03 16:20:42,820 dxlfiletransferclient.store INFO Assigning file id '70b7b036-79ec-4fff-98a7-17b4f8c135f6' for '/tmp/.workdir/70b7b036-79ec-4fff-98a7-17b4f8c135f6'
- 2019-06-03 16:20:42,821 dxlfiletransferclient.store INFO Stored file '/tmp/README.html' for id '70b7b036-79ec-4fff-98a7-17b4f8c135f6'
- Percent complete: 100%
- Response to the request for the last segment:
- {
- "file_id": "70b7b036-79ec-4fff-98a7-17b4f8c135f6",
- "result": "store",
- "segments_received": 1
- }
- Elapsed time (ms): 5.20992279053
9.) Confirm the file was transferred
ls -l /tmp
- total 304
- -rw-r--r-- 1 root root 1209 Jun 3 16:20 README.html
- ...
I transferred multiple files without experiencing any issues. Please let me know if you experience any problems when attempting to perform the above steps.
Thanks a lot,
Chris