We are getting this error often in autopkgtests:
======================================================================
ERROR: demos_tests.test_tomcat_maven_webapp.TomcatMavenWebappTestCase.test_tomcat_maven_webapp
----------------------------------------------------------------------
output: {{{b"\xe2\x97\x8f snap.tomcat-webapp-demo.tomcat.service - Service for snap application tomcat-webapp-demo.tomcat\n Loaded: loaded (/etc/systemd/system/snap.tomcat-webapp-demo.tomcat.service; enabled; vendor preset: enabled)\n Active: activating (auto-restart) (Result: exit-code) since Fri 2017-02-10 00:53:15 UTC; 29ms ago\n Process: 26659 ExecStart=/usr/bin/snap run tomcat-webapp-demo.tomcat (code=exited, status=1/FAILURE)\n Main PID: 26659 (code=exited, status=1/FAILURE)\n\nFeb 10 00:53:15 autopkgtest systemd[1]: snap.tomcat-webapp-demo.tomcat.service: Main process exited, code=exited, status=1/FAILURE\nFeb 10 00:53:15 autopkgtest systemd[1]: snap.tomcat-webapp-demo.tomcat.service: Unit entered failed state.\nFeb 10 00:53:15 autopkgtest systemd[1]: snap.tomcat-webapp-demo.tomcat.service: Failed with result 'exit-code'.\n"}}}
Traceback (most recent call last):
File "/tmp/autopkgtest.qRZ9ix/build.gXM/snapcraft/snaps_tests/demos_tests/test_tomcat_maven_webapp.py", line 33, in test_tomcat_maven_webapp
self.assert_service_running(snap_name, 'tomcat')
File "/tmp/autopkgtest.qRZ9ix/build.gXM/snapcraft/snaps_tests/__init__.py", line 251, in assert_service_running
'snap.{}.{}'.format(snap, service)])
File "/tmp/autopkgtest.qRZ9ix/build.gXM/snapcraft/snaps_tests/__init__.py", line 242, in run_command_in_snappy_testbed
return self.snappy_testbed.run_command(command, cwd)
File "/tmp/autopkgtest.qRZ9ix/build.gXM/snapcraft/snaps_tests/testbed.py", line 40, in run_command
stderr=subprocess.STDOUT).decode('utf-8')
File "/usr/lib/python3.5/subprocess.py", line 626, in check_output
**kwargs).stdout
File "/usr/lib/python3.5/subprocess.py", line 708, in run
output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command 'systemctl --no-pager status snap.tomcat-webapp-demo.tomcat' returned non-zero exit status 3
We need a better demo for java, that actually shows something interesting. This project is not doing anything useful, and it's just slowing us down. For now I'm going to remove it.