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

Could not create or update the launch configuration .vscode/launch.json #83

Open
vietlq414 opened this issue May 16, 2023 · 0 comments
Open

Comments

@vietlq414
Copy link

I've tried to follow the guide and follow the demo in .conf22 DEV1385C but got the issue while debug in container instance

Traceback (most recent call last):
  File "/opt/splunk/etc/apps/SA-VSCode/bin/splunk_debug.py", line 46, in enable_debugging
    _debug_config.create_or_update_launch_json(filepath, port)
  File "/opt/splunk/etc/apps/SA-VSCode/bin/_debug_config.py", line 35, in create_or_update_launch_json
    _create_vscode_launch_config(vscode_launch_file, port)
  File "/opt/splunk/etc/apps/SA-VSCode/bin/_debug_config.py", line 123, in _create_vscode_launch_config
    _write_vscode_launch_config(vscode_launch_file, main)
  File "/opt/splunk/etc/apps/SA-VSCode/bin/_debug_config.py", line 149, in _write_vscode_launch_config
    os.chmod(vscode_launch_file, 0o644)
PermissionError: [Errno 1] Operation not permitted: '/opt/splunk/etc/apps/TA-custom-alerting/.vscode/launch.json'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "/opt/splunk/etc/apps/TA-custom-alerting/bin/telegram.py", line 21, in <module>
    dbg.enable_debugging(timeout=25)
  File "/opt/splunk/etc/apps/SA-VSCode/bin/splunk_debug.py", line 48, in enable_debugging
    raise Exception("Could not create or update the launch configuration: {}".format(e))
Exception: Could not create or update the launch configuration: [Errno 1] Operation not permitted: '/opt/splunk/etc/apps/TA-custom-alerting/.vscode/launch.json'

Current folder permission

total 120K
drwx------  7 splunk splunk 4.0K May 16 10:01 SA-VSCode
drwxr-xr-x  4 splunk splunk 4.0K Jan 20 22:40 SplunkForwarder
drwxr-xr-x  4 splunk splunk 4.0K Jan 20 22:40 SplunkLightForwarder
drwxrwxrwx  1 root   root   4.0K May 16 10:12 TA-custom-alerting
[ansible@splunk TA-custom-alerting]$ ls -lah
total 12K
drwxrwxrwx  1 root   root   4.0K May 16 10:12 .
drwxr-xr-x 31 splunk splunk 4.0K May 16 10:01 ..
drwxrwxrwx  1 root   root   4.0K May 16 10:12 .vscode
-rwxrwxrwx  1 root   root      0 May 16 09:59 LICENSE.txt
-rwxrwxrwx  1 root   root   3.9K May 16 09:59 README.md
-rwxrwxrwx  1 root   root     11 May 16 09:59 VERSION
drwxrwxrwx  1 root   root   4.0K May 16 09:59 ansible-tower-demo
-rwxrwxrwx  1 root   root   1.5K May 16 09:59 app.manifest
drwxrwxrwx  1 root   root   4.0K May 16 09:59 appserver
drwxrwxrwx  1 root   root   4.0K May 16 09:59 bin
drwxrwxrwx  1 root   root   4.0K May 16 09:59 default
drwxrwxrwx  1 root   root   4.0K May 16 10:12 lib
drwxrwxrwx  1 root   root   4.0K May 16 09:59 lookups
drwxrwxrwx  1 root   root   4.0K May 16 09:59 metadata
drwxrwxrwx  1 root   root   4.0K May 16 09:59 static

I've tried to uninstall/install with no success. Kindly advise.

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