Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need advice to migrate from Aspera CLI version 3.9.6.1467.159c5b1 to Aspera CLI 4.20.0 to connect to #183

Open
cph1c06 opened this issue Mar 11, 2025 · 1 comment
Assignees
Labels
customer request Request from end users question Further information is requested

Comments

@cph1c06
Copy link

cph1c06 commented Mar 11, 2025

When attempting to use the IBM Aspera CLI (version 3.9.6.1467.159c5b1) to send a file via Aspera Faspex, a JSON parse error occurs. The command was executed to send a file to a recipient "content upload" with a title "Test Title" to the server, but the POST request to https://$IP:$PORT/aspera/faspex/send failed with a JSON parse error at character

aspera --version
IBM Aspera CLI version 3.9.6.1467.159c5b1

aspera faspex send -H "$IP" --file $FILENAME --title "Test Title" --recipient "content upload" --username $USERNAME --password $PASSWORD -i
Building JSON... done
Serializing JSON... done
POSTing to https://$IP:$PORT/aspera/faspex/send... JSON parse error at character 0: Invalid value.

We had concluded this CLI version is not able to send packages to Faspex 5 as it is not supported with Faspex 5.

asperaconnect faspex send -f $FILENAME -n "Viu uploaded: TEST" -t "Viu uploaded: TEST" -r "VIUHK content upload" -u$USERNAME -H$IP -p$PASSWORD -i
qt.qpa.xcb: could not connect to display 
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Available platform plugins are: xcb.

May I know how to fastly migrate from aspera cli 3.9 to 4.20.0? Many thanks!

@laurent-martin laurent-martin self-assigned this Mar 11, 2025
@laurent-martin
Copy link
Member

laurent-martin commented Mar 11, 2025

Hi,

Right, the Aspera CLI 3.x is not more supported and is replaced with CLI v4.x, ascli in this repo.

Installation procedure is included in the manual (install ruby, then gem, then ascp). There are several ways to install.

If you are using a recent Linux, you might try single executables from: https://eudemo.asperademo.com/download/aspera-cli/

ascli comes with a wizard to help with the configuration, or you can do the manual configuration as well.

For example:

ascli config wizard https://faspex5.example.com/path faspex5

The manual for CLI on Faspex5 is here: https://github.com/IBM/aspera-cli?tab=readme-ov-file#plugin-faspex5-ibm-aspera-faspex-v5

Upon wizard use, or manual configuration, a config file is created, making it easier to execute individual commands, nevertheless, the config file is not mandatory and all options can also be placed on the command line.

Then to send a package:

ascli faspex5 packages send @json:'{"title":"some title","recipients":["user@example.com"]}' mybygfile1

have a 🍺

@laurent-martin laurent-martin added question Further information is requested customer request Request from end users labels Mar 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
customer request Request from end users question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants