firebase / firebase/firebase-tools

CLI throwing error needs restart

Open
#2,163 8 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
4.5k
Forks
1.3k
Avg merge
1d 12h
Merged PRs (30d)
84

Description

### [REQUIRED] Environment info

**firebase-tools:** 8.1.1

**Platform:** Windows 10

### [REQUIRED] Test case

Have tried to recreate the issue, but have not yet found out, hopefully the logs will help

### [REQUIRED] Steps to reproduce

No way to reproduce it yet as mentioned above

### [REQUIRED] Expected behavior

The CLI should continue working

### [REQUIRED] Actual behavior

When it happends, none of the commands I usually use work anymore:
```
firebase deploy --only hosting
firebase deploy --only firestore:rules
firebase firestore:indexe
...
```

The output seems to be the same with all commands (adding --debug)

> [2020-04-23T19:29:19.561Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
> [2020-04-23T19:29:19.564Z] > authorizing via signed-in user
> [2020-04-23T19:29:19.568Z] [iam] checking project fireauthentest for permissions ["datastore.indexes.list","firebase.projects.get"]
> [2020-04-23T19:29:19.597Z] >>> HTTP REQUEST POST https://cloudresourcemanager.googleapis.com/v1/projects/fireauthentest:testIamPermissions
> {"permissions":["datastore.indexes.list","firebase.projects.get"]}
> [2020-04-23T19:29:19.658Z] Error: EPERM: operation not permitted, stat

Contributor guide

Open the contributing guide

Research direction

No source file, test, or reproducible sequence is mentioned. Start by investigating the provided --debug output and the affected Firebase CLI commands on Windows 10; done means the commands continue working without the EPERM stat error and the failure can be reproduced by a test case.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
cli
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.