question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Insecure world writable dir ... in PATH, mode 040777

See original GitHub issue

Software versions

Mac OSX 10.15.7 “@pact-foundation/pact”: “^9.16.4”, “@pact-foundation/pact-node”: “^10.13.9”, Node v12.22.0

Expected behaviour

No errors.

Actual behaviour

Errors.

Steps to reproduce

The error appears in the following code block, we use jest as the base test framework.

    beforeAll(async function before() {
      console.info('beforeAll');
      // Start mock server
      await provider.setup();
      // Add interactions to the Mock Server, as many as required
      await provider.addInteraction({
        // The 'state' field specifies a "Provider State"
        state: '1 free database',
        uponReceiving: 'request for usage from the provider',
        willRespondWith: {
          // From the provider
          body: USAGE_EXPECTED_BODY,
          headers: { 'Content-Type': 'application/json' },
          status: 200,
        },
        withRequest: {
          // From I the consumer
          headers: {
            Accept: 'application/json',
            Authorization: `Bearer ${JWT}`,
          },
          method: 'GET',
          path: '/usage',
        },
      });
    });

    it('should receive response with usage object', async function test() {
      console.info('Test');

Relevant log files

  console.info
    beforeAll

      at test/contract/consumer-test.js:50:15

[2021-10-15 09:25:07.004 +0000] ERROR (53878 on Karls-MacBook-Pro.local): pact-node@10.13.9: Pact Binary Error: /Users/karl/Development/app/components/console-frontend/webapp/node_modules/@pact-foundation/pact-node/standalone/darwin-1.88.77/pact/lib/ruby/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/shared_helpers.rb:78: warning: Insecure world writable dir /Users/karl/Development/app/components/console-frontend/webapp in PATH, mode 040777

[2021-10-15 09:25:12.758 +0000] INFO (53878 on Karls-MacBook-Pro.local): pact@9.16.4: Setting up Pact with Consumer "console-frontend" and Provider "console-api"
    using mock service on Port: "8081"
  console.info
    Test

This line specifically from the error above: [2021-10-15 09:25:07.004 +0000] ERROR (53878 on Karls-MacBook-Pro.local): pact-node@10.13.9: Pact Binary Error: /Users/karl/Development/app/components/console-frontend/webapp/node_modules/@pact-foundation/pact-node/standalone/darwin-1.88.77/pact/lib/ruby/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/shared_helpers.rb:78: warning: Insecure world writable dir /Users/karl/Development/app/components/console-frontend/webapp in PATH, mode 040777

We don’t know where it’s from or why it appears?

Also some more logs related to publishing:

[2021-10-15 09:33:55.232 +0000] INFO (54708 on Karls-MacBook-Pro.local): pact-node@10.13.9: Publishing Pacts to Broker
[2021-10-15 09:33:55.233 +0000] INFO (54708 on Karls-MacBook-Pro.local): pact-node@10.13.9: Publishing pacts to broker at: https://neo4j.pactflow.io/
[2021-10-15 09:33:55.246 +0000] INFO (54708 on Karls-MacBook-Pro.local): pact@9.16.4: Pact File Written
[2021-10-15 09:33:55.246 +0000] INFO (54708 on Karls-MacBook-Pro.local): pact-node@10.13.9: Removing Pact process with PID: 55770
[2021-10-15 09:33:55.248 +0000] INFO (54708 on Karls-MacBook-Pro.local): pact-node@10.13.9: Deleting Pact Server with options: 
{"consumer":"console-frontend","cors":false,"dir":"/Users/karl/Development/app/components/console-frontend/webapp/pacts","host":"127.0.0.1","log":"/Users/karl/Development/app/components/console-frontend/webapp/logs/pact.log","pactFileWriteMode":"overwrite","port":8081,"provider":"console-api","spec":2,"ssl":false,"timeout":30000}
[2021-10-15 09:33:59.402 +0000] ERROR (54708 on Karls-MacBook-Pro.local): pact-node@10.13.9: Could not publish pact:
/Users/karl/Development/app/components/console-frontend/webapp/node_modules/@pact-foundation/pact-node/standalone/darwin-1.88.77/pact/lib/ruby/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/shared_helpers.rb:78: warning: Insecure world writable dir /Users/karl/Development/neo4j/app/components/console-frontend/webapp in PATH, mode 040777

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
basickarlcommented, Oct 15, 2021

@mefellows Ah I see! However I am getting this on my local dev laptop also so you know^^.

0reactions
basickarlcommented, Oct 18, 2021

@TimothyJones You are indeed correct regarding that it still works, it just happens to throw an error. We want to run this in or CI so for now we have put a try catch around the area however this ain’t good if it throws another type of error.

Ok I’ll have a look at the new version^^

Read more comments on GitHub >

github_iconTop Results From Across the Web

warning: Insecure world writable dir /usr/local/bin in PATH ...
warning: Insecure world writable dir /home/my_home_folder in PATH, mode 040777. So in my case it was the home folder. I did undid the...
Read more >
Insecure world writable dir ... in PATH, mode 040777 #267
Describe the bug Basic Ruby rake command that use direct path to Ruby's bin print a permission warning. script.rb:4: warning: Insecure world ......
Read more >
Insecure world writable dir /usr/local/bin in PATH, mode 040777
Vagrant warning : Insecure world writable dir /usr/local/bin in PATH, mode 040777. Hits: 1022.
Read more >
Error "Insecure world writable dir /Volumes/BOOTCAMP in ...
Try running this command: sudo chmod 775 /Volumes/BOOTCAMP. As well as the one you did previously: sudo chmod go-w /Volumes/BOOTCAMP.
Read more >
Insecure world writable dir … in PATH, mode 040777
warning: Insecure world writable dir MY_DIRECTORY/PATH in PATH, mode 040777. To stop this warning message, execute
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found