🚀 Yimaru CI/CD Dashboard

Deployment #22

← Back to List
Repository:

Yimaru/Yimaru-BackEnd

Branch:

production

Commit:

0bab51adc10b8b69972ab4e9b6e26b6165bbd472

Status:

success

Created At:

3/4/2026, 7:58:46 AM

Commands (17)

git stash save "local changes 2026-03-04T07:58:46.145Z"
Success Exit: 0
Output:
Saved working directory and index state On production: local changes 2026-03-04T07:58:46.145Z
git reset --hard HEAD
Success Exit: 0
Output:
HEAD is now at 83848d6 Empty commit to trigger CI/CD - 5
git fetch https://***:***@gitea.yaltopia.com/Yimaru/Yimaru-BackEnd.git production
Success Exit: 0
Error:
From https://gitea.yaltopia.com/Yimaru/Yimaru-BackEnd
 * branch            production -> FETCH_HEAD
git checkout production
Success Exit: 0
Error:
Already on 'production'
git pull https://***:***@gitea.yaltopia.com/Yimaru/Yimaru-BackEnd.git production
Success Exit: 0
Output:
Updating 83848d6..0bab51a
Fast-forward
Error:
From https://gitea.yaltopia.com/Yimaru/Yimaru-BackEnd
 * branch            production -> FETCH_HEAD
git apply docker-compose.patch
Success Exit: 0
export GOPATH=/home/yimaru/go GOROOT=/usr/lib/go-1.24 PATH=/usr/bin:/home/yimaru/go/bin:$PATH && go mod tidy
Success Exit: 0
sudo systemctl stop yimaru_backend.service
Success Exit: 0
make backup
Success Exit: 0
make db-down
Success Exit: 0
Error:
time="2026-03-04T07:58:46Z" level=warning msg="/home/yimaru/Yimaru-BackEnd/docker-compose.yml: the attribute `version` is obsolete, it will be ignored, please remove it to avoid potential confusion"
 Container yimaru-mongo Stopping 
 Container yimaru-backend-migrate-1 Stopping 
 Container yimaru-backend-migrate-1 Stopped 
 Container yimaru-backend-migrate-1 Removing 
 Container yimaru-backend-migrate-1 Removed 
 Container yimaru-backend-postgres-1 Stopping 
 Container yimaru-mongo Stopped 
 Container yimaru-mongo Removing 
 Container yimaru-mongo Removed 
 Container yimaru-backend-postgres-1 Stopped 
 Container yimaru-backend-postgres-1 Removing 
 Container yimaru-backend-postgres-1 Removed 
 Volume yimaru-backend_mongo_data Removing 
 Volume yimaru-backend_postgres_data Removing 
 Network yimaru-backend_app Removing 
 Volume yimaru-backend_mongo_data Removed 
 Volume yimaru-backend_postgres_data Removed 
 Network yimaru-backend_app Removed 
make db-up
Success Exit: 0
Error:
time="2026-03-04T07:58:47Z" level=warning msg="/home/yimaru/Yimaru-BackEnd/docker-compose.yml: the attribute `version` is obsolete, it will be ignored, please remove it to avoid potential confusion"
time="2026-03-04T07:58:47Z" level=warning msg="No services to build"
 Network yimaru-backend_app Creating 
 Network yimaru-backend_app Created 
 Volume yimaru-backend_postgres_data Creating 
 Volume yimaru-backend_postgres_data Created 
 Volume yimaru-backend_mongo_data Creating 
 Volume yimaru-backend_mongo_data Created 
 Container yimaru-backend-postgres-1 Creating 
 Container yimaru-mongo Creating 
 Container yimaru-mongo Created 
 Container yimaru-backend-postgres-1 Created 
 Container yimaru-backend-migrate-1 Creating 
 Container yimaru-backend-migrate-1 Created 
 Container yimaru-mongo Starting 
 Container yimaru-backend-postgres-1 Starting 
 Container yimaru-mongo Started 
 Container yimaru-backend-postgres-1 Started 
 Container yimaru-backend-postgres-1 Waiting 
 Container yimaru-backend-postgres-1 Healthy 
 Container yimaru-backend-migrate-1 Starting 
 Container yimaru-backend-migrate-1 Started 
