{"action":"reopened","issue":{"url":"https://api.github.com/repos/TechEmpower/FrameworkBenchmarks/issues/2434","repository_url":"https://api.github.com/repos/TechEmpower/FrameworkBenchmarks","labels_url":"https://api.github.com/repos/TechEmpower/FrameworkBenchmarks/issues/2434/labels{/name}","comments_url":"https://api.github.com/repos/TechEmpower/FrameworkBenchmarks/issues/2434/comments","events_url":"https://api.github.com/repos/TechEmpower/FrameworkBenchmarks/issues/2434/events","html_url":"https://github.com/TechEmpower/FrameworkBenchmarks/issues/2434","id":197773841,"number":2434,"title":"Unable to run hexagon-resin test","user":{"login":"jaguililla","id":732100,"avatar_url":"https://avatars.githubusercontent.com/u/732100?v=3","gravatar_id":"","url":"https://api.github.com/users/jaguililla","html_url":"https://github.com/jaguililla","followers_url":"https://api.github.com/users/jaguililla/followers","following_url":"https://api.github.com/users/jaguililla/following{/other_user}","gists_url":"https://api.github.com/users/jaguililla/gists{/gist_id}","starred_url":"https://api.github.com/users/jaguililla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jaguililla/subscriptions","organizations_url":"https://api.github.com/users/jaguililla/orgs","repos_url":"https://api.github.com/users/jaguililla/repos","events_url":"https://api.github.com/users/jaguililla/events{/privacy}","received_events_url":"https://api.github.com/users/jaguililla/received_events","type":"User","site_admin":false},"labels":[{"id":194302062,"url":"https://api.github.com/repos/TechEmpower/FrameworkBenchmarks/labels/Bug:%20Framework","name":"Bug: Framework","color":"e10c02","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2016-12-27T23:58:25Z","updated_at":"2016-12-29T18:53:16Z","closed_at":null,"body":"@knewmanTE  @nbrady-techempower @LadyMozzarella  This is the issue for the problem with PR #2421\r\n\r\n\r\n# Description\r\n\r\nThe standalone test of Hexagon is working, however, the Resin one is not working.\r\n\r\nTapestry Resin test is working so I trimmed my test to be as close as possible to theirs.\r\n\r\nEven in that case the test fail (timeout connecting to Resin: `127.0.0.1:8080`).\r\n\r\nI downloaded the generated WAR and it worked fine in a local Resin (4.0.49 on Linux).\r\n\r\nI changed the `hexagon` directory permissions and added `a+w` (like in Tapestry) just in case.\r\n\r\nOne difference between woking Resin tests and Hexagon's is the fact that they live in different\r\ndirectories (`Java` and `Kotlin`) I do not know if this makes a difference.\r\n\r\nI made changes in my development vagrant machine. So the latest test details are below:\r\n\r\n# Setup\r\n\r\n```\r\nvagrant@tfb-all:~/FrameworkBenchmarks$ cat frameworks/Kotlin/hexagon/benchmark_config.json \r\n{\r\n    \"framework\" : \"hexagon\",\r\n    \"tests\" : [\r\n        {\r\n            \"default\" : {\r\n                \"json_url\" : \"/hexagon/json\",\r\n                \"db_url\" : \"/hexagon/db\",\r\n                \"query_url\" : \"/hexagon/query?queries=\",\r\n                \"fortune_url\" : \"/hexagon/fortunes\",\r\n                \"update_url\" : \"/hexagon/update?queries=\",\r\n                \"plaintext_url\" : \"/hexagon/plaintext\",\r\n\r\n                \"port\" : 8080,\r\n\r\n                \"approach\" : \"Realistic\",\r\n                \"classification\" : \"Micro\",\r\n                \"database\" : \"MongoDB\",\r\n                \"framework\" : \"Hexagon\",\r\n                \"language\" : \"Kotlin\",\r\n                \"orm\" : \"Raw\",\r\n                \"platform\" : \"Servlet\",\r\n                \"webserver\" : \"Resin\",\r\n                \"os\" : \"Linux\",\r\n                \"database_os\" : \"Linux\",\r\n                \"display_name\" : \"Hexagon Resin\",\r\n                \"notes\" : \"http://there4.co/hexagon\",\r\n\r\n                \"setup_file\" : \"setup\",\r\n                \"versus\" : \"servlet\"\r\n            }\r\n        }\r\n    ]\r\n}\r\n\r\nvagrant@tfb-all:~/FrameworkBenchmarks$ cat frameworks/Kotlin/hexagon/setup.sh \r\n#!/bin/bash\r\n\r\nfw_depends mongodb java resin\r\n\r\ngradle/wrapper\r\n\r\nrm -rf $RESIN_HOME/webapps/*\r\ncp build/libs/hexagon.war $RESIN_HOME/webapps\r\nresinctl start\r\n```\r\n\r\n\r\n# Building\r\n\r\n```\r\nvagrant@tfb-all:~/FrameworkBenchmarks$ ls -AlF frameworks/Kotlin/hexagon/build/libs/\r\ntotal 17892\r\n-rw-rw-r-- 1 vagrant vagrant    26052 Dec 27 23:22 hexagon-1.0.0.jar\r\n-rw-rw-r-- 1 vagrant vagrant 18290814 Dec 27 23:22 hexagon.war\r\n```\r\n\r\n\r\n# Execution\r\n\r\n```\r\nSetup hexagon: ~/FrameworkBenchmarks/installs ~/FrameworkBenchmarks/frameworks/Kotlin/hexagon\r\nSetup hexagon: java is installed!\r\nSetup hexagon: ~/FrameworkBenchmarks/frameworks/Kotlin/hexagon\r\nSetup hexagon: java is installed!\r\nSetup hexagon: :compileKotlin\r\nSetup hexagon: :compileJava UP-TO-DATE\r\nSetup hexagon: :copyMainKotlinClasses\r\nSetup hexagon: :processResources\r\nSetup hexagon: :classes\r\nSetup hexagon: :compileTestKotlin\r\nSetup hexagon: :compileTestJava UP-TO-DATE\r\nSetup hexagon: :copyTestKotlinClasses\r\nSetup hexagon: :processTestResources\r\nSetup hexagon: :testClasses\r\nSetup hexagon: :test\r\nSetup hexagon: :check\r\nSetup hexagon: :jar\r\nSetup hexagon: :startScripts\r\nSetup hexagon: :war\r\nSetup hexagon: :installDist\r\nSetup hexagon: :install\r\nSetup hexagon: \r\nSetup hexagon: BUILD SUCCESSFUL\r\nSetup hexagon: \r\nSetup hexagon: Total time: 20.781 secs\r\nSetup hexagon: Resin/4.0.48 launching watchdog at 127.0.0.1:6600\r\nSetup hexagon: Resin/4.0.48 started -server 'default' with watchdog at 127.0.0.1:6600\r\nSetup hexagon: Status: Poll: None, Port 8080 bound: True, Time Left: 1:44:25.757481\r\nSetup hexagon: Bound port detected on 8080\r\nINFO:root:Executed setup.sh, returning 0\r\nINFO:root:Sleeping 60 seconds to ensure framework is ready\r\nINFO:root:Verifying framework URLs\r\nAccessing URL http://127.0.0.1:8080/hexagon/db:\r\nWARNING:root:Verifying test db for hexagon caused an exception: timed out\r\n   FAIL for http://127.0.0.1:8080\r\n\r\n     Caused Exception in TFB\r\n                 This almost certainly means your return value is incorrect,\r\n                 but also that you have found a bug. Please submit an issue\r\n                 including this message: timed out\r\n     Traceback (most recent call last):\r\n       File \"/home/vagrant/FrameworkBenchmarks/toolset/benchmark/framework_test.py\", line 395, in verify_type\r\n         results = test.verify(base_url)\r\n       File \"/home/vagrant/FrameworkBenchmarks/toolset/benchmark/test_types/db_type.py\", line 27, in verify\r\n         headers, body = self.request_headers_and_body(url)\r\n       File \"/home/vagrant/FrameworkBenchmarks/toolset/benchmark/test_types/framework_test_type.py\", line 85, in request_headers_and_body\r\n         r = requests.get(url, timeout=15, headers=headers)\r\n       File \"/usr/lib/python2.7/dist-packages/requests/api.py\", line 55, in get\r\n         return request('get', url, **kwargs)\r\n       File \"/usr/lib/python2.7/dist-packages/requests/api.py\", line 44, in request\r\n         return session.request(method=method, url=url, **kwargs)\r\n       File \"/usr/lib/python2.7/dist-packages/requests/sessions.py\", line 455, in request\r\n         resp = self.send(prep, **send_kwargs)\r\n       File \"/usr/lib/python2.7/dist-packages/requests/sessions.py\", line 558, in send\r\n         r = adapter.send(request, **kwargs)\r\n       File \"/usr/lib/python2.7/dist-packages/requests/adapters.py\", line 394, in send\r\n         r.content\r\n       File \"/usr/lib/python2.7/dist-packages/requests/models.py\", line 679, in content\r\n         self._content = bytes().join(self.iter_content(CONTENT_CHUNK_SIZE)) or bytes()\r\n       File \"/usr/lib/python2.7/dist-packages/requests/models.py\", line 616, in generate\r\n         decode_content=True):\r\n       File \"/usr/lib/python2.7/dist-packages/urllib3/response.py\", line 225, in stream\r\n         data = self.read(amt=amt, decode_content=decode_content)\r\n       File \"/usr/lib/python2.7/dist-packages/urllib3/response.py\", line 174, in read\r\n         data = self._fp.read(amt)\r\n       File \"/usr/lib/python2.7/httplib.py\", line 602, in read\r\n         s = self.fp.read(amt)\r\n       File \"/usr/lib/python2.7/socket.py\", line 380, in read\r\n         data = self._sock.recv(left)\r\n     timeout: timed out\r\n     See http://frameworkbenchmarks.readthedocs.org/en/latest/Project-Information/Framework-Tests/#specific-test-requirements\r\n```\r\n\r\n\r\n# Resin logs\r\n\r\n```\r\nvagrant@tfb-all:~/FrameworkBenchmarks$ tail -n 55 /home/vagrant/FrameworkBenchmarks/installs/resin-4.0.48/log/jvm-default.log   \r\n[19:34:38.153] http listening to *:8080\r\n[19:34:38.155] \r\n[19:34:38.156] Resin[id=default] started in 3692ms\r\n[19:35:39.472] HCANN000001: Hibernate Commons Annotations {4.0.5.Final}\r\n[19:35:39.479] HHH000412: Hibernate Core {4.3.6.Final}\r\n[19:35:39.482] HHH000206: hibernate.properties not found\r\n[19:35:39.485] HHH000021: Bytecode provider name : javassist\r\n[19:35:39.505] HHH000043: Configuring from resource: /hibernate.cfg.xml\r\n[19:35:39.505] HHH000040: Configuration resource: /hibernate.cfg.xml\r\n[19:35:39.558] HHH000223: Recognized obsolete hibernate namespace http://hibernate.sourceforge.net/. Use namespace http://www.hibernate.org/dtd/ instead. Refer to Hibernate 3.6 Migration Guide!\r\n[19:35:39.583] HHH000041: Configured SessionFactory: null\r\n[19:35:40.017] HHH000400: Using dialect: org.hibernate.dialect.MySQLDialect\r\n[19:35:40.165] HHH000399: Using default transaction strategy (direct JDBC transactions)\r\n[19:35:40.170] HHH000397: Using ASTQueryTranslatorFactory\r\n[19:35:40.221] HV000001: Hibernate Validator 4.3.0.Final\r\nResin-4.0.48 (built Wed, 17 Feb 2016 11:01:17 PST)\r\nCopyright(c) 1998-2012 Caucho Technology.  All rights reserved.\r\n\r\n  Using Resin(R) Open Source under the GNU Public License (GPL).\r\n\r\n  See http://www.caucho.com for information on Resin Professional,\r\n  including caching, clustering, JNI acceleration, and OpenSSL integration.\r\n\r\nStarting Resin on Tue, 27 Dec 2016 23:22:45 +0000 (UTC)\r\n\r\n[23:22:45.904] \r\n[23:22:45.905] Resin-4.0.48 (built Wed, 17 Feb 2016 11:01:17 PST)\r\n[23:22:45.905] \r\n[23:22:45.905] Linux 3.13.0-105-generic amd64\r\n[23:22:45.905] Java(TM) SE Runtime Environment 1.8.0_111-b14, UTF-8, en\r\n[23:22:45.905] Java HotSpot(TM) 64-Bit Server VM 25.111-b14, 64, mixed mode, Oracle Corporation\r\n[23:22:45.905] \r\n[23:22:45.905] user.name  = vagrant\r\n[23:22:46.013] Table[mnode:2,/home/vagrant/FrameworkBenchmarks/installs/resin-4.0.48/resin-data/default/distcache/mnode.db] validating indexes due to unclean shutdown.\r\n[23:22:46.033] Table[data:3,/home/vagrant/FrameworkBenchmarks/installs/resin-4.0.48/resin-data/default/distcache/data.db] validating indexes due to unclean shutdown.\r\n[23:22:46.046] \r\n[23:22:46.046] resin.home = /home/vagrant/FrameworkBenchmarks/installs/resin-4.0.48/\r\n[23:22:46.046] resin.root = /home/vagrant/FrameworkBenchmarks/installs/resin-4.0.48\r\n[23:22:46.046] resin.conf = /home/vagrant/FrameworkBenchmarks/installs/resin-4.0.48/conf/resin.xml\r\n[23:22:46.046] \r\n[23:22:46.046] server    = 127.0.0.1:-1 (:default)\r\n[23:22:46.046] stage      = production\r\n[23:22:48.021] servlet-mapping *.jsp -> resin-jsp\r\n[23:22:48.021] servlet-mapping *.jspf -> resin-jsp\r\n[23:22:48.021] servlet-mapping *.jspx -> resin-jspx\r\n[23:22:48.031] servlet-mapping *.php -> resin-php\r\n[23:22:48.031] servlet-mapping / -> resin-file\r\n[23:22:48.087] In-place class redefinition (HotSwap) is available.\r\n[23:22:48.442] WebApp[production/webapp/default/hexagon] active\r\n[23:22:48.443] Host[production/host/default] active\r\n[23:22:48.444] ServletService[id=default,cluster=] active\r\n[23:22:48.444] \r\n[23:22:48.450] http listening to *:8080\r\n[23:22:48.458] \r\n[23:22:48.461] Resin[id=default] started in 3351ms\r\n```\r\n\r\nIf you need any other info, just write me"}}
{"actor":{"display_login":"nbrady-techempower"}}