You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/PROBLEMS.md
+18-17Lines changed: 18 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,36 +20,41 @@ General troubleshooting steps:
20
20
21
21
- Ensure direnv is set up properly with `direnv allow`. See the [development environment setup](DEVELOPER.md) if you have not done so already. If nothing else works, at the very least, run `source .env`.
22
22
23
-
- Start and seed the MongoDB database: `yarn db`
24
-
25
-
- Make sure the database is running by running `yarn start:dev` (should see 'Database Connected' in your terminal)
23
+
- Make sure the database is running by running `yarn restart` (should see 'Database Connected' in your terminal)
26
24
27
25
- Make sure database is seeded by either checking the data in Robo 3T if you downloaded that (see [development environment setup](DEVELOPER.md)) or by trying to log in with Kevin's credentials (check them in the `Personas` story in the Icebox on Pivotal Tracker)
28
26
27
+
**Problem**:
28
+
29
+
```
30
+
Database connection error { MongoNetworkError: failed to connect to server [127.0.0.1:27017] on first connect [MongoNetworkError: connect ECONNREFUSED 127.0.0.1:27017]
31
+
```
32
+
33
+
**Solution**: Try [here](#addressinuse), followed by `yarn restart`
34
+
29
35
## <aname="addressinuse"></a> Address/port already in use
@@ -74,12 +79,8 @@ info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this comm
74
79
75
80
**Problem**: I am not seeing anything once I view the app at `localhost:3000`.
76
81
77
-
**Solution**: `yarn db`
82
+
**Solution**: `yarn restart`
78
83
79
84
## <aname="tests"></a> Test Errors
80
85
81
86
General information about testing can be found in the [test docs](./TESTS.md).
82
-
83
-
**Problem**: I tried to run the end-to-end (e2e) tests and they failed.
84
-
85
-
**Solution**: Make sure the app is freshly running with `yarn restart` before you run the e2e tests in another terminal. If this isn't the issue, then it is possible you have introduced breaking changes that are causing them to fail.
You can run the e2e tests with `yarn e2e`. This will stop all docker containers, clear the necessary ports, start the containers and the app, and then run the tests.
0 commit comments