Cache is not clear

unsupported-install

(humaves) #1

Hello I install discourse version 2.2. I have a cache problem that after I save the data and check from the database and see the data in the tables. I refresh the page and old data comes to the page. What should I do? It is really urgent !!!


(Stephen) #3

You aren’t really giving us a lot of information to work with here.

What’s the URL for the site?

How was it installed? Did you follow our install guide or use a third-party package?

Is this a single container install?

Are you using Cloudflare or any kind of reverse proxy?


(humaves) #4

It is a single server with 5 different docker containers:

  • App
  • Web
  • DB
  • Sidekiq
  • Redis

And Installation steps are as follows:

  1. We install the package with git clone

  2. Set the ENV parameters

    RAILS_ENV=production
    DISCOURSE_DB_HOST=10.222.13.1
    DISCOURSE_REDIS_HOST=redis
    DISCOURSE_SERVE_STATIC_ASSETS=true
    GIFSICLE_VERSION=1.91
    PNGQUANT_VERSION=2.12.1
    PNGCRUSH_VERSION=1.8.13
    DISCOURSE_VERSION=forum-test
    
  3. sudo docker build --no-cache --tag   the-installation-package.app.1.0.0
    sudo docker login -u frm -p 123456 http://11.22.33.44:80
    sudo docker tag t the-installation-package.app.1.0.0 11.22.33.44:80/the-installation-package.app.1.0.0
    sudo docker push 11.22.33.44:80/the-installation-package.app.1.0.0
    git clone --branch frm1.0.0 https://frm@bitbucket.org/the-installation-package.1.0.0-web.git
    sudo docker build --no-cache --tag  the-installation-package.web:1.0.0 .
    sudo docker tag t the-installation-package.web.1.0.0 11.22.33.44:80/the-installation-package.web.1.0.0
    sudo docker push 11.22.33.44:80/the-installation-package.web.1.0.0
    git clone --branch rm1.0.0 https://frm@bitbucket.org/the-installation-package.1.0.0-compose.git
    sudo docker network create lb_web
    sudo docker network create back
    ./scripts/install
    sudo docker-compose pull
    sudo docker-compose stop && sudo docker-compose rm -f
    sudo docker-compose run app bash -c "sleep 30 && bundle exec rake db:migrate  
    assets:precompile"
    sudo docker-compose run app bash -c "bundle exec rake admin:create"
    sudo docker-compose up -d
    sudo docker-compose ps
    

Then we have docker list that we have 5 dockers with state up.
We start to change the settings of the site on the localhost.
And sure that it saved to the database from controlling the tables.
after refreshing the page old datas fill out the page.
What should we do? It is really urgent!!


(Jeff Atwood) #5

Why do you need 5 different docker containers? Why not use the simple single container setup?


(humaves) #6

For adminstration reasons we set up server like this. Is this a problem?
İf this will work, we will install it on two physical servers with 2 docker for db, 2 docker for app, 2 docker for web containers. If you say this doesn’t work like that we will find another solution.


(David Taylor) #7

It might be possible, but it will require a significant amount of knowledge and configuration. The only installation we can support on this forum is the official guide.


(humaves) #8

We installed also single container setup which is supported by Discourse(discourse/INSTALL-cloud.md at master · discourse/discourse · GitHub). I have tried creating the admin password with rake admin:create But I’m getting an error with blank page.
What is your advice?


(Stephen) #9

Out of curiousity, what’s stopping you completing the wizard as normal and creating the account that way?


(Andrew Schleifer) #10

What does the error say?


(humaves) #11

No error just old data comes, not the one I changed