Skip to content

[Bug] The GeoIP2 module failed to build in the OpenResty v2 version #9232

Open
@db-root

Description

@db-root

Contact Information

No response

1Panel Version

v2.0.2

Problem Description

测试环境如下:
系统:
[root@anolisos ~]# cat /etc/os-release
NAME="Anolis OS"
VERSION="8.10"
ID="anolis"
ID_LIKE="rhel fedora centos"
VERSION_ID="8.10"
PLATFORM_ID="platform:an8"
PRETTY_NAME="Anolis OS 8.10"
ANSI_COLOR="0;31"
HOME_URL="https://openanolis.cn/"

docker:
[root@anolisos ~]# docker info
Client: Docker Engine - Community
Version: 26.1.3
Context: default
Debug Mode: false
Plugins:
buildx: Docker Buildx (Docker Inc.)
Version: v0.14.0
Path: /usr/libexec/docker/cli-plugins/docker-buildx
compose: Docker Compose (Docker Inc.)
Version: v2.27.0
Path: /usr/libexec/docker/cli-plugins/docker-compose

Server:
Containers: 1
Running: 1
Paused: 0
Stopped: 0
Images: 1
Server Version: 26.1.3
Storage Driver: overlay2
Backing Filesystem: extfs
Supports d_type: true
Using metacopy: false
Native Overlay Diff: false
userxattr: false
Logging Driver: json-file
Cgroup Driver: cgroupfs
Cgroup Version: 1
Plugins:
Volume: local
Network: bridge host ipvlan macvlan null overlay
Log: awslogs fluentd gcplogs gelf journald json-file local splunk syslog
Swarm: inactive
Runtimes: runc io.containerd.runc.v2
Default Runtime: runc
Init Binary: docker-init
containerd version: 8b3b7ca2e5ce38e8f31a34f35b2b68ceb8470d89
runc version: v1.1.12-0-g51d5e94
init version: de40ad0
Security Options:
seccomp
Profile: builtin
Kernel Version: 5.10.134-19.an8.x86_64
Operating System: Anolis OS 8.10
OSType: linux
Architecture: x86_64
CPUs: 4
Total Memory: 7.563GiB
Name: anolisos
ID: 22c6a0b6-2098-493e-b262-7dbc6e62df25
Docker Root Dir: /var/lib/docker
Debug Mode: false
Username: bin12121
Experimental: false
Insecure Registries:
127.0.0.0/8
Registry Mirrors:
https://docker.eli1.top/
https://docker.m.daocloud.io/
https://d2.eli1.top/
Live Restore Enabled: false

[root@anolisos ~]#

问题描述:
服务器内新装了1panel,之后体验的openresty的构建问题,构建了geoip2一直出现问题,详细问题描述可以参考开源社区的沟通过程:https://bbs.fit2cloud.com/t/topic/10068?u=eli
但是社区还没有给出解决方案,具体报错日志为:eea01753-b5be-483b-b3d5-8de39a101b8f.log ,见附件

eea01753-b5be-483b-b3d5-8de39a101b8f.log

后来手动去下载了libmaxminddb包,还更改了包内的目录名称,具体如下图

Image

尝试了多次,中间出现过日志没有了任何输入,但是后台查看build进程还在,因为看不到输出,重启了docker清理了缓存继续打包,多次尝试才成功,具体结果如下:

Image

Image
顺便再吐槽一下,加载lib之后需要重新执行ldconfig才行,要不还是打包报错

Image

还有日志收集机制,打包过程过于长,能不能出一个类似于任务列表的功能,打包的时候即使日志显示出现问题,或着去操作其他动作,后续回来也还能查看打包的日志,也不至于日志输出框黑了之后还得后台kill进程重新打包来看日志输出

Steps to Reproduce

去构建geoip2模块

The expected correct result

No response

Related log output

Additional Information

No response

Metadata

Metadata

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions