# Troubleshooting

Common issues and how to fix them.

## Axios 404 error in the client

The sever is not running or the client can not reach it.

Often the node server will not start because there is already an instance of node running on port 8080. Kill the other instances and try again.

```javascript
killall node
npm run dev // or nodemon in server folder
```

When the server is running you will see the `Welcome to Gravity 🚀` message in your terminal console.

***

## CLI toolbet command not found

The setup script will run `npm link` but sometimes it may fail, run it again manually.

```javascript
npm link
```

***

## Setup script did not complete

This is usually an issue on certain windows shells.

Replace the ; in the `setup` script in `package.json` with &&

```javascript
"setup": "node bin/installcheck && npm install && npm link && node bin/clientcheck && cd ../client && npm install && cd ../server && node bin/appcheck && cd ../app && npm install && cd ../server && node bin/setup.js && npm run dev",
```

***

## Email template not found

Run the seed file to populate the database.

```
// sql
node seeds/sql

// mongo
node seeds/mongo
```

***

## Can't log into Mission Control

`TOKEN_SECRET` in your Mission Control .`env` file does not match the `TOKEN_SECRET` in `/server`.

***

### MSSQL Data Type Mismatch

MSSQL uses NVARCHAR for the foreign key IDs. If you're using MSSQL you will need to update each specificType ID column in the migrations:\
\
Change:\
`table.specificType('id', 'char(36) primary key');`&#x20;

To:

`table.string('id', 36).notNullable().primary();`&#x20;