sleep 5
Success Exit: 0
make restore
Success Exit: 0
Output:
Restoring latest backup...
Restoring from backup/dump_2026-03-04_07_58_46.sql.gz
SET
SET
SET
SET
 set_config 
------------
 
(1 row)

SET
SET
SET
SET
COPY 0
COPY 0
COPY 0
COPY 0
COPY 0
COPY 0
COPY 0
COPY 0
COPY 0
COPY 0
COPY 0
COPY 0
COPY 0
COPY 0
COPY 0
COPY 0
COPY 0
COPY 0
COPY 0
COPY 0
COPY 0
COPY 0
 setval 
--------
      1
(1 row)

 setval 
--------
      1
(1 row)

 setval 
--------
      1
(1 row)

 setval 
--------
      1
(1 row)

 setval 
--------
      1
(1 row)

 setval 
--------
      1
(1 row)

 setval 
--------
      1
(1 row)

 setval 
--------
      1
(1 row)

 setval 
--------
      1
(1 row)

 setval 
--------
      1
(1 row)

 setval 
--------
      1
(1 row)

 setval 
--------
      1
(1 row)

 setval 
--------
      1
(1 row)

 setval 
--------
      1
(1 row)

 setval 
--------
      1
(1 row)

 setval 
--------
      1
(1 row)

 setval 
--------
      1
(1 row)

 setval 
--------
      1
(1 row)

 setval 
--------
      1
(1 row)

 setval 
--------
      1
(1 row)

 setval 
--------
      1
(1 row)

 setval 
--------
      1
(1 row)

 setval 
--------
      1
(1 row)

Error:
ERROR:  syntax error at or near "pg_dump"
LINE 1: pg_dump: warning: there are circular foreign-key constraints...
        ^
ERROR:  duplicate key value violates unique constraint "question_sets_pkey"
DETAIL:  Key (id)=(1) already exists.
CONTEXT:  COPY question_sets, line 1
sleep 2
Success Exit: 0
make seed_data
Success Exit: 0
Output:
Waiting for PostgreSQL to be ready...
/var/run/postgresql:5432 - accepting connections
Seeding db/data/001_initial_seed_data.sql...
CREATE EXTENSION
INSERT 0 3
INSERT 0 6
INSERT 0 5
INSERT 0 20
INSERT 0 5
INSERT 0 20
INSERT 0 6
INSERT 0 24
INSERT 0 0
INSERT 0 16
INSERT 0 3
INSERT 0 7
INSERT 0 17
INSERT 0 5
INSERT 0 3
INSERT 0 4
INSERT 0 4
INSERT 0 5
INSERT 0 8
Seeding db/data/003_fix_autoincrement_desync.sql...
 setval 
--------
     12
(1 row)

 setval 
--------
     20
(1 row)

 setval 
--------
     65
(1 row)

 setval 
--------
      1
(1 row)

 setval 
--------
      4
(1 row)

 setval 
--------
     21
(1 row)

 setval 
--------
      1
(1 row)

 setval 
--------
      1
(1 row)

 setval 
--------
      1
(1 row)

 setval 
--------
      1
(1 row)

 setval 
--------
      3
(1 row)

 setval 
--------
      7
(1 row)

 setval 
--------
     17
(1 row)

 setval 
--------
      5
(1 row)

 setval 
--------
      5
(1 row)

Seeding db/data/004_activity_logs_seed.sql...
INSERT 0 30
Seeding db/data/005_issue_reporting_seed.sql...
INSERT 0 12
Seeding db/data/006_notifications_seed.sql...
INSERT 0 21
export GOPATH=/home/yimaru/go GOROOT=/usr/lib/go-1.24 PATH=/usr/bin:/home/yimaru/go/bin:$PATH && go build -ldflags='-s' -o ./bin/web ./cmd/main.go
Success Exit: 0
sudo systemctl restart yimaru_backend.service
Success Exit: 0