Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • M mw
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 18
    • Issues 18
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • milliways
  • mw
  • Issues
  • #26
Closed
Open
Created Jun 21, 2017 by Isabel Jenkins@unreturnableContributor

WebMW socket error

So I've been looking into why WebMW broke. The initial error is on say.js:333 Uncaught TypeError: data.sort is not a function. This is just because its receiving an unexpected json object instead of the data it expects. The object it gets is this:

{
  "status": "Socket open error",
  "detail": "socket_connect(): unable to connect [2]: No such file or directory",
  "path": "/var/run/mw/mwpoll.8396"
}

This error is raised from send.php

$sock = socket_create(AF_UNIX, SOCK_SEQPACKET, 0);
if (@socket_connect($sock, $path) === FALSE) {
	echo "{";
	echo "\"status\":\"Socket open error\"";
	$err = error_get_last();
	echo ",\"detail\":\"".$err['message']."\"";
	echo ",\"path\":\"".$path."\"";
	echo "}\n";
	exit;
}

As far as I can understand it the socket does not exist when php tries to connect to it which suggests an issue in the C code. I could do with some help with looking into that part though.

Assignee
Assign to
Time tracking