当前位置:论坛首页 > BUG提交 > Linux面板

【已完成】运行bt命令报错 求大佬告知怎么解决

发表在 BUG提交2022-5-12 16:57 [复制链接] 8 4745

root@ubuntu:~# bt
Traceback (most recent call last):
  File "/www/server/panel/tools.py", line 701, in <module>
    bt_cli(clinum)
  File "/www/server/panel/tools.py", line 441, in bt_cli
    print("===============\u5b9d\u5854\u9762\u677f\u547d\u4ee4\u884c==================")
UnicodeEncodeError: 'latin-1' codec can't encode characters in position 15-21: ordinal not in range(256)
root@ubuntu:~#
运行bt命令报错 求大佬告知怎么解决

使用道具 举报 只看该作者 回复
发表于 2022-5-12 21:32:44 | 显示全部楼层
  1. rm -rf /etc/init.d/bt
  2. \cp -r /www/server/panel/init.sh /etc/init.d/bt
  3. chmod +x /etc/init.d/bt
  4. /etc/init.d/bt restart
复制代码

执行命令试试
使用道具 举报 回复 支持 反对
发表于 2022-5-12 23:49:09 | 显示全部楼层

故障依旧
使用道具 举报 回复 支持 反对
发表于 2022-5-12 23:49:43 | 显示全部楼层

root@ubuntu:~# rm -rf /etc/init.d/bt
root@ubuntu:~# \cp -r /www/server/panel/init.sh /etc/init.d/bt
root@ubuntu:~# chmod +x /etc/init.d/bt
root@ubuntu:~# /etc/init.d/bt restart
Stopping Bt-Tasks...    done
Stopping Bt-Panel...    done
Starting Bt-Panel....   done
Starting Bt-Tasks...    done
root@ubuntu:~# bt
Traceback (most recent call last):
  File "/www/server/panel/tools.py", line 701, in <module>
    bt_cli(clinum)
  File "/www/server/panel/tools.py", line 441, in bt_cli
    print("===============\u5b9d\u5854\u9762\u677f\u547d\u4ee4\u884c==================")
UnicodeEncodeError: 'latin-1' codec can't encode characters in position 15-21: ordinal not in range(256)
root@ubuntu:~#

依旧
使用道具 举报 回复 支持 反对
发表于 2022-5-12 23:50:39 | 显示全部楼层
东方红风格 发表于 2022-5-12 23:49
root@ubuntu:~# rm -rf /etc/init.d/bt
root@ubuntu:~# \cp -r /www/server/panel/init.sh /etc/init.d/b ...
  1. mv /www/server/panel/pyenv /root/
  2. mv /www/server/panel/class /root/
  3. curl http://download.bt.cn/install/update_panel.sh|bash
复制代码

试试
使用道具 举报 回复 支持 反对
发表于 2022-5-12 23:56:44 | 显示全部楼层

正在升级【webssh】...
    [成功]
====================================================
所有插件已成功升级到最新!
====================================================
=====================================
Starting Bt-Panel... Bt-Panel (pid 316176) already running
Starting Bt-Tasks... Bt-Tasks (pid 316190) already running
已成功升级到[7.9.0]
root@ubuntu:~# bt
Traceback (most recent call last):
  File "/www/server/panel/tools.py", line 701, in <module>
    bt_cli(clinum)
  File "/www/server/panel/tools.py", line 441, in bt_cli
    print("===============\u5b9d\u5854\u9762\u677f\u547d\u4ee4\u884c==================")
UnicodeEncodeError: 'latin-1' codec can't encode characters in position 15-21: ordinal not in range(256)
root@ubuntu:~#
  依旧报错  我现在是甲骨文的arm平台  系统ubuntu20.04
使用道具 举报 回复 支持 反对
发表于 2022-5-13 09:18:13 | 显示全部楼层
东方红风格 发表于 2022-5-12 23:56
正在升级【webssh】...
    [成功]
====================================================
  1. mv /www/server/panel/tools.py /root/
  2. curl -sSO http://download.bt.cn/install/install_panel.sh && bash install_panel.sh
复制代码

试试
使用道具 举报 回复 支持 反对
发表于 2022-5-13 09:51:48 | 显示全部楼层
东方红风格 发表于 2022-5-12 23:56
正在升级【webssh】...
    [成功]
====================================================

https://blog.csdn.net/violet_echo_0908/article/details/58063555
改个系统编码试试,
或者升级面板到7.9.28
使用道具 举报 回复 支持 反对
发表于 2022-5-13 10:55:50 | 显示全部楼层
堡塔安全赤井秀一 发表于 2022-5-13 09:51
https://blog.csdn.net/violet_echo_0908/article/details/58063555
改个系统编码试试,
或者升级面板到7 ...

https://zhuanlan.zhihu.com/p/338941791
已解决 修改后重启 没问题了
root@ubuntu:~# bt
===============宝塔面板命令行==================
(1) 重启面板服务           (8) 改面板端口
(2) 停止面板服务           (9) 清除面板缓存
(3) 启动面板服务           (10) 清除登录限制
(4) 重载面板服务
(5) 修改面板密码           (12) 取消域名绑定限制
(6) 修改面板用户名         (13) 取消IP访问限制
(7) 强制修改MySQL密码      (14) 查看面板默认信息
(22) 显示面板错误日志      (15) 清理系统垃圾
(23) 关闭BasicAuth认证     (16) 修复面板(检查错误并更新面板文件到最新版)
(24) 关闭动态口令认证          (17) 设置日志切割是否压缩
(25) 设置是否保存文件历史副本  (18) 设置是否自动备份面板
(0) 取消                   (29) 取消访问设备验证
===============================================
请输入命令编号:
使用道具 举报 回复 支持 反对
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

企业版年付运维跟进群

普通问题处理

论坛响应时间:72小时

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

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

紧急问题处理

论坛响应时间:10分钟

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

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

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

立即付费处理

工作时间:09:00至24:00

快速回复 返回顶部 返回列表