tomcat maven demo is failing often

Bug #1663434 reported by Leo Arias
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Snapcraft
Fix Released
Medium
Leo Arias

Bug Description

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

Tags: tests
Revision history for this message
Leo Arias (elopio) wrote :

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.

Changed in snapcraft:
status: New → In Progress
importance: Undecided → Medium
assignee: nobody → Leo Arias (elopio)
milestone: none → 2.28
Revision history for this message
Leo Arias (elopio) wrote :
Changed in snapcraft:
status: In Progress → Fix Committed
Changed in snapcraft:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.