Giter Site home page Giter Site logo

Comments (9)

harryhoch avatar harryhoch commented on June 12, 2024 1

Hmm. seems to be working better now. Not sure why. will monitor and let you know.

from deepphe-cr-release.

seanfinan avatar seanfinan commented on June 12, 2024

from deepphe-cr-release.

harryhoch avatar harryhoch commented on June 12, 2024

how do I tell? should I run docker as sudo as discussed in the Linux docs?

from deepphe-cr-release.

seanfinan avatar seanfinan commented on June 12, 2024

I just checked the wiki and couldn't find anything about running with sudo. Is it in one of the offline docs?

from deepphe-cr-release.

harryhoch avatar harryhoch commented on June 12, 2024

https://github.com/DeepPhe/DeepPhe-CR-Release#docker-post-installation-configurations---optional discusses the use of sudo

from deepphe-cr-release.

harryhoch avatar harryhoch commented on June 12, 2024

I did the following before docker-compose up

“export HOST_UID=1000; export HOST_GID=1000”

Got the same result.

from deepphe-cr-release.

yuanzhou avatar yuanzhou commented on June 12, 2024

@harryhoch I just did a fresh build with the released code https://github.com/DeepPhe/DeepPhe-CR-Release/releases/download/v0.2.0-cr/v0.2.0-cr.zip on my Fedora35 installed on the VirtualBox. And the build went well and the two containers spin up with no errors. I can't reproduce this permission error with the nginx container.

My host use account has the uid and gid as 1000, which is the default docker-compose settings https://github.com/DeepPhe/DeepPhe-CR-Release/blob/main/docker-compose.yml#L34-L36 for running the process within the container.

[zhy19@fedora v0.2.0-cr]$ id
uid=1000(zhy19) gid=1000(zhy19) groups=1000(zhy19),10(wheel),977(docker)
[zhy19@fedora v0.2.0-cr]$ docker-compose up

To debug the issue you had, can you shell into the container by docker exec -it dphe-stream-nginx bash then check the permission? Below is what I got. The user deepphe is actually the mapped user from the host user with uid and gid 1000.

[root@dphe-stream-nginx app]# cd /etc/nginx/conf.d/
[root@dphe-stream-nginx conf.d]# ls -al
total 4
drwxr-xr-x 1 root    root      32 Jul 25 15:23 .
drwxr-xr-x 1 root    root     140 Jul 25 15:21 ..
-rw-rw-r-- 1 deepphe deepphe 1400 Nov  5  2020 dphe-stream.conf
[root@dphe-stream-nginx conf.d]# cd ../
[root@dphe-stream-nginx nginx]# ls -al
total 28
drwxr-xr-x 1 root root  140 Jul 25 15:21 .
drwxr-xr-x 1 root root 2026 Jul 25 15:23 ..
drwxr-xr-x 1 root root   32 Jul 25 15:23 conf.d
-rw-r--r-- 1 root root 1007 Jul 19 15:21 fastcgi_params
-rw-r--r-- 1 root root 5349 Jul 19 15:21 mime.types
lrwxrwxrwx 1 root root   29 Jul 25 15:21 modules -> ../../usr/lib64/nginx/modules
-rw-rw-r-- 1 root root  800 Nov  5  2020 nginx.conf
-rw-r--r-- 1 root root  636 Jul 19 15:21 scgi_params
-rw-r--r-- 1 root root  664 Jul 19 15:21 uwsgi_params
[root@dphe-stream-nginx nginx]# nginx -t
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful

from deepphe-cr-release.

harryhoch avatar harryhoch commented on June 12, 2024

ok, Zhou. Tried it on a different Mac. Got it to work and then ran into a different problem.

basically, it ran once and then it wouldn't process any more documents, giving a "bad gateway" error.
deephe-cr-log-20220725.txt

Log attached. Any idea what might be up?

from deepphe-cr-release.

yuanzhou avatar yuanzhou commented on June 12, 2024

@harryhoch looking at the logging file, I can't tell anything wrong with the REST API. The 502 issue can be an nginx error. The first couple of lines do imply the nginx container was up running. Can you try with restarting the containers?

from deepphe-cr-release.

Related Issues (1)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.