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

Getting error Missing required param "pipelineId" when attempting to run workflows for Bitbucket repositories #4405

Open
3 tasks done
Michael-Purtill opened this issue Nov 18, 2024 · 6 comments
Labels
bug Something isn't working

Comments

@Michael-Purtill
Copy link

Component

server, agent, web-ui

Describe the bug

I'm using docker swarm with the latest tag for the woodpecker-server image, and the latest-alpine tag for the woodpecker-agent image. using a .woodpecker file does seem to allow woodpecker to notice it as a workflow. The exact stack file I'm using worked roughly 2.5 weeks ago. Upon running the pipeline, nothing happens, and checking the dev console gives the message Missing required param "pipelineId" The containers for both the server and agent print no logs when this happens.

Steps to reproduce

  1. Create a Docker Swarm stack using the provided stack file.
  2. Set it up to access a bitbucket workspace
  3. add a .woodpecker folder with some manual workflows to a repo
  4. run a pipeline on that repo on whichever branch you added the .woodpecker folder
  5. check the dev console for Missing required param "pipelineId" error

Expected behavior

Successfully find workflows and execute them

System Info

{"source":"https://github.com/woodpecker-ci/woodpecker","version":"2.7.3"}

Here's the stack file:

services:
  woodpecker-server:
    image: woodpeckerci/woodpecker-server:latest
    ports:
      - 8001:8000
    volumes:
      - woodpecker-server-data:/var/lib/woodpecker/
    env_file: woodpecker.env
    networks:
      - wpkr
    deploy:
      placement:
        constraints: [node.role == manager]
      replicas: 1
      update_config:
        parallelism: 2
        delay: 10s
      restart_policy:
        condition: on-failure
  woodpecker-agent:
    image: woodpeckerci/woodpecker-agent:latest-alpine
    command: agent
    depends_on:
      - woodpecker-server
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
      - woodpecker-agent-config:/etc/woodpecker
    env_file: woodpecker.env
    networks:
      - wpkr
    deploy:
      placement:
        constraints: [node.role == manager]
      replicas: 1
      update_config:
        parallelism: 2
        delay: 10s
      restart_policy:
        condition: any
volumes:
  woodpecker-server-data:
    driver: "local"
  woodpecker-agent-config:
    driver: "local"
networks:
  wpkr:
    external: true
    attachable: true

Additional context

No response

Validations

  • Read the docs.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • Checked that the bug isn't fixed in the next version already [https://woodpecker-ci.org/faq#which-version-of-woodpecker-should-i-use]
@Michael-Purtill Michael-Purtill added the bug Something isn't working label Nov 18, 2024
@qwerty287
Copy link
Contributor

Looks like a UI issue. With "dev console", you mean the browser console? Can you get a more detailed error?

@Michael-Purtill
Copy link
Author

Looks like a UI issue. With "dev console", you mean the browser console? Can you get a more detailed error?

Yes, browser console. Unfortunately the entire content of the error is 'Error: Missing required param "pipelineId"'. It's coming from minified Javascript. It appears to be because the call to api/repos/<pipelinid>/pipelines is returning no data.

@qwerty287
Copy link
Contributor

Can you please check the network console for this api key? How does the call exactly look like and what does it return?

@Michael-Purtill
Copy link
Author

Sure.

upon clicking 'Run Pipeline' and selecting my branch, then clicking 'run pipeline' in the modal, a POST request is made to:

http://<my-ip>:8001/api/repos/1/pipelines

with the payload {"branch":"master","variables":{}}

The response data is a completely empty body. Firefox displays it as No response data for this request

@qwerty287
Copy link
Contributor

Interesting, I can reproduce this on ci.woodpecker-ci.org, but not in my local setup. Maybe @anbraten or @6543 can you check the logs? Just try to trigger a manual pipeline - that didn't work for me.

@Michael-Purtill
Copy link
Author

I'm glad you were able to reproduce this issue. My guess would be that something has changed on Bitbucket's end, because as I said the exact same stack file was working fine before. Please give me any updates if you learn anything about this issue. Thanks

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

2 participants