rstudio / plumber

Turn your R code into a web API.
https://www.rplumber.io
Other
1.39k stars 256 forks source link

Failed to create server #164

Closed jfdesomzee closed 6 years ago

jfdesomzee commented 7 years ago

Hello,

I had trouble with accent using pumbler under windows. As this is not my only issue involving windows and UTF-8 I decided to test it on a Linux machine.

I'm trying to run a simple example but I got the following message:

Running the swagger UI at http://10.10.62.169:80/__swagger__/ Error in startServer(host, port, app) : Failed to create server

Does anyone have an idea?

Thanks in advance

Jef

trestletech commented 7 years ago

It's possible that you have another process running on port 80 on that Linux host. See https://superuser.com/questions/42843/finding-the-process-that-is-using-a-certain-port-in-linux#42849 for some ideas on how to track that down.

trestletech commented 6 years ago

Closing due to inactivity. Please reopen if you believe there's still a bug.

a1002977 commented 6 years ago

i do have the same problem and no the issue occurs both on IBM Cloud (CF) and local.

trestletech commented 6 years ago

Can you provide information about your session, machine, and the commands/output you're seeing?

a1002977 commented 6 years ago

sure; i am running Ubuntu 16.04 and my commands are;

library(plumber)

appDir <- paste(getwd(), "api.R", sep="/") r <- plumb(appDir)

r$run(port=80)

The error message is;

local

r$run(port=80) Starting server to listen on port 80 Running the swagger UI at http://127.0.0.1:80/__swagger__/ Error in startServer(host, port, app) : Failed to create server

on IBM Cloud

2018-05-06T00:24:36.91+0200 [APP/PROC/WEB/0] OUT > 2018-05-06T00:24:36.91+0200 [APP/PROC/WEB/0] OUT > appDir <- paste(getwd(), "api.R", sep="/") 2018-05-06T00:24:36.91+0200 [APP/PROC/WEB/0] OUT > r <- plumb(appDir) 2018-05-06T00:24:36.97+0200 [APP/PROC/WEB/0] OUT > 2018-05-06T00:24:36.97+0200 [APP/PROC/WEB/0] ERR Starting server to listen on port 80 2018-05-06T00:24:36.97+0200 [APP/PROC/WEB/0] OUT > r$run(port=80) 2018-05-06T00:24:36.99+0200 [APP/PROC/WEB/0] ERR Error in startServer(host, port, app) : Failed to create server 2018-05-06T00:24:36.99+0200 [APP/PROC/WEB/0] ERR Calls: -> -> startServer 2018-05-06T00:24:36.99+0200 [APP/PROC/WEB/0] ERR Execution halted 2018-05-06T00:24:37.03+0200 [APP/PROC/WEB/0] OUT Exit status 1

Thank you for your prompt reply.

PS: My aim is to run plumber on IBM Cloud as a CF application using "https://github.com/beibeiyang/cf-buildpack-r/blob/cedar-14/bin/compile".