Skip to content
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

程序启动问题 #162

Open
FanZhang91 opened this issue Nov 1, 2024 · 0 comments
Open

程序启动问题 #162

FanZhang91 opened this issue Nov 1, 2024 · 0 comments

Comments

@FanZhang91
Copy link

我用Pyinstaller打包dds.py成exe可执行程序,但是在启动时发生了如下现象。感觉程序启动了两次,第一次启动看着是正常的,为什么会二次启动?


export DDS_PLATFORM=winDDS).
export DDS_HOME_DIR=C:\Users\user
export DDS_SHARED_LIB_DIR=C:\Users\user.deepdataspace\lib
export DDS_SHARED_SSL_LIB=C:\Users\user.deepdataspace\lib\libssl.so.1.1
export DDS_SHARED_CRYPTO_LIB=C:\Users\user.deepdataspace\lib\libcrypto.so.1.1
export DDS_SHARED_CURL_LIB=C:\Users\user.deepdataspace\lib\libcurl.so.4
export DDS_CUR_DIR=C:\Users\user\AppData\Local\Temp_MEI155762\deepdataspace\services
export DDS_DB_ENGIN=sqlite3
export DDS_DB_HOST=127.0.0.1
export DDS_DB_PORT=3306
export DDS_DB_NAME=deepdataspace
export DDS_DB_USER=dds
export DDS_DB_PASS=dds
export DDS_REDIS_HOST=127.0.0.1
export DDS_REDIS_PORT=9900
export DDS_REDIS_PASS=O4LIAE68H2
export DDS_REDIS_DBNAME=0
export DDS_REDIS_SELF_HOSTED=True
export DDS_REDIS_DIR=C:\Users\user.deepdataspace\redis
export DDS_REDIS_BIN=C:\Users\user.deepdataspace\redis\bin\redis-server.exe
export DDS_REDIS_CONF=C:\Users\user.deepdataspace\redis\redis.conf
export DDS_REDIS_LOG=C:\Users\user.deepdataspace\redis\redis.log
export DDS_REDIS_PID=C:\Users\user.deepdataspace\redis\redis.pid
export DDS_MONGODB_HOST=127.0.0.1
export DDS_MONGODB_PORT=9800
export DDS_MONGODB_USER=user
export DDS_MONGODB_PASS=7YB4NN31LD
export DDS_MONGODB_DBNAME=dds
export DDS_MONGODB_SELF_HOSTED=True
export DDS_MONGODB_DIR=C:\Users\user.deepdataspace\mongodb
export DDS_MONGODB_BIN=C:\Users\user.deepdataspace\mongodb\bin\mongod.exe
export DDS_MONGODB_CONF=C:\Users\user.deepdataspace\mongodb\mongo.conf.yaml
export DDS_MONGODB_LOG=C:\Users\user.deepdataspace\mongodb\mongo.log
export DDS_MONGODB_PID=C:\Users\user.deepdataspace\mongodb\mongo.pid
export DDS_MONGODB_DBDIR=C:\Users\user.deepdataspace\mongodb\db
export DDS_DJANGO_HOST=127.0.0.1
export DDS_DJANGO_PORT=8765
export DDS_DJANGO_DIR=C:\Users\user.deepdataspace\django
export DDS_DJANGO_LOG=C:\Users\user.deepdataspace\django\django.log
export DDS_DJANGO_KEY=ILTW5ISN411SMKGS0WXFN2U23H3YCNPZ
export DDS_DJANGO_KEY_FILE=C:\Users\user.deepdataspace\django\secret.txt
export DJANGO_SETTINGS_MODULE=deepdataspace.server.settings
export DDS_CELERY_DIR=C:\Users\user.deepdataspace\celery
export DDS_CELERY_LOG=C:\Users\user.deepdataspace\celery\celery.log
export DDS_CELERY_WORKER_POOL=solo
export DDS_DATA_DIR=C:\Users\user.deepdataspace\datasets
export DDS_VERBOSE_LOG=True
trying to start redis with command: C:\Users\user.deepdataspace\redis\bin\redis-server.exe redis.conf --dir C:\Users\user.deepdataspace\redis --logfile C:\Users\user.deepdataspace\redis\redis.log --pidfile C:\Users\user.deepdataspace\redis\redis.pid --port 9900
redis is started
export DDS_REDIS_PORT=9900
trying to start mongodb with command: C:\Users\user.deepdataspace\mongodb\bin\mongod.exe -f C:\Users\user.deepdataspace\mongodb\mongo.conf.yaml --dbpath C:\Users\user.deepdataspace\mongodb\db --logpath C:\Users\user.deepdataspace\mongodb\mongo.log --pidfilepath C:\Users\user.deepdataspace\mongodb\mongo.pid --auth --port 9800
{"t":{"$date":"2024-11-01T06:20:55.677Z"},"s":"I", "c":"CONTROL", "id":20697, "ctx":"-","msg":"Renamed existing log file","attr":{"oldLogPath":"C:\Users\user\.deepdataspace\mongodb\mongo.log","newLogPath":"C:\Users\user\.deepdataspace\mongodb\mongo.log.2024-11-01T06-20-55"}}
mongodb is started
export DDS_MONGODB_PORT=9800
trying to start celery with command: F:\zf\demo\deepdataspace\output\dist\main.exe -m celery -A deepdataspace.task:app worker -l info -c 1 --logfile=C:\Users\user.deepdataspace\celery\celery.log
export DDS_PLATFORM=winDDS).
export DDS_HOME_DIR=C:\Users\user
export DDS_SHARED_LIB_DIR=C:\Users\user.deepdataspace\lib
export DDS_SHARED_SSL_LIB=C:\Users\user.deepdataspace\lib\libssl.so.1.1
export DDS_SHARED_CRYPTO_LIB=C:\Users\user.deepdataspace\lib\libcrypto.so.1.1
export DDS_SHARED_CURL_LIB=C:\Users\user.deepdataspace\lib\libcurl.so.4
export DDS_CUR_DIR=C:\Users\user\AppData\Local\Temp_MEI155762\deepdataspace\services
export DDS_DB_ENGIN=sqlite3
export DDS_DB_HOST=127.0.0.1
export DDS_DB_PORT=3306
export DDS_DB_NAME=deepdataspace
export DDS_DB_USER=dds
export DDS_DB_PASS=dds
export DDS_REDIS_HOST=127.0.0.1
export DDS_REDIS_PORT=9900
export DDS_REDIS_PASS=O4LIAE68H2
export DDS_REDIS_DBNAME=0
export DDS_REDIS_SELF_HOSTED=True
export DDS_REDIS_DIR=C:\Users\user.deepdataspace\redis
export DDS_REDIS_BIN=C:\Users\user.deepdataspace\redis\bin\redis-server.exe
export DDS_REDIS_CONF=C:\Users\user.deepdataspace\redis\redis.conf
export DDS_REDIS_LOG=C:\Users\user.deepdataspace\redis\redis.log
export DDS_REDIS_PID=C:\Users\user.deepdataspace\redis\redis.pid
export DDS_MONGODB_HOST=127.0.0.1
export DDS_MONGODB_PORT=9800
export DDS_MONGODB_USER=user
export DDS_MONGODB_PASS=7YB4NN31LD
export DDS_MONGODB_DBNAME=dds
export DDS_MONGODB_SELF_HOSTED=True
export DDS_MONGODB_DIR=C:\Users\user.deepdataspace\mongodb
export DDS_MONGODB_BIN=C:\Users\user.deepdataspace\mongodb\bin\mongod.exe
export DDS_MONGODB_CONF=C:\Users\user.deepdataspace\mongodb\mongo.conf.yaml
export DDS_MONGODB_LOG=C:\Users\user.deepdataspace\mongodb\mongo.log
export DDS_MONGODB_PID=C:\Users\user.deepdataspace\mongodb\mongo.pid
export DDS_MONGODB_DBDIR=C:\Users\user.deepdataspace\mongodb\db
export DDS_DJANGO_HOST=127.0.0.1
export DDS_DJANGO_PORT=8765
export DDS_DJANGO_DIR=C:\Users\user.deepdataspace\django
export DDS_DJANGO_LOG=C:\Users\user.deepdataspace\django\django.log
export DDS_DJANGO_KEY=ILTW5ISN411SMKGS0WXFN2U23H3YCNPZ
export DDS_DJANGO_KEY_FILE=C:\Users\user.deepdataspace\django\secret.txt
export DJANGO_SETTINGS_MODULE=deepdataspace.server.settings
export DDS_CELERY_DIR=C:\Users\user.deepdataspace\celery
export DDS_CELERY_LOG=C:\Users\user.deepdataspace\celery\celery.log
export DDS_CELERY_WORKER_POOL=solo
export DDS_DATA_DIR=C:\Users\user.deepdataspace\datasets
export DDS_VERBOSE_LOG=True
trying to start redis with command: C:\Users\user.deepdataspace\redis\bin\redis-server.exe redis.conf --dir C:\Users\user.deepdataspace\redis --logfile C:\Users\user.deepdataspace\redis\redis.log --pidfile C:\Users\user.deepdataspace\redis\redis.pid --port 9900
redis is already started, killing it now...
celery is started
trying to start django with command: F:\zf\demo\deepdataspace\output\dist\main.exe .\django-admin.EXE runserver 127.0.0.1:8765 --no-color --pythonpath . --settings deepdataspace.server.settings --noreload
export DDS_PLATFORM=winDDS).
export DDS_HOME_DIR=C:\Users\user
export DDS_SHARED_LIB_DIR=C:\Users\user.deepdataspace\lib
export DDS_SHARED_SSL_LIB=C:\Users\user.deepdataspace\lib\libssl.so.1.1
export DDS_SHARED_CRYPTO_LIB=C:\Users\user.deepdataspace\lib\libcrypto.so.1.1
export DDS_SHARED_CURL_LIB=C:\Users\user.deepdataspace\lib\libcurl.so.4
export DDS_CUR_DIR=C:\Users\user\AppData\Local\Temp_MEI155762\deepdataspace\services
export DDS_DB_ENGIN=sqlite3
export DDS_DB_HOST=127.0.0.1
export DDS_DB_PORT=3306
export DDS_DB_NAME=deepdataspace
export DDS_DB_USER=dds
export DDS_DB_PASS=dds
export DDS_REDIS_HOST=127.0.0.1
export DDS_REDIS_PORT=9900
export DDS_REDIS_PASS=O4LIAE68H2
export DDS_REDIS_DBNAME=0
export DDS_REDIS_SELF_HOSTED=True
export DDS_REDIS_DIR=C:\Users\user.deepdataspace\redis
export DDS_REDIS_BIN=C:\Users\user.deepdataspace\redis\bin\redis-server.exe
export DDS_REDIS_CONF=C:\Users\user.deepdataspace\redis\redis.conf
export DDS_REDIS_LOG=C:\Users\user.deepdataspace\redis\redis.log
export DDS_REDIS_PID=C:\Users\user.deepdataspace\redis\redis.pid
export DDS_MONGODB_HOST=127.0.0.1
export DDS_MONGODB_PORT=9800
export DDS_MONGODB_USER=user
export DDS_MONGODB_PASS=7YB4NN31LD
export DDS_MONGODB_DBNAME=dds
export DDS_MONGODB_SELF_HOSTED=True
export DDS_MONGODB_DIR=C:\Users\user.deepdataspace\mongodb
export DDS_MONGODB_BIN=C:\Users\user.deepdataspace\mongodb\bin\mongod.exe
export DDS_MONGODB_CONF=C:\Users\user.deepdataspace\mongodb\mongo.conf.yaml
export DDS_MONGODB_LOG=C:\Users\user.deepdataspace\mongodb\mongo.log
export DDS_MONGODB_PID=C:\Users\user.deepdataspace\mongodb\mongo.pid
export DDS_MONGODB_DBDIR=C:\Users\user.deepdataspace\mongodb\db
export DDS_DJANGO_HOST=127.0.0.1
export DDS_DJANGO_PORT=8765
export DDS_DJANGO_DIR=C:\Users\user.deepdataspace\django
export DDS_DJANGO_LOG=C:\Users\user.deepdataspace\django\django.log
export DDS_DJANGO_KEY=ILTW5ISN411SMKGS0WXFN2U23H3YCNPZ
export DDS_DJANGO_KEY_FILE=C:\Users\user.deepdataspace\django\secret.txt
export DJANGO_SETTINGS_MODULE=deepdataspace.server.settings
export DDS_CELERY_DIR=C:\Users\user.deepdataspace\celery
export DDS_CELERY_LOG=C:\Users\user.deepdataspace\celery\celery.log
export DDS_CELERY_WORKER_POOL=solo
export DDS_DATA_DIR=C:\Users\user.deepdataspace\datasets
export DDS_VERBOSE_LOG=True
trying to start redis with command: C:\Users\user.deepdataspace\redis\bin\redis-server.exe redis.conf --dir C:\Users\user.deepdataspace\redis --logfile C:\Users\user.deepdataspace\redis\redis.log --pidfile C:\Users\user.deepdataspace\redis\redis.pid --port 9900
redis is already started, killing it now...
failed to start redis
export DDS_REDIS_PORT=9900
django is started
Started DDS[11552] at http://127.0.0.1:8765.
The DDS tool is importing datasets inside dir in the background: C:\Users\user.deepdataspace\datasets.
Explore other useful commands by: ddsop --help.
You can quit the DDS tool with Ctrl+C.

