Cannot create projections

Hi

Playing with ES 3.0.3 and running locally as single cluster, I can’t get to create a projection. Keep getting an error at the bottom (see attached).

Is this the correct place to create projections?

http://127.0.0.1:2113/web/index.html#/projections/new

Thanks,

Qudoos

Screen Shot 2015-11-29 at 8.13.49 PM.png

we can't see attached (localhost uri)

Yes, you are able to create projections via the UI.
What error did you see in the console where Event Store is running when you tried to create the projection?

the url is http://127.0.0.1:2113/web/index.html#/projections

I noticed the error message keeps coming on this page as well (not just the page where I add)

Screen Shot 2015-11-30 at 9.36.34 AM.png

I dont see any error in the console app.

A bunch of stuff gets printed out when you start the node, can you
copy/paste what gets printed out?

here goes…Thanks Greg.

Microsoft Windows [Version 10.0.10586]

© 2015 Microsoft Corporation. All rights reserved.

C:\EventStore>EventStore.ClusterNode.exe --db ./db --log ./logs

[03984,01,14:32:38.166]

ES VERSION: 3.3.0.0 (release-v3.3.0/4923f4c0f427a85a275f362402e62645bca38c07, Wed, 7 Oct 2015 07:37:39 +0200)

OS: Windows (Microsoft Windows NT 6.2.9200.0)

RUNTIME: .NET 4.0.30319.42000 (64-bit)

GC: 3 GENERATIONS

LOGS: C:\EventStore\logs

MODIFIED OPTIONS:

DB: ./db (Command Line)

LOG: ./logs (Command Line)

DEFAULT OPTIONS:

HELP: False ()

VERSION: False ()

CONFIG: ()

DEFINES: ()

WHAT IF: False ()

START STANDARD PROJECTIONS: False ()

DISABLE HTTP CACHING: False ()

MONO MIN THREADPOOL SIZE: 10 ()

INT IP: 127.0.0.1 ()

EXT IP: 127.0.0.1 ()

INT HTTP PORT: 2112 ()

EXT HTTP PORT: 2113 ()

INT TCP PORT: 1112 ()

INT SECURE TCP PORT: 0 ()

EXT TCP PORT: 1113 ()

EXT SECURE TCP PORT ADVERTISE AS: 0 ()

EXT SECURE TCP PORT: 0 ()

EXT IP ADVERTISE AS: ()

EXT TCP PORT ADVERTISE AS: 0 ()

EXT HTTP PORT ADVERTISE AS: 0 ()

INT IP ADVERTISE AS: ()

INT SECURE TCP PORT ADVERTISE AS: 0 ()

INT TCP PORT ADVERTISE AS: 0 ()

INT HTTP PORT ADVERTISE AS: 0 ()

INT TCP HEARTBEAT TIMEOUT: 700 ()

EXT TCP HEARTBEAT TIMEOUT: 1000 ()

INT TCP HEARTBEAT INTERVAL: 700 ()

EXT TCP HEARTBEAT INTERVAL: 2000 ()

FORCE: False ()

CLUSTER SIZE: 1 ()

NODE PRIORITY: 0 ()

MIN FLUSH DELAY MS: 2 ()

COMMIT COUNT: -1 ()

PREPARE COUNT: -1 ()

ADMIN ON EXT: True ()

STATS ON EXT: True ()

GOSSIP ON EXT: True ()

DISABLE SCAVENGE MERGING: False ()

DISCOVER VIA DNS: True ()

CLUSTER DNS: fake.dns ()

CLUSTER GOSSIP PORT: 30777 ()

GOSSIP SEED: ()

STATS PERIOD SEC: 30 ()

CACHED CHUNKS: -1 ()

CHUNKS CACHE SIZE: 536871424 ()

MAX MEM TABLE SIZE: 1000000 ()

MEM DB: False ()

SKIP DB VERIFY: False ()

RUN PROJECTIONS: None ()

