You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2020/06/22 08:09:36 UTC

[GitHub] [incubator-apisix-dashboard] xiangxiren opened a new issue #277: manager-api container failed to start

xiangxiren opened a new issue #277:
URL: https://github.com/apache/incubator-apisix-dashboard/issues/277


   I used the Dockerfile of manager-api to build an image, and then started a container, but the container did not start normally
   ![image](https://user-images.githubusercontent.com/12774053/85263332-97ef5400-b4a1-11ea-8d5c-76a98c6a4c6b.png)
   
   The following are my steps:
   
   1. Build the image under the api directory
   `docker build -t manager-api:1.0 .`
   
   2. Copy the build.bat file, and modify the permissions
       ```
       cp -r tmp/incubator-apisix-dashboard/compose/manager_conf/. example/manager_conf/
       chmod +x ./build.sh
       ```
   3. Start a container
       ```
       docker run --name manager-api \
       -v `pwd`/example/manager_conf/build.sh:/root/manager-api/build.sh \
       -p 8080:8080 \
       -d manager-api:1.0
       ```
   
    


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-apisix-dashboard] gxthrj edited a comment on issue #277: manager-api container failed to start

Posted by GitBox <gi...@apache.org>.
gxthrj edited a comment on issue #277:
URL: https://github.com/apache/incubator-apisix-dashboard/issues/277#issuecomment-647952931


   > I still need help.
   > I have added the environment variable ENV=prod.A new error has now appeared.
   > 
   > ```
   > standard_init_linux.go:211: exec user process caused "no such file or directory"
   > ```
   
   When ENV=prod, `conf.json` needs to be filled with environment variables.
   https://github.com/apache/incubator-apisix-dashboard/blob/master/api/conf.json
   
   Please make sure these variables are set in environment variables.
   https://github.com/apache/incubator-apisix-dashboard/blob/15d936577d796226d5163af36d92160e693cbcdb/api/build.sh#L21
   
   
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-apisix-dashboard] xiangxiren closed issue #277: manager-api container failed to start

Posted by GitBox <gi...@apache.org>.
xiangxiren closed issue #277:
URL: https://github.com/apache/incubator-apisix-dashboard/issues/277


   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-apisix-dashboard] xiangxiren commented on issue #277: manager-api container failed to start

Posted by GitBox <gi...@apache.org>.
xiangxiren commented on issue #277:
URL: https://github.com/apache/incubator-apisix-dashboard/issues/277#issuecomment-647487677


   > Sorry,Here's a detail. Try adding an environment variable like this:
   > 
   > ```
   > 
   > docker run --name manager-api \
   > 
   > -v `pwd`/example/manager_conf/build.sh:/root/manager-api/build.sh \
   > 
   > -e ENV=prod \
   > 
   > -p 8080:8080 \
   > 
   > -d manager-api:1.0
   > 
   > ```
   
   
   OK, I'll try again tomorrow. thank you


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-apisix-dashboard] gxthrj commented on issue #277: manager-api container failed to start

Posted by GitBox <gi...@apache.org>.
gxthrj commented on issue #277:
URL: https://github.com/apache/incubator-apisix-dashboard/issues/277#issuecomment-647459765


   Sorry,Here's a detail. Try adding an environment variable like this:
   ```
   docker run --name manager-api \
   -v `pwd`/example/manager_conf/build.sh:/root/manager-api/build.sh \
   -e ENV=prod \
   -p 8080:8080 \
   -d manager-api:1.0
   ```


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-apisix-dashboard] gxthrj edited a comment on issue #277: manager-api container failed to start

Posted by GitBox <gi...@apache.org>.
gxthrj edited a comment on issue #277:
URL: https://github.com/apache/incubator-apisix-dashboard/issues/277#issuecomment-647952931


   > I still need help.
   > I have added the environment variable ENV=prod.A new error has now appeared.
   > 
   > ```
   > standard_init_linux.go:211: exec user process caused "no such file or directory"
   > ```
   
   When ENV=prod, `conf.json` needs to be filled with environment variables.
   https://github.com/apache/incubator-apisix-dashboard/blob/master/api/conf.json
   
   Please make sure these variables are set in environment variables.
   https://github.com/apache/incubator-apisix-dashboard/blob/15d936577d796226d5163af36d92160e693cbcdb/api/build.sh#L21
   
   
   here is a demo:
   https://github.com/apache/incubator-apisix-dashboard/blob/master/compose/manager_conf/build.sh


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-apisix-dashboard] xiangxiren commented on issue #277: manager-api container failed to start

Posted by GitBox <gi...@apache.org>.
xiangxiren commented on issue #277:
URL: https://github.com/apache/incubator-apisix-dashboard/issues/277#issuecomment-650851290


   Successful deployment, thank you


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-apisix-dashboard] xiangxiren commented on issue #277: manager-api container failed to start

Posted by GitBox <gi...@apache.org>.
xiangxiren commented on issue #277:
URL: https://github.com/apache/incubator-apisix-dashboard/issues/277#issuecomment-647879546


   I still need help.
   I have added the environment variable ENV=prod.A new error has now appeared.
   
   ```
   standard_init_linux.go:211: exec user process caused "no such file or directory"
   ```


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-apisix-dashboard] gxthrj commented on issue #277: manager-api container failed to start

Posted by GitBox <gi...@apache.org>.
gxthrj commented on issue #277:
URL: https://github.com/apache/incubator-apisix-dashboard/issues/277#issuecomment-647952931


   > I still need help.
   > I have added the environment variable ENV=prod.A new error has now appeared.
   > 
   > ```
   > standard_init_linux.go:211: exec user process caused "no such file or directory"
   > ```
   
   When ENV=prod, `conf.json` needs to be filled with environment variables
   https://github.com/apache/incubator-apisix-dashboard/blob/15d936577d796226d5163af36d92160e693cbcdb/api/build.sh#L21
   Please make sure these variables are set in environment variables.
   
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org