Server works when using up start but gets error: "waiting to be in listening state" on staging enviroment
- Vorherrschende Sprache
- Go
- Sterne
- 8.8k
- Forks
- 383
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
## Prerequisites
* [x] I am running the latest version. (`up upgrade`)
* [x] I searched to see if the issue already exists.
* [x] I inspected the verbose debug output with the `-v, --verbose` flag.
* [ ] Are you an Up Pro subscriber?
## Description
After deploying my Prisma server using `up` I get this error when I navigate to the deployed URL: `{"message": "Internal server error"}` when checking logs I see the following
```
Mar 19th 01:39:26pm INFO staging 5e3a8b1 initializing
Mar 19th 01:39:26pm INFO staging 5e3a8b1 starting app: PORT=35343 command=ts-node index.ts
Mar 19th 01:39:26pm INFO staging 5e3a8b1 started app
Mar 19th 01:39:26pm INFO staging 5e3a8b1 waiting for app to listen on PORT
Mar 19th 01:39:41pm FATA staging 5e3a8b1 error creating handler: waiting for http://127.0.0.1:35343 to be in listening state: timed out after 15s: name=tracket-server type=server
Mar 19th 01:39:41pm INFO 2020-03-19T20:39:41.086Z d104c092-c99a-434a-a700-9adc30841dfe ERROR [shim] exit: code=1 signal=null
2.121s Mar 19th 01:39:41pm INFO REPORT RequestId: d104c092-c99a-434a-a700-9adc30841dfe Duration: 15134.81 ms Billed Duration: 15200 ms Memory Size: 512 MB Max Memory Used: 182 MB
DEBU request Mar 19th 01:39:41pm INFO RequestId: d104c092-c99a-434a-a700-9adc30841dfe Error: Runtime exited with error: exit status 1
Runtime.ExitError
```
However when running the deployment server using `up start -v` I get a working server and the following output in my console:
```
⠋ 7ms DEBU up version 1.5.1 (os: darwin, arch: amd64) Mar 19th 01:41:49pm DEBU inferred runtime: type=node
Mar 19th 01:41:49pm DEBU 1 regions from config
Mar 19th 01:41:49pm DEBU track "Start" map[address:localhost:3000 arch:amd64 ci:false has_command:false os:darwin version:1.5.1]
Mar 19th 01:41:49pm INFO starting app: PORT=63980 command=ts-node index.ts
Mar 19th 01:41:49pm INFO started app
Mar 19th 01:41:49pm INFO waiting for app to listen on PORT
⠸ 8.403s DEBU up version 1.5.1 (os: darwin, arch: amd64) Mar 19th 01:41:58pm INFO Server is running on http://localhost:63980
⠋ 9.101s DEBU up version 1.5.1 (os: darwin, arch: amd64) Mar 19th 01:41:59pm INFO app listening: duration=9.098s
Mar 19th 01:41:59pm DEBU header rules from _headers file: 0
Mar 19th 01:41:59pm DEBU header rules from up.json: 0
Mar 19th 01:41:59pm INFO listening: address=http://localhost:3000
⠸ 26.401s DEBU up version 1.5.1 (os: darwin, arch: amd64) Mar 19th 01:42:16pm INFO request: ip=127.0.0.1:64053 method=GET path=/
Mar 19th 01:42:16pm INFO response: duration=23ms ip=127.0.0.1:64053 method=GET path=/ size=3.0 kB status=200
⠼ 28.501s DEBU up version 1.5.1 (os: darwin, arch: amd64) Mar 19th 01:42:18pm INFO request: ip=127.0.0.1:64060 method=POST path=/ size=1.5 kB
```
## Repo: https://github.com/tracket-dev/tracket-server
Beitragsleitfaden
Bewertung
Dieses Issue wurde noch nicht bewertet.