安徽大叔 发表于 2024-8-28 16:53:35

【待反馈】debian12 当初安装好宝塔后无法自启动

为了能快速了解并处理您的问题,请提供以下基础信息:面板、插件版本:9.1
系统版本:debian12
问题描述:debian12当初安装好宝塔后无法自启动,在刚安装好后启动宝塔提示少字体。后来安装了字体可以手动启动了。但是无法自启动。
相关截图(日志、错误):
添加sudo nano /etc/systemd/system/bt.service的方法我又不想用。想问问宝塔有没有能修复开机自启动的工具或命令。。。想用宝塔原始的。怕以后出问题了不好搞。

运维技术阿闯 发表于 2024-8-30 10:23:55

安徽大叔 发表于 2024-8-29 21:28
Linux s227133 6.1.0-23-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.99-1 (2024-07-15) x86_64

The progr ...

您好,您这个问题是因为字符串编码为'latin-1'这个出现了问题,这个编码主要是国外的,而非国内的

运维技术阿闯 发表于 2024-8-29 11:53:36

您好。宝塔是会自己启动的。您说的无法启动的,是指面板还是项目的
面板的话,您/etc/init.d/bt start就可以启动了

安徽大叔 发表于 2024-8-29 12:22:50

运维技术阿闯 发表于 2024-8-29 11:53
您好。宝塔是会自己启动的。您说的无法启动的,是指面板还是项目的
面板的话,您/etc/init.d/bt start就可 ...

面板。要是能自启动我就不来求助了。就是无法自启动。需要我登陆服务器 BT 1   不报错。

运维技术阿闯 发表于 2024-8-29 14:58:54

安徽大叔 发表于 2024-8-29 12:22
面板。要是能自启动我就不来求助了。就是无法自启动。需要我登陆服务器 BT 1   不报错。 ...

您好,您这边重启服务器后,看您bt 14所提示的链接额是否可以进入面板呢,
如果还是不可以,您在您参考这个链接在服务器启动文件中加入面板的启动命令/etc/init.d/bt start
https://www.cnblogs.com/Alwayslearn/p/16816093.html

安徽大叔 发表于 2024-8-29 15:12:10

运维技术阿闯 发表于 2024-8-29 14:58
您好,您这边重启服务器后,看您bt 14所提示的链接额是否可以进入面板呢,
如果还是不可以,您在您参考这 ...

自启动的意思是自己启动。不是手动启动。我说了。我可以手动启动。重启后宝塔没有启动。需要进入服务器手动启动。。。

运维技术阿闯 发表于 2024-8-29 16:24:17

安徽大叔 发表于 2024-8-29 15:12
自启动的意思是自己启动。不是手动启动。我说了。我可以手动启动。重启后宝塔没有启动。需要进入服务器手 ...

您好,方便发一下您在说的重启面板的命令截图信息吗

安徽大叔 发表于 2024-8-29 17:58:21

运维技术阿闯 发表于 2024-8-29 16:24
您好,方便发一下您在说的重启面板的命令截图信息吗

root@s227133:~# bt 1
===============================================
正在执行(1)...
===============================================
Stopping Bt-Tasks...    done
Stopping Bt-Panel...    done
Starting Bt-Panel....   done
Starting Bt-Tasks...    done
root@s227133:~#

重开机后。就这样。没有错误提示

运维技术阿闯 发表于 2024-8-29 18:23:21

安徽大叔 发表于 2024-8-29 17:58
root@s227133:~# bt 1
===============================================
正在执行(1)...


您好,这里显示的是面板已经启动了,您说的无法启动问题,方便执行一下bt 22看一下错误信息吗

安徽大叔 发表于 2024-8-29 21:28:45

运维技术阿闯 发表于 2024-8-29 18:23
您好,这里显示的是面板已经启动了,您说的无法启动问题,方便执行一下bt 22看一下错误信息吗 ...

Linux s227133 6.1.0-23-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.99-1 (2024-07-15) x86_64

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Thu Aug 29 17:56:49 2024 from 114.101.51.211
root@s227133:~# bt 22
===============================================
正在执行(22)...
===============================================
    print_log(get_error_info(),'ERROR')
File "class/public.py", line 5246, in print_log
    print(log_body.strip())