PROJECTION THREADS: 3 ()

WORKER THREADS: 5 ()

INT HTTP PREFIXES: ()

EXT HTTP PREFIXES: ()

ENABLE TRUSTED AUTH: False ()

ADD INTERFACE PREFIXES: True ()

CERTIFICATE STORE LOCATION: ()

CERTIFICATE STORE NAME: ()

CERTIFICATE SUBJECT NAME: ()

CERTIFICATE THUMBPRINT: ()

CERTIFICATE FILE: ()

CERTIFICATE PASSWORD: ()

USE INTERNAL SSL: False ()

SSL TARGET HOST: n/a ()

SSL VALIDATE SERVER: True ()

AUTHENTICATION TYPE: internal ()

PREPARE TIMEOUT MS: 2000 ()

COMMIT TIMEOUT MS: 2000 ()

UNSAFE DISABLE FLUSH TO DISK: False ()

INDEX CACHE DEPTH: 16 ()

GOSSIP INTERVAL MS: 1000 ()

GOSSIP ALLOWED DIFFERENCE MS: 60000 ()

GOSSIP TIMEOUT MS: 500 ()

ENABLE HISTOGRAMS: False ()

[03984,01,14:32:38.197] Quorum size set to 1

[03984,01,14:32:38.197] Cannot find plugins path: C:\EventStore\plugins

[03984,01,14:32:38.266] INSTANCE ID: d2e83eb9-fbfe-4d7a-82fd-838571dcfdea

[03984,01,14:32:38.266] DATABASE: ./db

[03984,01,14:32:38.266] WRITER CHECKPOINT: 67643882 (0x40829EA)

[03984,01,14:32:38.266] CHASER CHECKPOINT: 67643882 (0x40829EA)

[03984,01,14:32:38.266] EPOCH CHECKPOINT: 66052348 (0x3EFE0FC)

[03984,01,14:32:38.266] TRUNCATE CHECKPOINT: -1 (0xFFFFFFFFFFFFFFFF)

[03984,01,14:32:38.328] MessageHierarchy initialization took 00:00:00.0369013.

[03984,01,14:32:38.629] CACHED TFChunk #0-0 (chunk-000000.000000) in 00:00:00.0468553.

[03984,01,14:32:38.882] Starting MiniWeb for /web/es/js/projections ==> C:\EventStore\projections

[03984,01,14:32:38.882] Starting MiniWeb for /web/es/js/projections/v8/Prelude ==> C:\EventStore\Prelude

[03984,01,14:32:38.882] Binding MiniWeb to /web/es/js/projections/{*remaining_path}

[03984,01,14:32:38.882] Binding MiniWeb to /web/es/js/projections/v8/Prelude/{*remaining_path}

[03984,01,14:32:38.882] Starting MiniWeb for /web ==> C:\EventStore\clusternode-web

[03984,01,14:32:38.882] Binding MiniWeb to /web/{*remaining_path}

[03984,13,14:32:38.898] ========== [127.0.0.1:2112] SYSTEM INIT…

[03984,13,14:32:38.914] Starting Normal TCP listening on TCP endpoint: 127.0.0.1:1113.

[03984,16,14:32:38.929] TableIndex initialization…

[03984,16,14:32:38.947] ReadIndex building…

