Coder Social home page Coder Social logo

Comments (6)

nooshin-mirzadeh avatar nooshin-mirzadeh commented on July 24, 2024

Dear sindhuja17,

If you are using a user-defined network, you need to either give the containers' names instead of IP address or get the IP address of the containers in the user-defined network. Can you please specify what are the parameters (IP addresses) that you gave to the web_server?

from cloudsuite.

sindhuja17 avatar sindhuja17 commented on July 24, 2024

Hello nooshin,

I used this command to run the web-server:

sudo docker run -idt --net=user_nw --name=web_server cloudsuite/web-serving:web_server /etc/bootstrap.sh db_server 172.21.0.2 100, where 172.21.0.2 is the IP address of the memcache_server and db_server is the name of the database_server.

I did not run the db_server before web_server as db_server needs the IP address of web_server as a required parameter.

from cloudsuite.

nooshin-mirzadeh avatar nooshin-mirzadeh commented on July 24, 2024

Thanks sindhuja17.
You are running all the containers on the same machine, am I right?
Does it work with the host network? Can you please check the php log for more exact information?

from cloudsuite.

sindhuja17 avatar sindhuja17 commented on July 24, 2024

Thanks for the reply Nooshin. The good news is that now it is working for the user_nw, but for the host network it is not working. These are the set of commands I used:

sudo docker run -idt --net=host --name=web_server cloudsuite/web-serving:web_server /etc/bootstrap.sh 127.0.0.1 127.0.0.1 200
sudo docker run -idt --net=host --name=memcache_server cloudsuite/web-serving:memcached_server
sudo docker run -idt --net=host --name=mysql_server cloudsuite/web-serving:db_server 127.0.0.1
sudo docker run --net=host --name=faban_client cloudsuite/web-serving:faban_client 127.0.0.1 7

When I see the log of errors it shows me these:

[1042858.188963] traps: php5-fpm[31722] trap stack segment ip:79d0f4 sp:7ffc35f6bfc0 error:0 in php5-fpm [400000+800000]
[1042859.292750] traps: php5-fpm[31732] trap stack segment ip:79d0f4 sp:7ffc35f6bfc0 error:0 in php5-fpm [400000+800000]
[1042860.388215] traps: php5-fpm[31742] trap stack segment ip:79d0f4 sp:7ffc35f6bfc0 error:0 in php5-fpm [400000+800000]
[1042861.484791] traps: php5-fpm[31755] trap stack segment ip:79d0f4 sp:7ffc35f6bfc0 error:0 in php5-fpm [400000+800000]
[1042862.582570] traps: php5-fpm[31765] trap stack segment ip:79d0f4 sp:7ffc35f6bfc0 error:0 in php5-fpm [400000+800000]
[1042863.689702] traps: php5-fpm[31775] trap stack segment ip:79d0f4 sp:7ffc35f6bfc0 error:0 in php5-fpm [400000+800000]
[1042864.791967] traps: php5-fpm[31785] trap stack segment ip:79d0f4 sp:7ffc35f6bfc0 error:0 in php5-fpm [400000+800000]
[1042865.892433] traps: php5-fpm[31795] trap stack segment ip:79d0f4 sp:7ffc35f6bfc0 error:0 in php5-fpm [400000+800000]
[1042866.990493] traps: php5-fpm[31805] trap stack segment ip:79d0f4 sp:7ffc35f6bfc0 error:0 in php5-fpm [400000+800000]
[1042868.090858] traps: php5-fpm[31815] trap stack segment ip:79d0f4 sp:7ffc35f6bfc0 error:0 in php5-fpm [400000+800000]

from cloudsuite.

nooshin-mirzadeh avatar nooshin-mirzadeh commented on July 24, 2024

Dear sindhuja17,

Can you check that your containers are up and can ping each other?
Can you please also send your php log?

from cloudsuite.

ustiugov avatar ustiugov commented on July 24, 2024

hey, please let us know if the issue persists (reopen if necessary).

from cloudsuite.

Related Issues (20)

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.