当前位置:论坛首页 > Linux面板 > 求助

【待反馈】Node日志切割失败

发表在 Linux面板2024-3-26 22:15 [复制链接] 6 110

为了能快速了解并处理您的问题,请提供以下基础信息:
面板、插件版本:2024-03-20 18:43:46 - Linux面板8.0.61 测试版

系统版本:CentOS 7.8.2003 x86_64(Py3.7.8)

问题描述:日志切割失败 打开日志切割也失败

相关截图(日志、错误):
[size=1.2]Node版  v16.20.2

日志切割=》编辑配置(打开日志同样报错信息)
TypeError: cannot unpack non-iterable bool object
REQUEST_DATE: 2024-03-26 22:13:34  VERSION: CentOS  7.8.2003 x86_64(Py3.7.8) - 8.0.61 REMOTE_ADDR: xx.xx.xx.xx REQUEST_URI: POST /project/nodejs/mamger_log_split?REQUEST_FORM: {'data': '{"hour":2,"minute":0,"num":180,"log_size":"100","compress":false,"name":"Api"}'}  USER_AGENT: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36Traceback (most recent call last):  File "/www/server/panel/BTPanel/__init__.py", line 2396, in publicObject    res = run_obj.run(toObject, defs, get)  File "/www/server/panel/BTPanel/__init__.py", line 2343, in run    result = getattr(toObject, get.action)(get)  File "/www/server/panel/class/panelController.py", line 81, in model    result = PluginLoader.module_run(module_name,def_name,pdata)  File "/www/server/panel/class/projectModel/nodejsModel.py", line 2217, in mamger_log_split    flag, msg = self.change_cronta(name, log_conf)TypeError: cannot unpack non-iterable bool object

使用道具 举报 只看该作者 回复
发表于 2024-3-26 22:17:53 | 显示全部楼层

修复没有用
1711462654141.jpg
使用道具 举报 回复 支持 反对
发表于 2024-3-27 10:08:11 | 显示全部楼层

您好,这个问题是因为缺少了which这个命令,您可以按下面的帖子安装一下,或者等我们的新版本发布,新版本中已经解决了这个问题
https://developer.aliyun.com/article/1139561
使用道具 举报 回复 支持 反对
发表于 2024-3-27 19:11:51 | 显示全部楼层
运维技术南一 发表于 2024-3-27 10:08
您好,这个问题是因为缺少了which这个命令,您可以按下面的帖子安装一下,或者等我们的新版本发布,新版 ...

好的谢谢我试试
使用道具 举报 回复 支持 反对
发表于 2024-3-27 19:18:56 | 显示全部楼层
运维技术南一 发表于 2024-3-27 10:08
您好,这个问题是因为缺少了which这个命令,您可以按下面的帖子安装一下,或者等我们的新版本发布,新版 ...

Last login: Wed Mar 27 19:12:46 2024 from localhost
[root@7820aace0267 ~]# ls
anaconda-ks.cfg  build_libs  which-2.21  which-2.21.tar.gz
[root@7820aace0267 ~]# cd which-2.21
[root@7820aace0267 which-2.21]# BUILD_LIBS=${HOME}/build_libs
[root@7820aace0267 which-2.21]# ./configure --prefix=${BUILD_LIBS}
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking for style of include used by make... GNU
checking dependency style of gcc... pch
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files...
yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking for xmalloc in libiberty.a... no
checking for ANSI C header files... (cached) yes
checking for unistd.h... (cached) yes
checking for string.h... (cached) yes
checking libiberty.h usability... no
checking libiberty.h presence... no
checking for libiberty.h... no
checking whether stat file-mode macros are broken... no
checking for an ANSI C-conforming const... yes
checking for size_t... yes
checking for uid_t in sys/types.h... yes
checking type of array argument to getgroups... gid_t
checking for strchr... yes
checking for memcpy... yes
checking for getopt_long... yes
checking for getcwd... yes
checking for getwd... yes
checking for sysconf... yes
checking for getgroups... yes
checking for eaccess... yes
checking for ar... ar
checking for ranlib... ranlib
checking for stdlib.h... (cached) yes
checking for memory.h... (cached) yes
checking pwd.h usability... yes
checking pwd.h presence... yes
checking for pwd.h... yes
checking for strings.h... (cached) yes
checking for getpwent... yes
checking for getpwnam... yes
checking for getpwuid... yes
checking whether programs are able to redeclare getpw functions... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating maintMakefile
config.status: creating tilde/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
[root@7820aace0267 which-2.21]#
[root@7820aace0267 which-2.21]# make
make  all-recursive
make[1]: Entering directory `/root/which-2.21'
Making all in tilde
make[2]: Entering directory `/root/which-2.21/tilde'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/root/which-2.21/tilde'
Making all in .
make[2]: Entering directory `/root/which-2.21'
make[2]: Leaving directory `/root/which-2.21'
make[1]: Leaving directory `/root/which-2.21'
[root@7820aace0267 which-2.21]# make install
make  install-recursive
make[1]: Entering directory `/root/which-2.21'
Making install in tilde
make[2]: Entering directory `/root/which-2.21/tilde'
make[3]: Entering directory `/root/which-2.21/tilde'
make[3]: Nothing to be done for `install-exec-am'.
make[3]: Nothing to be done for `install-data-am'.
make[3]: Leaving directory `/root/which-2.21/tilde'
make[2]: Leaving directory `/root/which-2.21/tilde'
Making install in .
make[2]: Entering directory `/root/which-2.21'
make[3]: Entering directory `/root/which-2.21'
/usr/bin/mkdir -p '/root/build_libs/bin'
  /usr/bin/install -c which '/root/build_libs/bin'
/usr/bin/mkdir -p '/root/build_libs/share/info'
/usr/bin/install -c -m 644 ./which.info '/root/build_libs/share/info'
install-info --info-dir='/root/build_libs/share/info' '/root/build_libs/share/info/which.info'
/usr/bin/mkdir -p '/root/build_libs/share/man/man1'
/usr/bin/install -c -m 644 which.1 '/root/build_libs/share/man/man1'
make[3]: Leaving directory `/root/which-2.21'
make[2]: Leaving directory `/root/which-2.21'
make[1]: Leaving directory `/root/which-2.21'
1711538304272.jpg
使用道具 举报 回复 支持 反对
发表于 2024-3-27 19:19:53 | 显示全部楼层
运维技术南一 发表于 2024-3-27 10:08
您好,这个问题是因为缺少了which这个命令,您可以按下面的帖子安装一下,或者等我们的新版本发布,新版 ...

我这边也不知道上面原因 应该是安装失败了吧
使用道具 举报 回复 支持 反对
发表于 2024-3-27 19:20:46 | 显示全部楼层
运维技术南一 发表于 2024-3-27 10:08
您好,这个问题是因为缺少了which这个命令,您可以按下面的帖子安装一下,或者等我们的新版本发布,新版 ...

我还是等待你们新版本发布吧 麻烦了
使用道具 举报 回复 支持 反对
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

企业版年付运维跟进群

普通问题处理

论坛响应时间:72小时

问题处理方式:排队(仅解答)

工作时间:白班:9:00 - 18:00

紧急问题处理

论坛响应时间:10分钟

问题处理方式:1对1处理(优先)

工作时间:白班:9:00 - 18:00

工作时间:晚班:18:00 - 24:00

立即付费处理
快速回复 返回顶部 返回列表