Troubleshooting the Akave CLI
This page lists known issues when using the Akave CLI and provides workarounds.
1. Versioned Files from O3 Create Directories on Download
Symptom
When using a self-hosted Akave O3 instance with bucket versioning enabled, object names on the Akave network can include version suffixes such as:
file.txt/nullfile.txt/V1file.txt/V2
When downloading such a file with akavecli, you may see:
- A directory named
file.txt - A file inside that directory named
null,V1,V2, etc.
Example:
cd file.txt
ls
V1Cause
The CLI interprets the / in the object name as a directory separator:
file.txtbecomes a directory- The portion after
/becomes the filename inside that directory
Workaround
If you want to download and restore the file under its expected flat name (e.g., file.txt), follow these steps.
Assume:
- Bucket:
<bucket-name> - Object key:
file.txt/null - Desired final filename:
file.txt
- Create a directory with the file name:
mkdir file.txt- Download the file into that directory:
akavecli file download <bucket-name> file.txt/null . \
--account <wallet-name> \
--node-address connect.akave.ai:5500After this, you will have:
- Directory:
file.txt - Inside it: file named
null(orV1, etc.)
- Change into the directory:
cd file.txt- Move the versioned file up one level and rename it temporarily:
mv * ../file.tmp- Go back and remove the now-empty directory:
cd ..
rmdir file.txt- Rename the temporary file to the original intended filename:
mv file.tmp file.txtYou will now have a flat file named file.txt in the current directory.
Additional Troubleshooting
If you encounter other repeatable issues with akavecli consider:
- Running with additional logging or
--verboseflags (where available) - Verifying
--node-addresspoints to the correct network - Confirming the wallet
--accounthas sufficient balance and exists locally
You can also refer back to:
- Bucket and File Commands for usage patterns
- PDP Archival Usage for archival-related behavior
If you have other questions, need technical guidance, or want to connect with other builders:
- Email Our Support: support@akave.io
- Visit Our Support Page: https://support.akave.xyz
- Join Our Telegram Builders Group: https://t.me/akavebuilders