Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Blank pages after rebuilding & restarting #38

Closed
ngirard opened this issue Mar 18, 2021 · 3 comments
Closed

Blank pages after rebuilding & restarting #38

ngirard opened this issue Mar 18, 2021 · 3 comments

Comments

@ngirard
Copy link
Contributor

ngirard commented Mar 18, 2021

After doing a git pull and rebuilding Featmap, the pages returned to my browser are blank.

Here's the complete log of what was done on our server:

ssh -t root@$server
Welcome to Ubuntu 20.04 LTS (GNU/Linux 5.4.0-26-generic x86_64)

root@test:~# cd featmap/
root@test:~/featmap# git pull
remote: Enumerating objects: 39, done.
remote: Counting objects: 100% (39/39), done.
remote: Compressing objects: 100% (7/7), done.
remote: Total 26 (delta 22), reused 23 (delta 19), pack-reused 0
Unpacking objects: 100% (26/26), 3.52 KiB | 97.00 KiB/s, done.
From https://github.com/amborle/featmap
   64daab3..42fa8b9  master     -> origin/master
Updating 64daab3..42fa8b9
Fast-forward
 webapp/src/components/Board.tsx            | 262 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-------------------------------------------------------------------------
 webapp/src/pages/ProjectPage.tsx           |   3 +--
 webapp/src/store/milestones/selectors.ts   |  10 ++++++++
 webapp/src/store/subworkflows/selectors.ts |   9 +++++--
 webapp/src/store/workflows/selectors.ts    |   7 ++++-
 5 files changed, 184 insertions(+), 107 deletions(-)
root@test:~/featmap# docker-compose build
postgres uses an image, skipping
Building featmap
Step 1/12 : FROM golang:alpine
 ---> 6af5835b113c
Step 2/12 : WORKDIR /src
 ---> Using cache
 ---> 2b70a7479410
Step 3/12 : RUN apk add --update npm git
 ---> Using cache
 ---> 39df95a9bda2
Step 4/12 : RUN go get -u github.com/jteeuwen/go-bindata/...
 ---> Using cache
 ---> a5420006f2bc
Step 5/12 : COPY ./webapp/package.json webapp/package.json
 ---> Using cache
 ---> c1bc9cabcb37
Step 6/12 : RUN cd ./webapp &&     npm install
 ---> Using cache
 ---> afdc17eb8109
Step 7/12 : COPY . .
 ---> f3f9f032f25f
Step 8/12 : RUN cd ./webapp &&     npm run build
 ---> Running in 4812e4bb1754

> featmap-client@0.1.0 build /src/webapp
> react-scripts build

Creating an optimized production build...
Removing intermediate container 4812e4bb1754
 ---> f776e5409397
Step 9/12 : RUN cd ./migrations &&     go-bindata  -pkg migrations .
 ---> Running in deb66897a586
Removing intermediate container deb66897a586
 ---> 128887772346
Step 10/12 : RUN go-bindata  -pkg tmpl -o ./tmpl/bindata.go  ./tmpl/ &&     go-bindata  -pkg webapp -o ./webapp/bindata.go  ./webapp/build/...
 ---> Running in a3bcddb9c618
Removing intermediate container a3bcddb9c618
 ---> c95d10c7ce7a
Step 11/12 : RUN go build -o /opt/featmap/featmap &&     chmod 775 /opt/featmap/featmap
 ---> Running in 62331a87fedf
go: downloading github.com/pkg/errors v0.9.1
go: downloading github.com/stripe/stripe-go v70.15.0+incompatible                                                                                                                                                                            
go: downloading github.com/go-chi/cors v1.1.1                                                                                                                                                                                                
go: downloading github.com/dgrijalva/jwt-go v3.2.0+incompatible                                                                                                                                                                              
go: downloading github.com/go-chi/jwtauth v4.0.4+incompatible                                                                                                                                                                                
go: downloading github.com/golang-migrate/migrate/v4 v4.13.0                                                                                                                                                                                 
go: downloading github.com/satori/go.uuid v1.2.0                                                                                                                                                                                             
go: downloading github.com/jmoiron/sqlx v1.2.0                                                                                                                                                                                               
go: downloading github.com/go-chi/chi v4.1.2+incompatible                                                                                                                                                                                    
go: downloading github.com/elazarl/go-bindata-assetfs v1.0.1                                                                                                                                                                                 
go: downloading github.com/go-chi/render v1.0.1                                                                                                                                                                                              
go: downloading github.com/asaskevich/govalidator v0.0.0-20200907205600-7a23bdc65eef                                                                                                                                                         
go: downloading golang.org/x/crypto v0.0.0-20201112155050-0c6587e931a9                                                                                                                                                                       
go: downloading github.com/hashicorp/go-multierror v1.1.0                                                                                                                                                                                    
go: downloading github.com/lib/pq v1.3.0                                                                                                                                                                                                     
go: downloading github.com/hashicorp/errwrap v1.0.0                                                                                                                                                                                          
Removing intermediate container 62331a87fedf
 ---> 3957c1b2739a
Step 12/12 : ENTRYPOINT cd /opt/featmap && ./featmap
 ---> Running in f9113206ba64
Removing intermediate container f9113206ba64
 ---> 4ae33002250a
Successfully built 4ae33002250a
Successfully tagged amborle/featmap:latest
root@test:~/featmap# docker-compose down     
Stopping featmap_featmap_1  ... done
Stopping featmap_postgres_1 ... done
Removing featmap_featmap_1  ... done
Removing featmap_postgres_1 ... done
Removing network featmap_default
root@test:~/featmap# docker-compose up
Creating network "featmap_default" with the default driver
Creating featmap_postgres_1 ... done
Creating featmap_featmap_1  ... done
Attaching to featmap_postgres_1, featmap_featmap_1

Now, browsing any page have Featmap return nothing, with a 200 HTTP code.

For a (long) minute, I thought the PostgreSQL database was gone, but it's still there.

Any thoughts ?
Cheers

@amborle
Copy link
Owner

amborle commented Mar 21, 2021

Not an expert on docker-compose, perhaps some useful info here?: docker/compose#1487

@ngirard
Copy link
Contributor Author

ngirard commented Mar 31, 2021

Solved it by doing docker-compose build --no-cache.
This was far from trivial, so you might want to amend the documentation.
I'll let you close this issue whenever you want.
Cheers !

@amborle
Copy link
Owner

amborle commented Mar 31, 2021

It's great to hear that it worked out for you. I will add it to the docs.

@amborle amborle closed this as completed Mar 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants