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

146 websocket connection to wsmy ip8001wsprogress failed #154

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion embark/uploader/boundedexecutor.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def run_emba_cmd(cls, cmd, analysis_id=None, active_analyzer_dir=None):
# The os.setsid() is passed in the argument preexec_fn so it's run after the fork() and before exec() to run the shell.
# attached but synchronous
with open(f"{settings.EMBA_LOG_ROOT}/{analysis_id}/emba_run.log", "w+", encoding="utf-8") as file:
proc = Popen(cmd, stdin=PIPE, stdout=file, stderr=file, shell=True) # nosec
proc = Popen(cmd, stdin=PIPE, stdout=file, stderr=file, shell=True, start_new_session=True) # nosec
# Add proc to FirmwareAnalysis-Object
analysis.pid = proc.pid
analysis.save(update_fields=["pid"])
Expand Down
1 change: 0 additions & 1 deletion run-server.sh
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,6 @@ pipenv run ./manage.py runmodwsgi --user www-embark --group sudo \
--processes 4 --threads 4 \
--graceful-timeout 5 \
--log-level debug \
--debug-mode \
--server-name embark.local "${WSGI_FLAGS[@]}" &
# --ssl-certificate /var/www/conf/cert/embark.local --ssl-certificate-key-file /var/www/conf/cert/embark.local.key \
# --https-port "$HTTPS_PORT" &
Expand Down
Loading