-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
源码安装启动不了服务 #110
Comments
可以列一下你源码安装的步骤吗? |
是不是修改后的目录有读写权限问题? |
看日志是没甚么异常,只是没显示server ready的状态。 |
|
我才用源码安装的方式主要是我的系统盘占用99%,想要将labelu的数据保存在数据盘,所以想要指定保存路径😂如果使用pip install 安装,labelu --data_dir=xxx,这种方式就好了🤣 |
(labelu-env) [root@localhost labelU]# pip install labelu --proxy=http://192.168.0.237:7890 2024-07-08 09:34:29.309 | INFO | sqlalchemy.log:log:179 - [no key 0.00015s] () 2024-07-08 09:34:29.320 | INFO | sqlalchemy.log:log:179 - [no key 0.00018s] () 2024-07-08 09:34:29.333 | INFO | sqlalchemy.log:log:179 - [no key 0.00018s] () 2024-07-08 09:34:29.348 | INFO | sqlalchemy.log:log:179 - [no key 0.00020s] () 2024-07-08 09:34:29.367 | INFO | sqlalchemy.log:log:179 - [no key 0.00016s] () |
支持的,这个问题以前没出现过。我排查一下。 |
用 python 3.11 试一下?linux 第一次安装使用 3.7 复现了这个问题。 |
是python 3.11吗? |
使用poetry install安装的,然后输入labelu --host=0.0.0.0 --port=8020,下面是日志。服务器IP是192.168.0.66,访问http://192.168.0.66:8020访问不了。。。
(labelu) [root@localhost labelU]# labelu --host=0.0.0.0 --port=8020
2024-07-05 15:18:47.416 | INFO | labelu.internal.common.config:Settings:22 - Database and media directory: /home/data/labelu-data/labelu
2024-07-05 15:18:47.717 | INFO | sqlalchemy.log:log:179 - BEGIN (implicit)
2024-07-05 15:18:47.717 | INFO | sqlalchemy.log:log:179 - PRAGMA main.table_info("user")
2024-07-05 15:18:47.717 | INFO | sqlalchemy.log:log:179 - [raw sql] ()
2024-07-05 15:18:47.718 | INFO | sqlalchemy.log:log:179 - PRAGMA temp.table_info("user")
2024-07-05 15:18:47.718 | INFO | sqlalchemy.log:log:179 - [raw sql] ()
2024-07-05 15:18:47.718 | INFO | sqlalchemy.log:log:179 - PRAGMA main.table_info("task")
2024-07-05 15:18:47.718 | INFO | sqlalchemy.log:log:179 - [raw sql] ()
2024-07-05 15:18:47.718 | INFO | sqlalchemy.log:log:179 - PRAGMA temp.table_info("task")
2024-07-05 15:18:47.718 | INFO | sqlalchemy.log:log:179 - [raw sql] ()
2024-07-05 15:18:47.718 | INFO | sqlalchemy.log:log:179 - PRAGMA main.table_info("task_sample")
2024-07-05 15:18:47.719 | INFO | sqlalchemy.log:log:179 - [raw sql] ()
2024-07-05 15:18:47.719 | INFO | sqlalchemy.log:log:179 - PRAGMA temp.table_info("task_sample")
2024-07-05 15:18:47.719 | INFO | sqlalchemy.log:log:179 - [raw sql] ()
2024-07-05 15:18:47.719 | INFO | sqlalchemy.log:log:179 - PRAGMA main.table_info("task_attachment")
2024-07-05 15:18:47.719 | INFO | sqlalchemy.log:log:179 - [raw sql] ()
2024-07-05 15:18:47.719 | INFO | sqlalchemy.log:log:179 - PRAGMA temp.table_info("task_attachment")
2024-07-05 15:18:47.719 | INFO | sqlalchemy.log:log:179 - [raw sql] ()
2024-07-05 15:18:47.719 | INFO | sqlalchemy.log:log:179 - PRAGMA main.table_info("task_pre_annotation")
2024-07-05 15:18:47.719 | INFO | sqlalchemy.log:log:179 - [raw sql] ()
2024-07-05 15:18:47.719 | INFO | sqlalchemy.log:log:179 - PRAGMA temp.table_info("task_pre_annotation")
2024-07-05 15:18:47.720 | INFO | sqlalchemy.log:log:179 - [raw sql] ()
2024-07-05 15:18:47.720 | INFO | sqlalchemy.log:log:179 -
CREATE TABLE user (
id INTEGER NOT NULL,
username VARCHAR,
hashed_password VARCHAR,
created_at DATETIME,
updated_at DATETIME,
PRIMARY KEY (id)
)
2024-07-05 15:18:47.720 | INFO | sqlalchemy.log:log:179 - [no key 0.00014s] ()
2024-07-05 15:18:47.723 | INFO | sqlalchemy.log:log:179 - CREATE UNIQUE INDEX ix_user_username ON user (username)
2024-07-05 15:18:47.723 | INFO | sqlalchemy.log:log:179 - [no key 0.00012s] ()
2024-07-05 15:18:47.725 | INFO | sqlalchemy.log:log:179 - CREATE INDEX ix_user_id ON user (id)
2024-07-05 15:18:47.725 | INFO | sqlalchemy.log:log:179 - [no key 0.00011s] ()
2024-07-05 15:18:47.729 | INFO | sqlalchemy.log:log:179 -
CREATE TABLE task (
id INTEGER NOT NULL,
name VARCHAR(64),
description VARCHAR(1024),
tips VARCHAR(1024),
last_sample_inner_id INTEGER,
config TEXT,
media_type VARCHAR(32),
status VARCHAR(32),
created_by INTEGER,
updated_by INTEGER,
created_at DATETIME,
updated_at DATETIME,
deleted_at DATETIME,
PRIMARY KEY (id),
FOREIGN KEY(created_by) REFERENCES user (id),
FOREIGN KEY(updated_by) REFERENCES user (id)
)
2024-07-05 15:18:47.729 | INFO | sqlalchemy.log:log:179 - [no key 0.00011s] ()
2024-07-05 15:18:47.733 | INFO | sqlalchemy.log:log:179 - CREATE INDEX ix_task_id ON task (id)
2024-07-05 15:18:47.733 | INFO | sqlalchemy.log:log:179 - [no key 0.00009s] ()
2024-07-05 15:18:47.736 | INFO | sqlalchemy.log:log:179 - CREATE INDEX ix_task_created_by ON task (created_by)
2024-07-05 15:18:47.736 | INFO | sqlalchemy.log:log:179 - [no key 0.00010s] ()
2024-07-05 15:18:47.739 | INFO | sqlalchemy.log:log:179 - CREATE INDEX ix_task_deleted_at ON task (deleted_at)
2024-07-05 15:18:47.739 | INFO | sqlalchemy.log:log:179 - [no key 0.00011s] ()
2024-07-05 15:18:47.741 | INFO | sqlalchemy.log:log:179 - CREATE INDEX idx_task_id_deleted_at_index ON task (id, deleted_at)
2024-07-05 15:18:47.741 | INFO | sqlalchemy.log:log:179 - [no key 0.00013s] ()
2024-07-05 15:18:47.743 | INFO | sqlalchemy.log:log:179 - CREATE INDEX ix_task_name ON task (name)
2024-07-05 15:18:47.743 | INFO | sqlalchemy.log:log:179 - [no key 0.00015s] ()
2024-07-05 15:18:47.746 | INFO | sqlalchemy.log:log:179 -
CREATE TABLE task_attachment (
id INTEGER NOT NULL,
filename VARCHAR(256),
url VARCHAR(256),
path VARCHAR(256),
task_id INTEGER,
created_by INTEGER,
updated_by INTEGER,
created_at DATETIME,
updated_at DATETIME,
deleted_at DATETIME,
PRIMARY KEY (id),
FOREIGN KEY(task_id) REFERENCES task (id),
FOREIGN KEY(created_by) REFERENCES user (id),
FOREIGN KEY(updated_by) REFERENCES user (id)
)
2024-07-05 15:18:47.747 | INFO | sqlalchemy.log:log:179 - [no key 0.00040s] ()
2024-07-05 15:18:47.749 | INFO | sqlalchemy.log:log:179 - CREATE INDEX ix_task_attachment_created_by ON task_attachment (created_by)
2024-07-05 15:18:47.750 | INFO | sqlalchemy.log:log:179 - [no key 0.00022s] ()
2024-07-05 15:18:47.752 | INFO | sqlalchemy.log:log:179 - CREATE INDEX ix_task_attachment_id ON task_attachment (id)
2024-07-05 15:18:47.753 | INFO | sqlalchemy.log:log:179 - [no key 0.00036s] ()
2024-07-05 15:18:47.756 | INFO | sqlalchemy.log:log:179 - CREATE INDEX idx_attachment_id_deleted_at ON task_attachment (id, deleted_at)
2024-07-05 15:18:47.756 | INFO | sqlalchemy.log:log:179 - [no key 0.00033s] ()
2024-07-05 15:18:47.759 | INFO | sqlalchemy.log:log:179 - CREATE INDEX ix_task_attachment_deleted_at ON task_attachment (deleted_at)
2024-07-05 15:18:47.759 | INFO | sqlalchemy.log:log:179 - [no key 0.00044s] ()
2024-07-05 15:18:47.763 | INFO | sqlalchemy.log:log:179 - CREATE INDEX ix_task_attachment_task_id ON task_attachment (task_id)
2024-07-05 15:18:47.763 | INFO | sqlalchemy.log:log:179 - [no key 0.00044s] ()
2024-07-05 15:18:47.767 | INFO | sqlalchemy.log:log:179 - CREATE INDEX ix_task_attachment_updated_by ON task_attachment (updated_by)
2024-07-05 15:18:47.767 | INFO | sqlalchemy.log:log:179 - [no key 0.00044s] ()
2024-07-05 15:18:47.772 | INFO | sqlalchemy.log:log:179 -
CREATE TABLE task_sample (
id INTEGER NOT NULL,
inner_id INTEGER,
task_id INTEGER,
file_id INTEGER,
created_by INTEGER,
updated_by INTEGER,
created_at DATETIME,
updated_at DATETIME,
annotated_count INTEGER,
data TEXT,
state VARCHAR(32),
deleted_at DATETIME,
PRIMARY KEY (id),
FOREIGN KEY(task_id) REFERENCES task (id),
FOREIGN KEY(file_id) REFERENCES task_attachment (id),
FOREIGN KEY(created_by) REFERENCES user (id),
FOREIGN KEY(updated_by) REFERENCES user (id)
)
2024-07-05 15:18:47.773 | INFO | sqlalchemy.log:log:179 - [no key 0.00095s] ()
2024-07-05 15:18:47.776 | INFO | sqlalchemy.log:log:179 - CREATE INDEX ix_task_sample_id ON task_sample (id)
2024-07-05 15:18:47.776 | INFO | sqlalchemy.log:log:179 - [no key 0.00036s] ()
2024-07-05 15:18:47.779 | INFO | sqlalchemy.log:log:179 - CREATE INDEX ix_task_sample_file_id ON task_sample (file_id)
2024-07-05 15:18:47.779 | INFO | sqlalchemy.log:log:179 - [no key 0.00019s] ()
2024-07-05 15:18:47.781 | INFO | sqlalchemy.log:log:179 - CREATE INDEX ix_task_sample_task_id ON task_sample (task_id)
2024-07-05 15:18:47.781 | INFO | sqlalchemy.log:log:179 - [no key 0.00010s] ()
2024-07-05 15:18:47.784 | INFO | sqlalchemy.log:log:179 - CREATE INDEX ix_task_sample_deleted_at ON task_sample (deleted_at)
2024-07-05 15:18:47.784 | INFO | sqlalchemy.log:log:179 - [no key 0.00009s] ()
2024-07-05 15:18:47.786 | INFO | sqlalchemy.log:log:179 - CREATE INDEX ix_task_sample_created_by ON task_sample (created_by)
2024-07-05 15:18:47.786 | INFO | sqlalchemy.log:log:179 - [no key 0.00011s] ()
2024-07-05 15:18:47.788 | INFO | sqlalchemy.log:log:179 - CREATE INDEX idx_sample_id_deleted_at ON task_sample (id, deleted_at)
2024-07-05 15:18:47.788 | INFO | sqlalchemy.log:log:179 - [no key 0.00010s] ()
2024-07-05 15:18:47.790 | INFO | sqlalchemy.log:log:179 -
CREATE TABLE task_pre_annotation (
id INTEGER NOT NULL,
task_id INTEGER,
file_id INTEGER,
created_by INTEGER,
updated_by INTEGER,
created_at DATETIME,
updated_at DATETIME,
data TEXT,
deleted_at DATETIME,
PRIMARY KEY (id),
FOREIGN KEY(task_id) REFERENCES task (id),
FOREIGN KEY(file_id) REFERENCES task_attachment (id),
FOREIGN KEY(created_by) REFERENCES user (id),
FOREIGN KEY(updated_by) REFERENCES user (id)
)
2024-07-05 15:18:47.790 | INFO | sqlalchemy.log:log:179 - [no key 0.00020s] ()
2024-07-05 15:18:47.792 | INFO | sqlalchemy.log:log:179 - CREATE INDEX ix_task_pre_annotation_deleted_at ON task_pre_annotation (deleted_at)
2024-07-05 15:18:47.792 | INFO | sqlalchemy.log:log:179 - [no key 0.00010s] ()
2024-07-05 15:18:47.795 | INFO | sqlalchemy.log:log:179 - CREATE INDEX idx_pre_annotation_id_deleted_at ON task_pre_annotation (id, deleted_at)
2024-07-05 15:18:47.795 | INFO | sqlalchemy.log:log:179 - [no key 0.00009s] ()
2024-07-05 15:18:47.797 | INFO | sqlalchemy.log:log:179 - CREATE INDEX ix_task_pre_annotation_id ON task_pre_annotation (id)
2024-07-05 15:18:47.797 | INFO | sqlalchemy.log:log:179 - [no key 0.00011s] ()
2024-07-05 15:18:47.799 | INFO | sqlalchemy.log:log:179 - CREATE INDEX ix_task_pre_annotation_created_by ON task_pre_annotation (created_by)
2024-07-05 15:18:47.799 | INFO | sqlalchemy.log:log:179 - [no key 0.00009s] ()
2024-07-05 15:18:47.801 | INFO | sqlalchemy.log:log:179 - CREATE INDEX ix_task_pre_annotation_task_id ON task_pre_annotation (task_id)
2024-07-05 15:18:47.801 | INFO | sqlalchemy.log:log:179 - [no key 0.00012s] ()
2024-07-05 15:18:47.803 | INFO | sqlalchemy.log:log:179 - CREATE INDEX ix_task_pre_annotation_file_id ON task_pre_annotation (file_id)
2024-07-05 15:18:47.804 | INFO | sqlalchemy.log:log:179 - [no key 0.00010s] ()
2024-07-05 15:18:47.806 | INFO | sqlalchemy.log:log:179 - COMMIT
INFO [alembic.runtime.migration] Context impl SQLiteImpl.
INFO [alembic.runtime.migration] Will assume non-transactional DDL.
INFO [alembic.runtime.migration] Running upgrade -> 54fee6a7ecd8, init db
INFO [alembic.runtime.migration] Running upgrade 54fee6a7ecd8 -> e76c2ca5562e, add inner_id
INFO [alembic.runtime.migration] Running upgrade e76c2ca5562e -> 9d5da133bbe4, replace key with value in sample table and display unicode as the corresponding Chinese
INFO [alembic.runtime.migration] Running upgrade 9d5da133bbe4 -> 363f9eea797e, Change tool config format
INFO [alembic.runtime.migration] Running upgrade 363f9eea797e -> 0145db0fec34, Change Result format
INFO [alembic.runtime.migration] Running upgrade 0145db0fec34 -> 1b174ca5159a, update pointList => points
INFO [alembic.runtime.migration] Running upgrade 1b174ca5159a -> bc8fcb35b66b, add file and pre_annotation
The text was updated successfully, but these errors were encountered: