使用一段时间后,无法打开seatable,附上dtable-events.log

dtable-events.log

dtable_web settings 的 第64行
CSRF_TRUSTED_ORIGINS = [‘http://我的服务器IP:seatable端口’]
(IP和端口隐藏了一下)

Can not import dtable_web settings: invalid character in identifier (dtable_web_settings.py, line 64).
Traceback (most recent call last):
  File "/opt/seatable/seatable-server-latest/dtable-events/dtable_events/app/config.py", line 22, in <module>
    import seahub.settings as seahub_settings
  File "/opt/seatable/seatable-server-latest/dtable-web/seahub/__init__.py", line 4, in <module>
    from .handlers import repo_created_cb, repo_deleted_cb, clean_up_repo_trash_cb, \
  File "/opt/seatable/seatable-server-latest/dtable-web/seahub/handlers.py", line 4, in <module>
    from . import settings
  File "/opt/seatable/seatable-server-latest/dtable-web/seahub/settings.py", line 1066, in <module>
    import dtable_web_settings
  File "/opt/seatable/conf/dtable_web_settings.py", line 64
    CSRF_TRUSTED_ORIGINS = [‘http://10.7.32.6:3001’]
                                ^
SyntaxError: invalid character in identifier

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "main.py", line 8, in <module>
    from dtable_events.app.app import App
  File "/opt/seatable/seatable-server-latest/dtable-events/dtable_events/__init__.py", line 5, in <module>
    from dtable_events.dtable_io.excel import get_insert_update_rows
  File "/opt/seatable/seatable-server-latest/dtable-events/dtable_events/dtable_io/__init__.py", line 19, in <module>
    from dtable_events.app.config import DTABLE_WEB_SERVICE_URL, SESSION_COOKIE_NAME, INNER_DTABLE_DB_URL
  File "/opt/seatable/seatable-server-latest/dtable-events/dtable_events/app/config.py", line 49, in <module>
    raise RuntimeError("Can not import dtable_web settings: %s" % e)
RuntimeError: Can not import dtable_web settings: invalid character in identifier (dtable_web_settings.py, line 64)
Can not import dtable_web settings: invalid character in identifier (dtable_web_settings.py, line 64).
Traceback (most recent call last):
  File "/opt/seatable/seatable-server-latest/dtable-events/dtable_events/app/config.py", line 22, in <module>
    import seahub.settings as seahub_settings
  File "/opt/seatable/seatable-server-latest/dtable-web/seahub/__init__.py", line 4, in <module>
    from .handlers import repo_created_cb, repo_deleted_cb, clean_up_repo_trash_cb, \
  File "/opt/seatable/seatable-server-latest/dtable-web/seahub/handlers.py", line 4, in <module>
    from . import settings
  File "/opt/seatable/seatable-server-latest/dtable-web/seahub/settings.py", line 1066, in <module>
    import dtable_web_settings
  File "/opt/seatable/conf/dtable_web_settings.py", line 64
    CSRF_TRUSTED_ORIGINS = [‘http://10.7.32.6:3001’]
                                ^
SyntaxError: invalid character in identifier

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "main.py", line 8, in <module>
    from dtable_events.app.app import App
  File "/opt/seatable/seatable-server-latest/dtable-events/dtable_events/__init__.py", line 5, in <module>
    from dtable_events.dtable_io.excel import get_insert_update_rows
  File "/opt/seatable/seatable-server-latest/dtable-events/dtable_events/dtable_io/__init__.py", line 19, in <module>
    from dtable_events.app.config import DTABLE_WEB_SERVICE_URL, SESSION_COOKIE_NAME, INNER_DTABLE_DB_URL
  File "/opt/seatable/seatable-server-latest/dtable-events/dtable_events/app/config.py", line 49, in <module>
    raise RuntimeError("Can not import dtable_web settings: %s" % e)
RuntimeError: Can not import dtable_web settings: invalid character in identifier (dtable_web_settings.py, line 64)
Can not import dtable_web settings: invalid character in identifier (dtable_web_settings.py, line 64).
Traceback (most recent call last):
  File "/opt/seatable/seatable-server-latest/dtable-events/dtable_events/app/config.py", line 22, in <module>
    import seahub.settings as seahub_settings
  File "/opt/seatable/seatable-server-latest/dtable-web/seahub/__init__.py", line 4, in <module>
    from .handlers import repo_created_cb, repo_deleted_cb, clean_up_repo_trash_cb, \
  File "/opt/seatable/seatable-server-latest/dtable-web/seahub/handlers.py", line 4, in <module>
    from . import settings
  File "/opt/seatable/seatable-server-latest/dtable-web/seahub/settings.py", line 1066, in <module>
    import dtable_web_settings
  File "/opt/seatable/conf/dtable_web_settings.py", line 64
    CSRF_TRUSTED_ORIGINS = [‘http://10.7.32.6:3001’]
                                ^
SyntaxError: invalid character in identifier

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "main.py", line 8, in <module>
    from dtable_events.app.app import App
  File "/opt/seatable/seatable-server-latest/dtable-events/dtable_events/__init__.py", line 5, in <module>
    from dtable_events.dtable_io.excel import get_insert_update_rows
  File "/opt/seatable/seatable-server-latest/dtable-events/dtable_events/dtable_io/__init__.py", line 19, in <module>
    from dtable_events.app.config import DTABLE_WEB_SERVICE_URL, SESSION_COOKIE_NAME, INNER_DTABLE_DB_URL
  File "/opt/seatable/seatable-server-latest/dtable-events/dtable_events/app/config.py", line 49, in <module>
    raise RuntimeError("Can not import dtable_web settings: %s" % e)
RuntimeError: Can not import dtable_web settings: invalid character in identifier (dtable_web_settings.py, line 64)
Can not import dtable_web settings: invalid character in identifier (dtable_web_settings.py, line 64).
Traceback (most recent call last):
  File "/opt/seatable/seatable-server-latest/dtable-events/dtable_events/app/config.py", line 22, in <module>
    import seahub.settings as seahub_settings
  File "/opt/seatable/seatable-server-latest/dtable-web/seahub/__init__.py", line 4, in <module>
    from .handlers import repo_created_cb, repo_deleted_cb, clean_up_repo_trash_cb, \
  File "/opt/seatable/seatable-server-latest/dtable-web/seahub/handlers.py", line 4, in <module>
    from . import settings
  File "/opt/seatable/seatable-server-latest/dtable-web/seahub/settings.py", line 1066, in <module>
    import dtable_web_settings
  File "/opt/seatable/conf/dtable_web_settings.py", line 64
    CSRF_TRUSTED_ORIGINS = [‘http://10.7.32.6:3001’]
                                ^
SyntaxError: invalid character in identifier

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "main.py", line 8, in <module>
    from dtable_events.app.app import App
  File "/opt/seatable/seatable-server-latest/dtable-events/dtable_events/__init__.py", line 5, in <module>
    from dtable_events.dtable_io.excel import get_insert_update_rows
  File "/opt/seatable/seatable-server-latest/dtable-events/dtable_events/dtable_io/__init__.py", line 19, in <module>
    from dtable_events.app.config import DTABLE_WEB_SERVICE_URL, SESSION_COOKIE_NAME, INNER_DTABLE_DB_URL
  File "/opt/seatable/seatable-server-latest/dtable-events/dtable_events/app/config.py", line 49, in <module>
    raise RuntimeError("Can not import dtable_web settings: %s" % e)
RuntimeError: Can not import dtable_web settings: invalid character in identifier (dtable_web_settings.py, line 64)
Can not import dtable_web settings: invalid character in identifier (dtable_web_settings.py, line 64).
Traceback (most recent call last):
  File "/opt/seatable/seatable-server-latest/dtable-events/dtable_events/app/config.py", line 22, in <module>
    import seahub.settings as seahub_settings
  File "/opt/seatable/seatable-server-latest/dtable-web/seahub/__init__.py", line 4, in <module>
    from .handlers import repo_created_cb, repo_deleted_cb, clean_up_repo_trash_cb, \
  File "/opt/seatable/seatable-server-latest/dtable-web/seahub/handlers.py", line 4, in <module>
    from . import settings
  File "/opt/seatable/seatable-server-latest/dtable-web/seahub/settings.py", line 1066, in <module>
    import dtable_web_settings
  File "/opt/seatable/conf/dtable_web_settings.py", line 64
    CSRF_TRUSTED_ORIGINS = [‘http://10.7.32.6:3001’]
                                ^
SyntaxError: invalid character in identifier

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "main.py", line 8, in <module>
    from dtable_events.app.app import App
  File "/opt/seatable/seatable-server-latest/dtable-events/dtable_events/__init__.py", line 5, in <module>
    from dtable_events.dtable_io.excel import get_insert_update_rows
  File "/opt/seatable/seatable-server-latest/dtable-events/dtable_events/dtable_io/__init__.py", line 19, in <module>
    from dtable_events.app.config import DTABLE_WEB_SERVICE_URL, SESSION_COOKIE_NAME, INNER_DTABLE_DB_URL
  File "/opt/seatable/seatable-server-latest/dtable-events/dtable_events/app/config.py", line 49, in <module>
    raise RuntimeError("Can not import dtable_web settings: %s" % e)
RuntimeError: Can not import dtable_web settings: invalid character in identifier (dtable_web_settings.py, line 64)
Can not import dtable_web settings: invalid character in identifier (dtable_web_settings.py, line 64).
Traceback (most recent call last):
  File "/opt/seatable/seatable-server-latest/dtable-events/dtable_events/app/config.py", line 22, in <module>
    import seahub.settings as seahub_settings
  File "/opt/seatable/seatable-server-latest/dtable-web/seahub/__init__.py", line 4, in <module>
    from .handlers import repo_created_cb, repo_deleted_cb, clean_up_repo_trash_cb, \
  File "/opt/seatable/seatable-server-latest/dtable-web/seahub/handlers.py", line 4, in <module>
    from . import settings
  File "/opt/seatable/seatable-server-latest/dtable-web/seahub/settings.py", line 1066, in <module>
    import dtable_web_settings
  File "/opt/seatable/conf/dtable_web_settings.py", line 64
    CSRF_TRUSTED_ORIGINS = [‘http://10.7.32.6:3001’]
                                ^
SyntaxError: invalid character in identifier

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "main.py", line 8, in <module>
    from dtable_events.app.app import App
  File "/opt/seatable/seatable-server-latest/dtable-events/dtable_events/__init__.py", line 5, in <module>
    from dtable_events.dtable_io.excel import get_insert_update_rows
  File "/opt/seatable/seatable-server-latest/dtable-events/dtable_events/dtable_io/__init__.py", line 19, in <module>
    from dtable_events.app.config import DTABLE_WEB_SERVICE_URL, SESSION_COOKIE_NAME, INNER_DTABLE_DB_URL
  File "/opt/seatable/seatable-server-latest/dtable-events/dtable_events/app/config.py", line 49, in <module>
    raise RuntimeError("Can not import dtable_web settings: %s" % e)
RuntimeError: Can not import dtable_web settings: invalid character in identifier (dtable_web_settings.py, line 64)
Can not import dtable_web settings: invalid character in identifier (dtable_web_settings.py, line 64).
Traceback (most recent call last):
  File "/opt/seatable/seatable-server-latest/dtable-events/dtable_events/app/config.py", line 22, in <module>
    import seahub.settings as seahub_settings
  File "/opt/seatable/seatable-server-latest/dtable-web/seahub/__init__.py", line 4, in <module>
    from .handlers import repo_created_cb, repo_deleted_cb, clean_up_repo_trash_cb, \
  File "/opt/seatable/seatable-server-latest/dtable-web/seahub/handlers.py", line 4, in <module>
    from . import settings
  File "/opt/seatable/seatable-server-latest/dtable-web/seahub/settings.py", line 1066, in <module>
    import dtable_web_settings
  File "/opt/seatable/conf/dtable_web_settings.py", line 64
    CSRF_TRUSTED_ORIGINS = [‘http://10.7.32.6:3001’]
                                ^
SyntaxError: invalid character in identifier

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "main.py", line 8, in <module>
    from dtable_events.app.app import App
  File "/opt/seatable/seatable-server-latest/dtable-events/dtable_events/__init__.py", line 5, in <module>
    from dtable_events.dtable_io.excel import get_insert_update_rows
  File "/opt/seatable/seatable-server-latest/dtable-events/dtable_events/dtable_io/__init__.py", line 19, in <module>
    from dtable_events.app.config import DTABLE_WEB_SERVICE_URL, SESSION_COOKIE_NAME, INNER_DTABLE_DB_URL
  File "/opt/seatable/seatable-server-latest/dtable-events/dtable_events/app/config.py", line 49, in <module>
    raise RuntimeError("Can not import dtable_web settings: %s" % e)
RuntimeError: Can not import dtable_web settings: invalid character in identifier (dtable_web_settings.py, line 64)
Can not import dtable_web settings: invalid character in identifier (dtable_web_settings.py, line 64).
Traceback (most recent call last):
  File "/opt/seatable/seatable-server-latest/dtable-events/dtable_events/app/config.py", line 22, in <module>
    import seahub.settings as seahub_settings
  File "/opt/seatable/seatable-server-latest/dtable-web/seahub/__init__.py", line 4, in <module>
    from .handlers import repo_created_cb, repo_deleted_cb, clean_up_repo_trash_cb, \
  File "/opt/seatable/seatable-server-latest/dtable-web/seahub/handlers.py", line 4, in <module>
    from . import settings
  File "/opt/seatable/seatable-server-latest/dtable-web/seahub/settings.py", line 1066, in <module>
    import dtable_web_settings
  File "/opt/seatable/conf/dtable_web_settings.py", line 64
    CSRF_TRUSTED_ORIGINS = [‘http://10.7.32.6:3001’]
                                ^
SyntaxError: invalid character in identifier

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "main.py", line 8, in <module>
    from dtable_events.app.app import App
  File "/opt/seatable/seatable-server-latest/dtable-events/dtable_events/__init__.py", line 5, in <module>
    from dtable_events.dtable_io.excel import get_insert_update_rows
  File "/opt/seatable/seatable-server-latest/dtable-events/dtable_events/dtable_io/__init__.py", line 19, in <module>
    from dtable_events.app.config import DTABLE_WEB_SERVICE_URL, SESSION_COOKIE_NAME, INNER_DTABLE_DB_URL
  File "/opt/seatable/seatable-server-latest/dtable-events/dtable_events/app/config.py", line 49, in <module>
    raise RuntimeError("Can not import dtable_web settings: %s" % e)
RuntimeError: Can not import dtable_web settings: invalid character in identifier (dtable_web_settings.py, line 64)

尝试去掉端口后,还是这样

                               ^
SyntaxError: invalid character in identifier

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
 File "main.py", line 8, in <module>
   from dtable_events.app.app import App
 File "/opt/seatable/seatable-server-latest/dtable-events/dtable_events/__init__.py", line 5, in <module>
   from dtable_events.dtable_io.excel import get_insert_update_rows
 File "/opt/seatable/seatable-server-latest/dtable-events/dtable_events/dtable_io/__init__.py", line 19, in <module>
   from dtable_events.app.config import DTABLE_WEB_SERVICE_URL, SESSION_COOKIE_NAME, INNER_DTABLE_DB_URL
 File "/opt/seatable/seatable-server-latest/dtable-events/dtable_events/app/config.py", line 49, in <module>
   raise RuntimeError("Can not import dtable_web settings: %s" % e)
RuntimeError: Can not import dtable_web settings: invalid character in identifier (dtable_web_settings.py, line 64)

dtable-db.log

[2024-08-08 00:24:09] [info] there is a total of 0.000000MB cache in dtable cache
[2024-08-08 01:24:09] [info] there is a total of 0.000000MB cache in dtable cache
[2024-08-08 02:24:09] [info] there is a total of 0.000000MB cache in dtable cache
[2024-08-08 03:24:09] [info] there is a total of 0.000000MB cache in dtable cache
[2024-08-08 04:24:09] [info] there is a total of 0.000000MB cache in dtable cache
[2024-08-08 05:24:09] [info] there is a total of 0.000000MB cache in dtable cache
[2024-08-08 06:24:09] [info] there is a total of 0.000000MB cache in dtable cache
[2024-08-08 07:24:09] [info] there is a total of 0.000000MB cache in dtable cache
[2024-08-08 08:24:09] [info] there is a total of 0.000000MB cache in dtable cache
[2024-08-08 09:24:09] [info] there is a total of 0.000000MB cache in dtable cache
[2024-08-08 10:24:09] [info] there is a total of 0.000000MB cache in dtable cache
[2024-08-08 11:24:09] [info] there is a total of 0.000000MB cache in dtable cache
[2024-08-08 11:30:42] [info] Received interrupt or terminate signal. Closing http server.
[2024-08-08 11:30:44] [info] dtable db server exiting: http: Server closed
[2025-03-05 11:51:47] [info] use the default log level: info
[2025-03-05 11:51:47] [info] Dtable DB started.
[2025-03-05 11:51:49] [info] use the default log level: info
[2025-03-05 11:51:50] [info] Dtable DB started.
[2025-03-05 11:52:33] [info] use the default log level: info
[2025-03-05 11:52:33] [info] Dtable DB started.
[2025-03-05 12:00:45] [info] use the default log level: info
[2025-03-05 12:00:45] [info] Dtable DB started.
[2025-03-05 12:00:47] [info] use the default log level: info
[2025-03-05 12:00:47] [info] Dtable DB started.
[2025-03-05 12:03:55] [info] Received interrupt or terminate signal. Closing http server.
[2025-03-05 12:03:56] [info] dtable db server exiting: http: Server closed
[2025-03-05 12:06:42] [info] use the default log level: info
[2025-03-05 12:06:42] [info] Dtable DB started.
[2025-03-05 12:11:42] [info] there is a total of 0.000000MB cache in dtable cache

image 单引符号错了,得用英文输入法的

用’替代之后,依然打不开
dtable-db.log

[2024-08-08 00:24:09] [info] there is a total of 0.000000MB cache in dtable cache
[2024-08-08 01:24:09] [info] there is a total of 0.000000MB cache in dtable cache
[2024-08-08 02:24:09] [info] there is a total of 0.000000MB cache in dtable cache
[2024-08-08 03:24:09] [info] there is a total of 0.000000MB cache in dtable cache
[2024-08-08 04:24:09] [info] there is a total of 0.000000MB cache in dtable cache
[2024-08-08 05:24:09] [info] there is a total of 0.000000MB cache in dtable cache
[2024-08-08 06:24:09] [info] there is a total of 0.000000MB cache in dtable cache
[2024-08-08 07:24:09] [info] there is a total of 0.000000MB cache in dtable cache
[2024-08-08 08:24:09] [info] there is a total of 0.000000MB cache in dtable cache
[2024-08-08 09:24:09] [info] there is a total of 0.000000MB cache in dtable cache
[2024-08-08 10:24:09] [info] there is a total of 0.000000MB cache in dtable cache
[2024-08-08 11:24:09] [info] there is a total of 0.000000MB cache in dtable cache
[2024-08-08 11:30:42] [info] Received interrupt or terminate signal. Closing http server.
[2024-08-08 11:30:44] [info] dtable db server exiting: http: Server closed
[2025-03-05 11:51:47] [info] use the default log level: info
[2025-03-05 11:51:47] [info] Dtable DB started.
[2025-03-05 11:51:49] [info] use the default log level: info
[2025-03-05 11:51:50] [info] Dtable DB started.
[2025-03-05 11:52:33] [info] use the default log level: info
[2025-03-05 11:52:33] [info] Dtable DB started.
[2025-03-05 12:00:45] [info] use the default log level: info
[2025-03-05 12:00:45] [info] Dtable DB started.
[2025-03-05 12:00:47] [info] use the default log level: info
[2025-03-05 12:00:47] [info] Dtable DB started.
[2025-03-05 12:03:55] [info] Received interrupt or terminate signal. Closing http server.
[2025-03-05 12:03:56] [info] dtable db server exiting: http: Server closed
[2025-03-05 12:06:42] [info] use the default log level: info
[2025-03-05 12:06:42] [info] Dtable DB started.
[2025-03-05 12:11:42] [info] there is a total of 0.000000MB cache in dtable cache
[2025-03-05 12:40:59] [info] Received interrupt or terminate signal. Closing http server.
[2025-03-05 12:40:59] [info] dtable db server exiting: http: Server closed
[2025-03-05 12:42:50] [info] use the default log level: info
[2025-03-05 12:42:50] [info] Dtable DB started.
[2025-03-05 12:45:25] [info] use the default log level: info
[2025-03-05 12:45:25] [info] Dtable DB started.
[2025-03-05 12:51:30] [info] use the default log level: info
[2025-03-05 12:51:30] [info] Dtable DB started.
[2025-03-05 12:51:30] [info] use the default log level: info
[2025-03-05 12:51:30] [fatal] Failed to initialize metabase: failed to open base f5a24a4e-a5bf-463a-b878-13b0a3a509c8: failed to open db f5a24a4e-a5bf-463a-b878-13b0a3a509c8: Cannot acquire directory lock on "/opt/seatable/db-data/f5a24a4e-a5bf-463a-b878-13b0a3a509c8".  Another process is using this Badger database. error: resource temporarily unavailable
[2025-03-05 12:56:30] [info] there is a total of 0.000000MB cache in dtable cache
[2025-03-05 13:12:25] [info] Received interrupt or terminate signal. Closing http server.
[2025-03-05 13:12:25] [info] dtable db server exiting: http: Server closed
[2025-03-05 13:13:18] [info] use the default log level: info
[2025-03-05 13:13:18] [info] Dtable DB started.
[2025-03-05 13:13:23] [info] use the default log level: info
[2025-03-05 13:13:23] [info] Dtable DB started.
[2025-03-05 14:37:14] [info] use the default log level: info
[2025-03-05 14:37:14] [info] Dtable DB started.
[2025-03-05 16:59:49] [info] use the default log level: info
[2025-03-05 16:59:49] [info] Dtable DB started.

dtable-events.log

                                ^
SyntaxError: invalid character in identifier

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "main.py", line 8, in <module>
    from dtable_events.app.app import App
  File "/opt/seatable/seatable-server-latest/dtable-events/dtable_events/__init__.py", line 5, in <module>
    from dtable_events.dtable_io.excel import get_insert_update_rows
  File "/opt/seatable/seatable-server-latest/dtable-events/dtable_events/dtable_io/__init__.py", line 19, in <module>
    from dtable_events.app.config import DTABLE_WEB_SERVICE_URL, SESSION_COOKIE_NAME, INNER_DTABLE_DB_URL
  File "/opt/seatable/seatable-server-latest/dtable-events/dtable_events/app/config.py", line 49, in <module>
    raise RuntimeError("Can not import dtable_web settings: %s" % e)
RuntimeError: Can not import dtable_web settings: invalid character in identifier (dtable_web_settings.py, line 64)

用’替代之后,依然打不开,两个log见楼上,不知道是否还可以看哪些log辅助排查?