UnicodeEncodeError: 'latin-1' codec can't encode characters in position 150-153: ordinal not in r
ange(256)
\n
Traceback (most recent call last):
File "/www/server/panel/BT-Panel", line 295, in <module>
    public.print_log("\u542f\u52a8\u9762\u677fHTTP\u670d\u52a1")
File "class/public.py", line 5246, in print_log
    print(log_body.strip())
UnicodeEncodeError: 'latin-1' codec can't encode characters in position 34-37: ordinal not in ran
ge(256)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/www/server/panel/BT-Panel", line 298, in <module>
    public.print_error()
File "class/public.py", line 5256, in print_error
    print_log(get_error_info(),'ERROR')
File "class/public.py", line 5246, in print_log
    print(log_body.strip())
UnicodeEncodeError: 'latin-1' codec can't encode characters in position 150-153: ordinal not in r
ange(256)
\n
Traceback (most recent call last):
File "/www/server/panel/BT-Panel", line 295, in <module>
    public.print_log("\u542f\u52a8\u9762\u677fHTTP\u670d\u52a1")
File "class/public.py", line 5246, in print_log
    print(log_body.strip())
UnicodeEncodeError: 'latin-1' codec can't encode characters in position 34-37: ordinal not in ran
ge(256)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/www/server/panel/BT-Panel", line 298, in <module>
    public.print_error()
File "class/public.py", line 5256, in print_error
    print_log(get_error_info(),'ERROR')
File "class/public.py", line 5246, in print_log
    print(log_body.strip())
UnicodeEncodeError: 'latin-1' codec can't encode characters in position 150-153: ordinal not in r
ange(256)
\n
Traceback (most recent call last):
File "/www/server/panel/BT-Panel", line 295, in <module>
    public.print_log("\u542f\u52a8\u9762\u677fHTTP\u670d\u52a1")
File "class/public.py", line 5246, in print_log
    print(log_body.strip())
UnicodeEncodeError: 'latin-1' codec can't encode characters in position 34-37: ordinal not in ran
ge(256)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/www/server/panel/BT-Panel", line 298, in <module>
    public.print_error()
File "class/public.py", line 5256, in print_error
    print_log(get_error_info(),'ERROR')
File "class/public.py", line 5246, in print_log
    print(log_body.strip())
UnicodeEncodeError: 'latin-1' codec can't encode characters in position 150-153: ordinal not in r
ange(256)
\n
Traceback (most recent call last):
File "/www/server/panel/BT-Panel", line 295, in <module>
    public.print_log("\u542f\u52a8\u9762\u677fHTTP\u670d\u52a1")
File "class/public.py", line 5246, in print_log
    print(log_body.strip())
UnicodeEncodeError: 'latin-1' codec can't encode characters in position 34-37: ordinal not in ran
ge(256)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/www/server/panel/BT-Panel", line 298, in <module>
    public.print_error()
File "class/public.py", line 5256, in print_error
    print_log(get_error_info(),'ERROR')
File "class/public.py", line 5246, in print_log
    print(log_body.strip())
UnicodeEncodeError: 'latin-1' codec can't encode characters in position 150-153: ordinal not in r
ange(256)
\n
Traceback (most recent call last):
File "/www/server/panel/BT-Panel", line 295, in <module>
    public.print_log("\u542f\u52a8\u9762\u677fHTTP\u670d\u52a1")
File "class/public.py", line 5246, in print_log
    print(log_body.strip())
UnicodeEncodeError: 'latin-1' codec can't encode characters in position 34-37: ordinal not in ran
ge(256)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/www/server/panel/BT-Panel", line 298, in <module>
    public.print_error()
File "class/public.py", line 5256, in print_error
    print_log(get_error_info(),'ERROR')
File "class/public.py", line 5246, in print_log
    print(log_body.strip())
UnicodeEncodeError: 'latin-1' codec can't encode characters in position 150-153: ordinal not in r
ange(256)
\n
启动面板HTTP服务
启动面板HTTP服务
启动面板HTTP服务
启动面板HTTP服务
启动面板HTTP服务
root@s227133:~#


页: [1]
查看完整版本: 【待反馈】debian12 当初安装好宝塔后无法自启动