Bug 17168 - Webui can't connect to the WebSocket Server on the first run
Summary: Webui can't connect to the WebSocket Server on the first run
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 5
Hardware: All Linux
Priority: Normal major
Target Milestone: ---
Assignee: David GEIGER
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-11-18 15:54 CET by Kristoffer Grundström
Modified: 2017-05-03 07:24 CEST (History)
2 users (show)

See Also:
Source RPM: phoronix-test-suite-5.0.1-4.mga5
CVE:
Status comment:


Attachments
screenshot of working webgui (125.27 KB, image/png)
2016-09-27 08:24 CEST, David GEIGER
Details
Output from trying to start the Phoronix Test Suite GUI (7.34 KB, text/x-log)
2016-09-28 14:48 CEST, Kristoffer Grundström
Details

Description Kristoffer Grundström 2015-11-18 15:54:04 CET
Description of problem: I did a fresh installation of Mageia 5, using 4.1.12-desktop-1.mga5 as kernel (both 5.0.1, 5.8.1 and also the latest stable version 6.0.0 that I built without a problem with the spec-file from Cauldron) and on all versions of running the Phoronix Test Suite webui in firefox-38.4.0-1.mga5 I see the message that Phoronix Test Suite is connecting to the WebSocket Server, but after waiting at least 20 minutes to see if it has proceeded to something else, nothing has happened. It just says "Connecting To WebSocket Server...".

After you've runned the command phoronix-test-suite start-remote-gui-server I see this line in the end:

"You must first configure the remote GUI/WEBUI settings via:/etc/phoronix-test-suite.xml"

If I run phoronix-test-suite gui I get this error:

To start server run new script: /tmp/tmp.ApzUObxlZU/web-server-launcher
PHP 5.6.15 Development Server started at Wed Nov 18 15:46:46 2015
Listening on http://localhost:5491
Document root is /usr/share/phoronix-test-suite/pts-core/web-interface
Press Ctrl-C to quit.
PHP Fatal error:  Call to undefined function pcntl_signal() in /usr/share/phoronix-test-suite/pts-core/objects/pts_web_socket.php on line 36
Launching Browser

(process:8992): GLib-CRITICAL **: g_slice_set_config: assertion 'sys_page_size == 0' failed
Press [ENTER] to kill server...
/tmp/tmp.ApzUObxlZU/web-server-launcher: rad 14: kill: (8935) - The process does not exist
/tmp/tmp.ApzUObxlZU/web-server-launcher: rad 15:  8936 Finished                php -S localhost:5491 -t /usr/share/phoronix-test-suite/pts-core/web-interface/ 2> /dev/null

There's no such message in a pop-up window when you start Phoronix Test Suite from the Program menu which seems odd if this program also is meant to be used by non-professional users.

Version-Release number of selected component (if applicable): 6.0.0

How reproducible: 3 times.

Steps to Reproduce:
1. Open rpmdrake.
2. Install phoronix-test-suite.
3. Run Phoronix Test Suite from the Program menu.
4. Webui opens, but nothing happens.


Reproducible: 

Steps to Reproduce:
Kristoffer Grundström 2015-11-18 15:54:19 CET

Priority: Normal => High

Comment 1 Samuel Verschelde 2015-12-07 13:37:28 CET
Assigning to maintainer.

Priority: High => Normal
Assignee: bugsquad => geiger.david68210

Comment 2 David GEIGER 2015-12-18 22:29:47 CET
So ok!

I have updated phoronix-test-suite to latest upstream 6.0.1 release for Cauldron and mga5 too in 5/Core/Updates_testing repo.

Please test if this release fixes issues.

Thanks in advance!

Source RPM: phoronix-test-suite => phoronix-test-suite-5.0.1-4.mga5

Comment 3 Kristoffer Grundström 2015-12-19 05:47:19 CET
Still the same problem.

I even tested with the latest git revision and the same problem still persists.

I ran ./phoronix-test-suite start-ws-server and then I ran ./phoronix-test-suite start-ws-server and the WebSocket server still can't connect.

I tried running /tmp/tmp.I5rvfX1hjp/web-server-launcher

The only error I see is: PHP Fatal error:  Call to undefined function pcntl_signal() in /home/kristoffer/Skrivbord/phoronix-test-suite/pts-core/objects/pts_web_socket.php on line 36

If I run PTS in Ubuntu it works just fine.
Comment 4 Kristoffer Grundström 2015-12-19 06:02:24 CET
According to a search on the Call to undefined function pcntl_signal() error it seems like the PHP version is the cause.

