GES 3.4.0 $stats streams doesn't run

I noticed this the other day, but forgot to report it. The recently created streams returns a 404 in the webui.

I’m on OSX.

Thank you Brian,
Since that requires the $streams projection to be running we should improve the UI and not be making that request in the UI if that projection is not enabled and running.

Why does enable projection request returns 404 for $streams ?

See previous post re: url encoding

http -a admin:changeit POST ‘http://10.8.58.13:2113/projection/%24streams/command/enable

HTTP/1.1 404 Not Found
Access-Control-Allow-Headers: Content-Type, X-Requested-With, X-Forwarded-Host, X-PINGOTHER, Authorization, ES-LongPoll, ES-ExpectedVersion, ES-EventId, ES-EventType, ES-RequiresMaster, ES-HardDelete, ES-ResolveLinkTo, ES-ExpectedVersion
Access-Control-Allow-Methods: POST, OPTIONS
Access-Control-Allow-Origin: *
Access-Control-Expose-Headers: Location, ES-Position
Content-Length: 9
Content-Type: text/plain; charset=utf-8
Keep-Alive: timeout=15,max=100
Server: Mono-HTTPAPI/1.0

Not Found

What is

http -a admin:changeit POST ‘http://10.8.58.13:2113/gossip

Sorry

GET

HTTP/1.1 200 OK
Access-Control-Allow-Headers: Content-Type, X-Requested-With, X-Forwarded-Host, X-PINGOTHER, Authorization, ES-LongPoll, ES-ExpectedVersion, ES-EventId, ES-EventType, ES-RequiresMaster, ES-HardDelete, ES-ResolveLinkTo, ES-ExpectedVersion
Access-Control-Allow-Methods: GET, POST, OPTIONS
Access-Control-Allow-Origin: *
Access-Control-Expose-Headers: Location, ES-Position
Cache-Control: max-age=0, no-cache, must-revalidate
Content-Length: 2376
Content-Type: application/json; charset=utf-8
Keep-Alive: timeout=15,max=100
Server: Mono-HTTPAPI/1.0
Vary: Accept

{
    "members": [
        {
            "chaserCheckpoint": 503152638,
            "epochId": "1a4974da-e5b4-404b-bdcb-aaaa7a9dc726",
            "epochNumber": 166,
            "epochPosition": 493187931,
            "externalHttpIp": "10.8.58.13",
            "externalHttpPort": 2114,
            "externalSecureTcpPort": 0,
            "externalTcpIp": "10.8.58.13",
            "externalTcpPort": 1112,
            "instanceId": "3107590d-7b79-43cf-a174-5457d03d5e7a",
            "internalHttpIp": "10.8.58.13",
            "internalHttpPort": 2113,
            "internalSecureTcpPort": 0,
            "internalTcpIp": "10.8.58.13",
            "internalTcpPort": 1111,
            "isAlive": true,
            "lastCommitPosition": 503152035,
            "nodePriority": 0,
            "state": "Slave",
            "timeStamp": "2016-02-12T13:27:36.373871Z",
            "writerCheckpoint": 503152638
        },
        {
            "chaserCheckpoint": 503152638,
            "epochId": "1a4974da-e5b4-404b-bdcb-aaaa7a9dc726",
            "epochNumber": 166,
            "epochPosition": 493187931,
            "externalHttpIp": "10.8.58.12",
            "externalHttpPort": 2114,
            "externalSecureTcpPort": 0,
            "externalTcpIp": "10.8.58.12",
            "externalTcpPort": 1112,
            "instanceId": "8d66622a-2ef5-4d93-8652-3cb3aef35a0c",
            "internalHttpIp": "10.8.58.12",
            "internalHttpPort": 2113,
            "internalSecureTcpPort": 0,
            "internalTcpIp": "10.8.58.12",
            "internalTcpPort": 1111,
            "isAlive": true,
            "lastCommitPosition": 503152035,
            "nodePriority": 0,
            "state": "Slave",
            "timeStamp": "2016-02-12T13:27:36.108819Z",
            "writerCheckpoint": 503152638
        },
        {
            "chaserCheckpoint": 503152638,
            "epochId": "1a4974da-e5b4-404b-bdcb-aaaa7a9dc726",
            "epochNumber": 166,
            "epochPosition": 493187931,
            "externalHttpIp": "10.8.58.11",
            "externalHttpPort": 2114,
            "externalSecureTcpPort": 0,
            "externalTcpIp": "10.8.58.11",
            "externalTcpPort": 1112,
            "instanceId": "b4adbc35-b9e4-46f1-9b7b-f95456617633",
            "internalHttpIp": "10.8.58.11",
            "internalHttpPort": 2113,
            "internalSecureTcpPort": 0,
            "internalTcpIp": "10.8.58.11",
            "internalTcpPort": 1111,
            "isAlive": true,
            "lastCommitPosition": 503152035,
            "nodePriority": 0,
            "state": "Master",
            "timeStamp": "2016-02-12T13:27:36.111237Z",
            "writerCheckpoint": 503152638
        }
    ],
    "serverIp": "10.8.58.13",
    "serverPort": 2113
}

What is the result of

curl -i -X GET http://10.8.58.11:2114/projections/any -u admin:changeit

``

If you see $streams in there and the status is Stopped you should be should be able to enable it by running the following.

curl -i -X POST -d {} http://10.8.58.11:2114/projection/%24streams/command/enable -u admin:changeit

``

Example response.

curl -i -X POST -d {} http://localhost:2113/projection/%24streams/command/enable -u admin:changeit

``

HTTP/1.1 200 OK

Access-Control-Allow-Methods: POST, OPTIONS

Access-Control-Allow-Headers: Content-Type, X-Requested-With, X-Forwarded-Host, X-PINGOTHER, Authorization, ES-LongPoll, ES-ExpectedVersion, ES-EventId, ES-EventType, ES-RequiresMaster, ES-HardDelete, ES-ResolveLinkTo, ES-ExpectedVersion

Access-Control-Allow-Origin: *

Access-Control-Expose-Headers: Location, ES-Position

Content-Type: application/json; charset=utf-8

Server: Mono-HTTPAPI/1.0

Content-Length: 44

Keep-Alive: timeout=15,max=100

{

“msgTypeId”: 277,

“name”: “$streams”

}%

All I see is $by_category, $stream_by_category and a couple of my projections. There is no $streams.

Are you running commands to .11 (master?)

Yes. Result is the same on all nodes.

I'd say we need to see some logs (preferably from a restart with debug
level enabled) to look further at anything