Skip to content

Commit

Permalink
Merge pull request #154 from BenediktMKuehne/146-websocket-connection…
Browse files Browse the repository at this point in the history
…-to-wsmy_ip8001wsprogress-failed

146 websocket connection to wsmy ip8001wsprogress failed
  • Loading branch information
m-1-k-3 authored Sep 13, 2023
2 parents 7727d93 + 1b1dae5 commit 2016358
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
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

0 comments on commit 2016358

Please sign in to comment.