cloud-functions-emulator icon indicating copy to clipboard operation
cloud-functions-emulator copied to clipboard

Emulator failed to load the config file from the configstore

Open roeyazroel opened this issue 8 years ago • 2 comments

Description

I moved from n to nvm and since than the emulator stop working

The result of: functions-emulator status:

│ Google Cloud Functions Emulator                                             │
├──────────────────┬──────────────────────────────────────────────────────────┤
│ Status           │ RUNNING                                                  │
├──────────────────┼──────────────────────────────────────────────────────────┤
│ Uptime           │ NaN seconds                                              │
├──────────────────┼──────────────────────────────────────────────────────────┤
│ Process ID       │                                                          │
├──────────────────┼──────────────────────────────────────────────────────────┤
│ REST Service     │ http://undefined:undefined/                              │
├──────────────────┼──────────────────────────────────────────────────────────┤
│ gRPC Service     │ http://undefined:undefined/                              │
├──────────────────┼──────────────────────────────────────────────────────────┤
│ HTTP Triggers    │ http://undefined:undefined/undefined/undefined/:function │
├──────────────────┼──────────────────────────────────────────────────────────┤
│ Log file         │                                                          │
├──────────────────┼──────────────────────────────────────────────────────────┤
│ Emulator Version │                                                          │
└──────────────────┴──────────────────────────────────────────────────────────┘

Not sure where the config should be store, but the path on my mac is:

~/.config/configstore/Users/roeyazroel/.config/configstore/@google-cloud/functions-emulator/config.json

I've removed any previews installation and files, and reinstall everything couple of times.

Steps to reproduce

Install 6.11.1 using n uninstall n install nvm install 6.11.1 using nvm

Thanks!

roeyazroel avatar Aug 31 '17 11:08 roeyazroel

Can you please post here the output of functions config --list?

jmdobry avatar Sep 06 '17 03:09 jmdobry

@jmdobry

roeyazroel@ip-10-10-20-101  ~/Library/Mobile Documents/com~apple~CloudDocs/Documents/IdeaProjects  functions-emulator config list                 1 ↵  1377  10:22:27
Run functions config --help for a description of the available configuration options.

Config file: /Users/roeyazroel/.config/configstore/@google-cloud/functions-emulator/config.json
┌───────────────────┬───────────────────────────────────┐
│ Key               │ Value                             │
├───────────────────┼───────────────────────────────────┤
│ bindHost          │ localhost                         │
├───────────────────┼───────────────────────────────────┤
│ grpcPort          │ 8009                              │
├───────────────────┼───────────────────────────────────┤
│ idlePruneInterval │ 60000                             │
├───────────────────┼───────────────────────────────────┤
│ logFile           │ logs/cloud-functions-emulator.log │
├───────────────────┼───────────────────────────────────┤
│ maxIdle           │ 300000                            │
├───────────────────┼───────────────────────────────────┤
│ region            │ us-central1                       │
├───────────────────┼───────────────────────────────────┤
│ restPort          │ 8008                              │
├───────────────────┼───────────────────────────────────┤
│ service           │ rest                              │
├───────────────────┼───────────────────────────────────┤
│ storage           │ configstore                       │
├───────────────────┼───────────────────────────────────┤
│ supervisorPort    │ 8010                              │
├───────────────────┼───────────────────────────────────┤
│ tail              │ false                             │
├───────────────────┼───────────────────────────────────┤
│ timeout           │ 20000                             │
├───────────────────┼───────────────────────────────────┤
│ useMocks          │ false                             │
├───────────────────┼───────────────────────────────────┤
│ verbose           │ false                             │
├───────────────────┼───────────────────────────────────┤
│ watch             │ true                              │
├───────────────────┼───────────────────────────────────┤
│ watchIgnore       │ node_modules                      │
├───────────────────┼───────────────────────────────────┤
│ projectId         │ bbtr-dev                          │
└───────────────────┴───────────────────────────────────┘

roeyazroel avatar Sep 06 '17 07:09 roeyazroel