I'm facing exactly the same issue, interestingly with the same apache-activemq official package.
If I compare the tar.gz from ActiveMQ to another tar.gz generated from a Linux system, we can see it works on one side while it fails on the other:
Typo3
# file /opt/*.tar.gz
/opt/apache-activemq-5.13.2-bin.tar.gz: gzip compressed data, from FAT filesystem (MS-DOS, OS/2, NT)
/opt/typo3_src-4.5.40.tar.gz: gzip compressed data, from Unix, last modified: Thu Feb 19 10:23:47 2015
# salt-call archive.list /opt/typo3_src-4.5.40.tar.gz | more
local:
- typo3_src-4.5.40/
- typo3_src-4.5.40/ChangeLog
- typo3_src-4.5.40/GPL.txt
[...]
ActiveMQ
# salt-call archive.list /opt/apache-activemq-5.13.2-bin.tar.gz
Error running 'archive.list': Unable to list contents of /opt/apache-activemq-5.13.2-bin.tar.gz. If this is an XZ-compressed tar archive, install XZ Utils to enable listing its contents. If it is compressed using something other than XZ, it may be necessary to specify CLI options to decompress the archive. See the documentation for details. Additional info follows:
archive location:
/opt/apache-activemq-5.13.2-bin.tar.gz
If I uncompress and recompress (tar cpzf activemq.tar.gz /opt/apache-activemq-5.13.2), then it works:
# file /opt/activemq.tar.gz
/opt/activemq.tar.gz: gzip compressed data, from Unix, last modified: Tue May 23 14:35:45 2017
# salt-call archive.list /opt/activemq.tar.gz
local:
- apache-activemq-5.13.2/
- apache-activemq-5.13.2/LICENSE
- apache-activemq-5.13.2/NOTICE
- apache-activemq-5.13.2/README.txt
I'm going to fill a bug report. The workaround would be to untar the official archive and retar and recompress for the time being.