It needs to be compiled with pcntl functions.

I installed php-pcntl as the spec didn't have this as a dependancy and starting the ws-server once again from the command line gave me this error:

PHP Fatal error:  Call to undefined function socket_create_listen() in /usr/share/phoronix-test-suite/pts-core/objects/pts_web_socket.php on line 40

The PHP version seems to be broken.
Comment 5 Kristoffer Grundström 2015-12-19 06:08:38 CET
I also checked if the phoronix-test-suite.xml from the description of this report in /etc/ exists, but it doesn't.

[kristoffer@localhost Desktop]$locate phoronix-test-suite.xml
[kristoffer@localhost Desktop]$

I even used the find command to search for it.

[kristoffer@localhost Desktop]$ find phoronix-test-suite.xml
find: "phoronix-test-suite.xml": File or directory does not exist
Comment 6 Kristoffer Grundström 2015-12-19 06:17:21 CET
https://bbs.archlinux.org/viewtopic.php?id=178693 shows the same error, but the solution to run /home/kristoffer/.phoronix-test-suite/web-server-launcher didn't work as no such file exist in that dir.

[kristoffer@localhost ~]$ ls -l .phoronix-test-suite/
totalt 52
-rw------- 1 kristoffer kristoffer 1741 dec 19 05:57 core.pt2so
drwxrwxr-x 2 kristoffer kristoffer 4096 dec 19 05:26 download-cache/
-rw-rw-r-- 1 kristoffer kristoffer  955 dec 19 05:57 graph-config.json
drwxrwxr-x 2 kristoffer kristoffer 4096 dec 19 05:26 installed-tests/
drwxrwxr-x 2 kristoffer kristoffer 4096 dec 19 05:26 modules/
drwxrwxr-x 2 kristoffer kristoffer 4096 dec 19 05:26 modules-data/
drwxrwxr-x 4 kristoffer kristoffer 4096 dec 19 05:26 openbenchmarking.org/
-rw------- 1 kristoffer kristoffer 2405 dec 19 05:57 temp.pt2so
drwxrwxr-x 3 kristoffer kristoffer 4096 dec 19 05:26 test-profiles/
drwxrwxr-x 2 kristoffer kristoffer 4096 dec 19 05:26 test-results/
drwxrwxr-x 3 kristoffer kristoffer 4096 dec 19 05:26 test-suites/
-rw-rw-r-- 1 kristoffer kristoffer 2878 dec 19 05:26 user-config.xml
drwxrwxr-x 2 kristoffer kristoffer 4096 dec 19 05:26 xsl/
Florian Hubold 2015-12-29 17:04:40 CET

CC: (none) => doktor5000

Comment 7 Kristoffer Grundström 2016-09-27 00:36:28 CEST
Any news on this, David?
Comment 8 David GEIGER 2016-09-27 08:24:27 CEST
Created attachment 8453 [details]
screenshot of working webgui

Hi Kristoffer,

So ok, should be fixed now with phoronix-test-suite-6.6.0-1.mga5 and phoronix-test-suite-6.6.0-1.mga6.

I added some missing required packages and also updated to the latest stable upstream release.

I tested here on both mga5 and mga6 and now the GUI Web starts and runs properly.
Comment 9 Kristoffer Grundström 2016-09-28 14:48:23 CEST
Created attachment 8460 [details]
Output from trying to start the Phoronix Test Suite GUI
Comment 10 David GEIGER 2016-09-28 14:51:46 CEST
Remove your old config file: mv ~/.phoronix-test-suite ~/.phoronix-test-suite.bak

And run:

$ phoronix-test-suite gui
Comment 11 Kristoffer Grundström 2016-09-28 14:54:14 CEST
Should I be worried about seeing this as the GUI starts?

[6247:6247:0928/145241:ERROR:whitelist.cc(64)] Component extension with id nmmhkkegccagdldgiimedpiccmgmieda not in whitelist and is not being loaded as a result.
Kristoffer Grundström 2016-09-28 14:56:03 CEST

CC: (none) => hamnisdude

Comment 12 Kristoffer Grundström 2017-05-03 07:24:06 CEST
Problem seems solved in Mageia 6 (Cauldron) so closing as RESOLVED FIXED.

Status: NEW => RESOLVED
Resolution: (none) => FIXED


Note You need to log in before you can comment on or make changes to this bug.