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

Policy service is down when particular policy is moved in dry run #2383

Closed
kirill-tolochko opened this issue Jul 6, 2023 · 0 comments
Closed
Assignees
Labels
bug Something isn't working

Comments

@kirill-tolochko
Copy link
Collaborator

kirill-tolochko commented Jul 6, 2023

Step to reproduce

  1. Import GHGP policy from IFPS 1688650803.243861451 and try to put it in dry run (it's happening in docker)
  2. Check policy service

Expected behavior

Policy is moved in dry run, everything is ok
Also the same is happening if user tried to publish policy.

Actual behavior

Policy service is down
If user starts policy service, and try to run the policy (if he clicks "go" button) he gets error "Policy does not exist" and policy service is going down again

guardian-policy-service-1 | throw errnoException(err, 'spawn');
guardian-policy-service-1 | ^
guardian-policy-service-1 |
guardian-policy-service-1 | Error: spawn E2BIG
guardian-policy-service-1 | at ChildProcess.spawn (node:internal/child_process:420:11)
guardian-policy-service-1 | at spawn (node:child_process:733:9)
guardian-policy-service-1 | at fork (node:child_process:169:10)
guardian-policy-service-1 | at PolicyContainer.runPolicyProcess (/usr/local/policy-service/dist/helpers/policy-container.js:207:49)
guardian-policy-service-1 | at Map.forEach ()
guardian-policy-service-1 | at Timeout._onTimeout (/usr/local/policy-service/dist/helpers/policy-container.js:94:32)
guardian-policy-service-1 | at listOnTimeout (node:internal/timers:559:17)
guardian-policy-service-1 | at processTimers (node:internal/timers:502:7) {
guardian-policy-service-1 | errno: -7,
guardian-policy-service-1 | code: 'E2BIG',
guardian-policy-service-1 | syscall: 'spawn'
guardian-policy-service-1 | }
guardian-policy-service-1 | error Command failed with exit code 1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants