Re: [I] help request: Start APISIX failed, Failed to validate config: property "apisix" validation failed [apisix]

2025-03-04 Thread via GitHub


cnz101 commented on issue #12016:
URL: https://github.com/apache/apisix/issues/12016#issuecomment-2696549719

   And when i execute `lua -lrex_pcre`, the error log is:
   ```
   [root@localhost 5.1]# ll
   total 10584
   -rwx-- 1 gateway servicetools   14600 Mar  4 12:03 bit32.so
   -rwx-- 1 gateway servicetools   23056 Mar  4 12:03 lfs.so
   -rwx-- 1 gateway servicetools 4553072 Mar  4 12:03 libcrypto.so
   -rwx-- 1 gateway servicetools   14520 Mar  4 12:03 librestychash.so
   -rwx-- 1 gateway servicetools  112768 Mar  4 12:03 librestyradixtree.so
   -rwx-- 1 gateway servicetools  779752 Mar  4 12:03 libssl.so
   -rwx-- 1 gateway servicetools   56032 Mar  4 12:03 lpeg.so
   -rwx-- 1 gateway servicetools   21288 Mar  4 12:03 lua_pack.so
   drwx-- 2 gateway servicetools4096 Mar  4 12:03 mime
   -rwx-- 1 gateway servicetools   17456 Mar  4 12:03 nanoid.so
   -rwx-- 1 gateway servicetools   89248 Mar  4 12:03 pb.so
   drwx-- 3 gateway servicetools4096 Mar  4 12:03 posix
   -rwx-- 1 gateway servicetools   14600 Mar  4 12:03 random.so
   -rwx-- 1 gateway servicetools   44896 Mar  4 12:03 rex_pcre.so
   -rwx-- 1 gateway servicetools   14608 Mar  4 12:03 snowflake.so
   drwx-- 2 gateway servicetools4096 Mar  4 12:03 socket
   -rwx-- 1 gateway servicetools 5042288 Mar  4 12:03 ssl.so
   [root@localhost 5.1]# lua -lrex_pcre
   lua: error loading module 'rex_pcre' from file './rex_pcre.so':
libpcre.so.1: cannot open shared object file: No such file or directory
   stack traceback:
[C]: in ?
[C]: in function 'require'
[C]: in ?
   [root@localhost 5.1]# 
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@apisix.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



[I] help request: Start APISIX failed, Failed to validate config: property "apisix" validation failed [apisix]

2025-03-03 Thread via GitHub


cnz101 opened a new issue, #12016:
URL: https://github.com/apache/apisix/issues/12016

   ### Description
   
   when xx/bin/apisix start, the error log is : 
   `
   failed to validate config: property "apisix" validation failed: property 
"ssl" validation failed: property "listen" validation failed: failed to 
validate item 1: wrong type: expected object, got number
   `
   
   here is my conf.yaml:
   `
   apisix:
 admin_key:
 - name: admin
   key: APISIX_API_KEY
   role: admin
 allow_admin:
 - 127.0.0.0/24
 enable_ipv6: false
 admin_listen:
   ip: 127.0.0.1
   port: 9080
 https_admin: true
 disable_sync_configuration_during_start: true
 admin_api_mtls:
   admin_ssl_cert: 
/opt/cloud/gateway/apisix/apisix/conf/cert/ssl_PLACE_HOLDER.crt
   admin_ssl_cert_key: 
/opt/cloud/gateway/apisix/apisix/conf/cert/ssl_PLACE_HOLDER.key
 ssl:
   listen:
   - 9443
   ssl_trusted_certificate: /opt/cloud/gateway/apisix/certs/ca.crt
   ssl_ciphers: 
ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384
   etcd:
 host:
 - https://xx.xx.xx.xx:2379
 - https://xx.x.x.x:2379
 - https://x.x.x.x:2379
 prefix: /apisix
 timeout: 30
 user: apisix
 password: PASSWORD
 tls:
   verify: false
   nginx_config:
 error_log: /var/log/gateway/apisix/error.log
 http:
   access_log: /var/log/gateway/apisix/access.log
   `
   
   ### Environment
   
   - APISIX version (run `apisix version`): 3.9.1
   - Operating system (run `uname -a`):
   - OpenResty / Nginx version (run `openresty -V` or `nginx -V`):
   - etcd version, if relevant (run `curl 
http://127.0.0.1:9090/v1/server_info`):
   - APISIX Dashboard version, if relevant:
   - Plugin runner version, for issues related to plugin runners:
   - LuaRocks version, for installation issues (run `luarocks --version`):3.8
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@apisix.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org