Migrate to git.batsense.net #11

Closed
opened 2022-12-05 16:03:02 +05:30 by realaravinth · 3 comments
Owner
  • Archive GH and point to this repository
  • stop mirroring
  • Setup Woodpecker CI (howto integration tests? Privileged job?)
  • Update links (website, docks, docker hub, GtS Fedi account)
- [x] Archive GH and point to this repository - [x] stop mirroring - [x] Setup Woodpecker CI (howto integration tests? Privileged job?) - [x] Update links (website, docks, docker hub, GtS Fedi account)
realaravinth added spent time 2022-12-19 11:56:21 +05:30
6 hours
Author
Owner

Summary

  1. Stopped mirroring and renamed librepages -> pages

  2. Tagged github.com/realaravinth/librepages at the latest commit for the simple git pull server

  3. Docker images are now published to realaravinth/librepages instead of the older realaravinth/pages. The latter contains the `git pull server.

  4. WIP woodpecker setup: porting is a pain.
    i. Ported librepages/conductor (debugging took forever)
    ii. Database service container integration is hung up on a seemingly familiar bug. Deja vu?

AddrNotAvailable, message: "Cannot assign requested address" })', src/db.rs:64:22 
## Summary 1. Stopped mirroring and renamed librepages -> pages 2. Tagged github.com/realaravinth/librepages at the latest commit for the simple `git pull` server 3. Docker images are now published to realaravinth/librepages instead of the older realaravinth/pages. The latter contains the `git pull server. 4. WIP woodpecker setup: porting is a pain. i. Ported librepages/conductor (debugging took forever) ii. Database service container integration is hung up on a seemingly familiar bug. Deja vu? <summary> ``` AddrNotAvailable, message: "Cannot assign requested address" })', src/db.rs:64:22 ``` </summary>
Author
Owner

DATABASE_URL Env var was passed explicitly but the program reported values in the configuration file

842 DATABASE_URL="postgres://postgres:password@database:5432/postgres" cargo run -- migrate 260s

<-----------------snip------------------>

Finished dev [unoptimized + debuginfo] target(s) in 0.17s 260s
871 Running `target/debug/librepages migrate` 260s
872 INFO librepages > librepages: . 260s
873 For more information, see: https://git.batsense.net/LibrePages/librepages 260s
874 Build info: 260s
875 Version: 0.1.0 commit: a0144bcf9bc38ab2484e4426cfb30eb1bc27e41f 260s
876 WARN librepages::settings > couldn't interpret PORT: environment variable not found 260s
877 INFO librepages::db > DATABASE URL: postgres://postgres:password@localhost:5432/postgres 260s
878 thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Io(Os { code: 99, kind: AddrNotAvailable, message: "Cannot assign requested address" })', src/db.rs:64:22 260s
879 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace 260s
880 make: *** [Makefile:49: migrate] Error 101

Found the bug! The env var isn't overriding the configuration file, as it should, 631849fceb fixes it 🎉

`DATABASE_URL` Env var was passed explicitly but the program reported values in the configuration file ``` 842 DATABASE_URL="postgres://postgres:password@database:5432/postgres" cargo run -- migrate 260s <-----------------snip------------------> Finished dev [unoptimized + debuginfo] target(s) in 0.17s 260s 871 Running `target/debug/librepages migrate` 260s 872 INFO librepages > librepages: . 260s 873 For more information, see: https://git.batsense.net/LibrePages/librepages 260s 874 Build info: 260s 875 Version: 0.1.0 commit: a0144bcf9bc38ab2484e4426cfb30eb1bc27e41f 260s 876 WARN librepages::settings > couldn't interpret PORT: environment variable not found 260s 877 INFO librepages::db > DATABASE URL: postgres://postgres:password@localhost:5432/postgres 260s 878 thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Io(Os { code: 99, kind: AddrNotAvailable, message: "Cannot assign requested address" })', src/db.rs:64:22 260s 879 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace 260s 880 make: *** [Makefile:49: migrate] Error 101 ``` Found the bug! The env var isn't overriding the configuration file, as it should, https://git.batsense.net/LibrePages/librepages/commit/631849fceb40e2de126a2d11be357f6254e93583 fixes it 🎉
realaravinth added spent time 2022-12-19 15:40:22 +05:30
4 hours
Author
Owner

FInished debugging CI.

Ugly, painful diff: 321ff0beb8...b93373e96b

FInished debugging CI. Ugly, painful diff: https://git.batsense.net/LibrePages/librepages/compare/321ff0beb8c8142735cd66bffde1ffa256d0ab00...b93373e96bc35352bf8b0256e0b8981061aa6254
realaravinth self-assigned this 2022-12-19 15:42:12 +05:30
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Total Time Spent: 10 hours
realaravinth
10 hours
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: LibrePages/librepages#11
No description provided.