🚀 Yimaru CI/CD Dashboard

Deployment #24

← Back to List
Repository:

Yimaru/Yimaru-BackEnd

Branch:

production

Commit:

d470b024b4033b30c402b10dd383a15c3bac1bf1

Status:

success

Created At:

3/5/2026, 10:31:20 AM

Commands (17)

git stash save "local changes 2026-03-05T10:31:20.179Z"
Success Exit: 0
Output:
Saved working directory and index state On production: local changes 2026-03-05T10:31:20.179Z
git reset --hard HEAD
Success Exit: 0
Output:
HEAD is now at 9cb1c3e Merge branch 'production' of https://gitea.yaltopia.com/Yimaru/Yimaru-BackEnd
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 9cb1c3e..d470b02
Fast-forward
 go.mod                                    |  4 --
 go.sum                                    | 15 ------
 internal/config/config.go                 | 25 +---------
 internal/domain/sms.go                    |  3 +-
 internal/services/messenger/sms.go        | 78 +------------------------------
 internal/services/notification/service.go | 36 +-------------
 internal/services/user/common.go          | 15 ++----
 internal/services/user/register.go        |  2 +-
 8 files changed, 9 insertions(+), 169 deletions(-)
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-05T10:31:23Z" 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 
 Network yimaru-backend_app Removing 
 Volume yimaru-backend_mongo_data Removed 
 Volume yimaru-backend_postgres_data Removing 
 Network yimaru-backend_app Removed 
 Volume yimaru-backend_postgres_data Removed 
make db-up
Success Exit: 0
Error:
time="2026-03-05T10:31:25Z" 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-05T10:31:25Z" 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-backend-postgres-1 Started 
 Container yimaru-backend-postgres-1 Waiting 
 Container yimaru-mongo Started 
 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-05_10_31_21.sql.gz
SET
SET
SET
SET
 set_config 
------------
 
(1 row)

SET
SET
SET
SET
COPY 62
COPY 6
COPY 14
COPY 6
COPY 0
COPY 28
COPY 42
COPY 0
COPY 0
COPY 0
COPY 0
COPY 155
COPY 20
COPY 128
COPY 34
COPY 10
COPY 0
COPY 0
COPY 5
COPY 24
COPY 347
COPY 0
COPY 0
COPY 7
COPY 0
 setval 
--------
     62
(1 row)

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

 setval 
--------
     15
(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
ERROR:  insert or update on table "question_set_items" violates foreign key constraint "question_set_items_set_id_fkey"
DETAIL:  Key (set_id)=(2) is not present in table "question_sets".
ERROR:  insert or update on table "question_set_personas" violates foreign key constraint "question_set_personas_question_set_id_fkey"
DETAIL:  Key (question_set_id)=(2) is not present in table "question_sets".
ERROR:  duplicate key value violates unique constraint "roles_pkey"
DETAIL:  Key (id)=(1) already exists.
CONTEXT:  COPY roles, 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 0
INSERT 0 0
INSERT 0 0
INSERT 0 20
INSERT 0 0
INSERT 0 20
INSERT 0 0
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 0
INSERT 0 4
INSERT 0 5
INSERT 0 0
Seeding db/data/003_fix_autoincrement_desync.sql...
 setval 
--------
     15
(1 row)

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

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

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

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

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

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

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

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

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

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

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

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

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

 setval 
--------
     15
(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