Trying to get setup. Running, mariedb.
my db server is reachable and pingable from unraid, everything same subnet, but in the photoview logs I see the below. that is the correct IP and port. I made virgin db called phtoview on maria for it to use... Not sure what I'm missing?
2024/04/10 11:44:41 Starting Photoview...
2024/04/10 11:44:41 No .env file found
2024/04/10 11:44:41 WARN: Could not ping database: Could not parse mysql url: default addr for network '192.168.1.15:3306' unknown. Will retry after 5 seconds
2024/04/10 11:44:46 WARN: Could not ping database: Could not parse mysql url: default addr for network '192.168.1.15:3306' unknown. Will retry after 5 seconds
2024/04/10 11:44:51 WARN: Could not ping database: Could not parse mysql url: default addr for network '192.168.1.15:3306' unknown. Will retry after 5 seconds
2024/04/10 11:44:56 WARN: Could not ping database: Could not parse mysql url: default addr for network '192.168.1.15:3306' unknown. Will retry after 5 seconds
2024/04/10 11:45:01 WARN: Could not ping database: Could not parse mysql url: default addr for network '192.168.1.15:3306' unknown. Will retry after 5 seconds
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x28 pc=0x7d8678]
goroutine 1 [running]:
gorm.io/gorm.(*DB).getInstance(0x300000002?)
/go/pkg/mod/gorm.io/
[email protected]/gorm.go:363 +0x18
gorm.io/gorm.(*DB).SetupJoinTable(0x3?, {0xdb2940, 0xc000250620}, {0xe473c3, 0x6}, {0xd40d40, 0xc000222af0})
/go/pkg/mod/gorm.io/
[email protected]/gorm.go:395 +0x5e
github.com/photoview/photoview/api/database.MigrateDatabase(0xe5ab29?)
/app/database/database.go:177 +0x66
main.main()
/app/server.go:45 +0x128
2024/04/10 11:46:11 Starting Photoview...
2024/04/10 11:46:11 No .env file found
2024/04/10 11:46:11 WARN: Could not ping database: Could not parse mysql url: default addr for network '192.168.1.15:3306' unknown. Will retry after 5 seconds
2024/04/10 11:46:16 WARN: Could not ping database: Could not parse mysql url: default addr for network '192.168.1.15:3306' unknown. Will retry after 5 seconds
2024/04/10 11:46:21 WARN: Could not ping database: Could not parse mysql url: default addr for network '192.168.1.15:3306' unknown. Will retry after 5 seconds
2024/04/10 11:46:26 WARN: Could not ping database: Could not parse mysql url: default addr for network '192.168.1.15:3306' unknown. Will retry after 5 seconds
2024/04/10 11:46:31 WARN: Could not ping database: Could not parse mysql url: default addr for network '192.168.1.15:3306' unknown. Will retry after 5 seconds
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x28 pc=0x7d8678]