redis is started
export DDS_REDIS_PORT=9900
INFO:dds.utils.os:port 9800 is in use
trying to start mongodb with command: C:\Users\user.deepdataspace\mongodb\bin\mongod.exe -f C:\Users\user.deepdataspace\mongodb\mongo.conf.yaml --dbpath C:\Users\user.deepdataspace\mongodb\db --logpath C:\Users\user.deepdataspace\mongodb\mongo.log --pidfilepath C:\Users\user.deepdataspace\mongodb\mongo.pid --auth --port 9801
mongodb is already started, killing it now...
{"t":{"$date":"2024-11-01T06:21:05.170Z"},"s":"I", "c":"CONTROL", "id":20697, "ctx":"-","msg":"Renamed existing log file","attr":{"oldLogPath":"C:\Users\user\.deepdataspace\mongodb\mongo.log","newLogPath":"C:\Users\user\.deepdataspace\mongodb\mongo.log.2024-11-01T06-21-05"}}
mongodb is started
export DDS_MONGODB_PORT=9801
trying to start celery with command: F:\zf\demo\deepdataspace\output\dist\main.exe -m celery -A deepdataspace.task:app worker -l info -c 1 --logfile=C:\Users\user.deepdataspace\celery\celery.log
export DDS_PLATFORM=winDDS).
export DDS_HOME_DIR=C:\Users\user
export DDS_SHARED_LIB_DIR=C:\Users\user.deepdataspace\lib
export DDS_SHARED_SSL_LIB=C:\Users\user.deepdataspace\lib\libssl.so.1.1
export DDS_SHARED_CRYPTO_LIB=C:\Users\user.deepdataspace\lib\libcrypto.so.1.1
export DDS_SHARED_CURL_LIB=C:\Users\user.deepdataspace\lib\libcurl.so.4
export DDS_CUR_DIR=C:\Users\user\AppData\Local\Temp_MEI155762\deepdataspace\services
export DDS_DB_ENGIN=sqlite3
export DDS_DB_HOST=127.0.0.1
export DDS_DB_PORT=3306
export DDS_DB_NAME=deepdataspace
export DDS_DB_USER=dds
export DDS_DB_PASS=dds
export DDS_REDIS_HOST=127.0.0.1
export DDS_REDIS_PORT=9900
export DDS_REDIS_PASS=O4LIAE68H2
export DDS_REDIS_DBNAME=0
export DDS_REDIS_SELF_HOSTED=True
export DDS_REDIS_DIR=C:\Users\user.deepdataspace\redis
export DDS_REDIS_BIN=C:\Users\user.deepdataspace\redis\bin\redis-server.exe
export DDS_REDIS_CONF=C:\Users\user.deepdataspace\redis\redis.conf
export DDS_REDIS_LOG=C:\Users\user.deepdataspace\redis\redis.log
export DDS_REDIS_PID=C:\Users\user.deepdataspace\redis\redis.pid
export DDS_MONGODB_HOST=127.0.0.1
export DDS_MONGODB_PORT=9800
export DDS_MONGODB_USER=user
export DDS_MONGODB_PASS=7YB4NN31LD
export DDS_MONGODB_DBNAME=dds
export DDS_MONGODB_SELF_HOSTED=True
export DDS_MONGODB_DIR=C:\Users\user.deepdataspace\mongodb
export DDS_MONGODB_BIN=C:\Users\user.deepdataspace\mongodb\bin\mongod.exe
export DDS_MONGODB_CONF=C:\Users\user.deepdataspace\mongodb\mongo.conf.yaml
export DDS_MONGODB_LOG=C:\Users\user.deepdataspace\mongodb\mongo.log
export DDS_MONGODB_PID=C:\Users\user.deepdataspace\mongodb\mongo.pid
export DDS_MONGODB_DBDIR=C:\Users\user.deepdataspace\mongodb\db
export DDS_DJANGO_HOST=127.0.0.1
export DDS_DJANGO_PORT=8765
export DDS_DJANGO_DIR=C:\Users\user.deepdataspace\django
export DDS_DJANGO_LOG=C:\Users\user.deepdataspace\django\django.log
export DDS_DJANGO_KEY=ILTW5ISN411SMKGS0WXFN2U23H3YCNPZ
export DDS_DJANGO_KEY_FILE=C:\Users\user.deepdataspace\django\secret.txt
export DJANGO_SETTINGS_MODULE=deepdataspace.server.settings
export DDS_CELERY_DIR=C:\Users\user.deepdataspace\celery
export DDS_CELERY_LOG=C:\Users\user.deepdataspace\celery\celery.log
export DDS_CELERY_WORKER_POOL=solo
export DDS_DATA_DIR=C:\Users\user.deepdataspace\datasets
export DDS_VERBOSE_LOG=True
trying to start redis with command: C:\Users\user.deepdataspace\redis\bin\redis-server.exe redis.conf --dir C:\Users\user.deepdataspace\redis --logfile C:\Users\user.deepdataspace\redis\redis.log --pidfile C:\Users\user.deepdataspace\redis\redis.pid --port 9900
redis is already started, killing it now...
celery is started
trying to start django with command: F:\zf\demo\deepdataspace\output\dist\main.exe .\django-admin.EXE runserver 127.0.0.1:8765 --no-color --pythonpath . --settings deepdataspace.server.settings --noreload
django is already started, killing it now...
redis is started
export DDS_REDIS_PORT=9900
trying to start mongodb with command: C:\Users\user.deepdataspace\mongodb\bin\mongod.exe -f C:\Users\user.deepdataspace\mongodb\mongo.conf.yaml --dbpath C:\Users\user.deepdataspace\mongodb\db --logpath C:\Users\user.deepdataspace\mongodb\mongo.log --pidfilepath C:\Users\user.deepdataspace\mongodb\mongo.pid --auth --port 9800
mongodb is already started, killing it now...
{"t":{"$date":"2024-11-01T06:21:12.274Z"},"s":"I", "c":"CONTROL", "id":20697, "ctx":"-","msg":"Renamed existing log file","attr":{"oldLogPath":"C:\Users\user\.deepdataspace\mongodb\mongo.log","newLogPath":"C:\Users\user\.deepdataspace\mongodb\mongo.log.2024-11-01T06-21-12"}}
mongodb is started
export DDS_MONGODB_PORT=9800
trying to start celery with command: F:\zf\demo\deepdataspace\output\dist\main.exe -m celery -A deepdataspace.task:app worker -l info -c 1 --logfile=C:\Users\user.deepdataspace\celery\celery.log
celery is already started, killing it now...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant