metercai / SimpleSDXL

Enhanced version of Fooocus for SDXL, more suitable for Chinese and Cloud
GNU General Public License v3.0
328 stars 25 forks source link

提示token_user.pem failed Bad decrypt #42

Closed RobbinTech closed 4 months ago

RobbinTech commented 4 months ago

Checklist

What happened?

每次开机重新启动项目,都会提示Load user private key file [/code/SimpleSDXL/.token_user.pem] failed Bad decrypt. Incorrect password?,最后程序终止,如果删掉这个文件就可以正常运行了,请问应该怎么做才能避免这样的情况发生

Steps to reproduce the problem

python entry_with_update.py --share

What should have happened?

继续执行

What browsers do you use to access Fooocus?

Microsoft Edge

Where are you running Fooocus?

Cloud (other)

What operating system are you using?

Ubuntu

Console logs

Load user private key file [/code/SimpleSDXL/.token_user.pem] failed
Bad decrypt. Incorrect password?
Traceback (most recent call last):
  File "/code/SimpleSDXL/entry_with_update.py", line 86, in <module>
    from launch import *
  File "/code/SimpleSDXL/launch.py", line 105, in <module>
    token_did.init_local_did(f'SimpleSDXL_User')
  File "/code/SimpleSDXL/enhanced/token_did.py", line 52, in init_local_did
    prikey_user.private_bytes(  encoding=serialization.Encoding.Raw,
AttributeError: 'str' object has no attribute 'private_bytes'

Additional information

No response

metercai commented 4 months ago

你用的云环境?每次运行的环境每次都会变化吗?

RobbinTech commented 4 months ago

你用的云环境?每次运行的环境每次都会变化吗?

是有一些变化