[03984,13,14:32:38.947] Starting HTTP server on [http://127.0.0.1:2113/,http://localhost:2113/]…

[03984,13,14:32:38.947] HTTP server is up and listening on [http://127.0.0.1:2113/,http://localhost:2113/]

[03984,13,14:32:38.967] SLOW QUEUE MSG [MainQueue]: SystemInit - 53ms. Q: 0/4.

[03984,13,14:32:38.967] ========== [127.0.0.1:2112] Service ‘StorageReader’ initialized.

[03984,13,14:32:38.967] ========== [127.0.0.1:2112] Service ‘StorageWriter’ initialized.

[03984,16,14:32:39.029] ReadIndex rebuilding done: total processed 4587 records, time elapsed: 00:00:00.0821276.

[03984,13,14:32:39.052] ========== [127.0.0.1:2112] Service ‘StorageChaser’ initialized.

[03984,13,14:32:39.052] ========== [127.0.0.1:2112] SYSTEM START…

[03984,13,14:32:39.052] ========== [127.0.0.1:2112] IS UNKNOWN…

[03984,08,14:32:39.067] Subscriptions received state change to Unknown stopping listening.

[03984,13,14:32:39.083] ELECTIONS: STARTING ELECTIONS.

[03984,13,14:32:39.083] ELECTIONS: (V=0) SHIFT TO LEADER ELECTION.

[03984,13,14:32:39.083] ELECTIONS: (V=0) VIEWCHANGE FROM [127.0.0.1:2112, {d2e83eb9-fbfe-4d7a-82fd-838571dcfdea}].

[03984,13,14:32:39.083] ELECTIONS: (V=0) MAJORITY OF VIEWCHANGE.

[03984,13,14:32:39.083] ELECTIONS: (V=0) SHIFT TO PREPARE PHASE.

[03984,13,14:32:39.083] ELECTIONS: (V=0) PREPARE_OK FROM 127.0.0.1:2112,{d2e83eb9-fbfe-4d7a-82fd-838571dcfdea}.

[03984,13,14:32:39.083] ELECTIONS: (V=0) SHIFT TO REG_LEADER.

[03984,13,14:32:39.083] ELECTIONS: (V=0) SENDING PROPOSAL CANDIDATE: 127.0.0.1:2112,{d2e83eb9-fbfe-4d7a-82fd-838571dcfdea}, ME: 127.0.0.1:2112,{d2e83eb9-fbfe-4d7a-82fd-838571dcfdea}.

[03984,13,14:32:39.083] ELECTIONS: (V=0) ACCEPT FROM [127.0.0.1:2112,{d2e83eb9-fbfe-4d7a-82fd-838571dcfdea}] M=[127.0.0.1:2112,{d2e83eb9-fbfe-4d7a-82fd-838571dcfdea}]).

[03984,13,14:32:39.083] ELECTIONS: (V=0) DONE. ELECTED MASTER = 127.0.0.1:2112,{d2e83eb9-fbfe-4d7a-82fd-838571dcfdea}. ME=127.0.0.1:2112,{d2e83eb9-fbfe-4d7a-82fd-838571dcfdea}.

[03984,13,14:32:39.099] ========== [127.0.0.1:2112] PRE-MASTER STATE, WAITING FOR CHASER TO CATCH UP…

[03984,05,14:32:39.099] Subscriptions received state change to PreMaster stopping listening.

[03984,13,14:32:39.099] ========== [127.0.0.1:2112] IS MASTER… SPARTA!

[03984,06,14:32:39.099] Subscriptions Became Master so now handling subscriptions

[03984,07,14:32:39.168] SLOW QUEUE MSG [MonitoringQueue]: SystemInit - 238ms. Q: 0/3.

[03984,11,14:32:39.168] === Writing E8@67643882:{75210845-be99-4405-baf1-2d985c8d0f00} (previous epoch at 66052348).

[03984,11,14:32:39.183] === Update Last Epoch E8@67643882:{75210845-be99-4405-baf1-2d985c8d0f00} (previous epoch at 66052348).

[03984,06,14:32:39.199] Created stats stream ‘$stats-127.0.0.1:2113’, code = WrongExpectedVersion

RUN PROJECTIONS: None (<DEFAULT>)

You don't have projections enabled.

Try --run-projections=all

the best days are the ones when I realize early in the day what an idiot I am.

I see the projections tab now.

Thanks!

I also had the same pb. why aren’t projections enabled by default ?
it’s mentioned everywhere in the docs, so one naturally expects it to be there

Because they are in beta. Its an explicit opt-in to use them. And
where is it mentioned everywhere in the docs?