dependabot / dependabot-core

🤖 Dependabot's core logic for creating update PRs.
https://docs.github.com/en/code-security/dependabot
MIT License
4.62k stars 990 forks source link

Dependabot encountered an unknown error, Dependabot failed to update your dependencies because an unexpected error occurred. See the logs for more details. #8004

Open visuman opened 1 year ago

visuman commented 1 year ago

Is there an existing issue for this?

Package ecosystem

pip

Package manager version

No response

Language version

python 3.8

Manifest location and content before the Dependabot update

flask
jinja2
werkzeug
marshmallow
flask-sqlalchemy
sqlalchemy
alembic
marshmallow-sqlalchemy
flask-smorest

Flask-Cors
flask-talisman
sqlalchemy-utils
sqlalchemy-history==2.0.0

passlib

Flask-Babel

plotly
celery[redis]

python-dateutil
networkx<2.7; python_version=='3.7'
networkx; python_version>='3.8'

numpy
pandas
pyjnius
onnxruntime

stringcase
fs
dulwich
pyflakes
cryptography
dynaconf
dogpile.cache
cachetools
notifiers
click
requests
python-daemon

kaleido

jsonschema
zipp
webargs
typing-extensions
pyrsistent
pyparsing
protobuf
markupsafe
mako
kombu
itsdangerous
importlib-resources
importlib-metadata
decorator
apispec[marshmallow]
charset-normalizer==2.1.1
stevedore<4; python_version == "3.7" 
stevedore; python_version >= "3.8"
docutils

dependabot.yml content

version: 2
updates:
    - package-ecosystem: pip
      directory: '/apps/project-api'
      schedule:
          interval: weekly
          day: sunday
          time: '01:00'
          timezone: 'Asia/Kolkata'
      groups:
          api-dependencies:
              patterns:
                  - '*'
              exclude-patterns:
                  - 'pandas'
                  - 'numpy'
          data-sci-dependencies:
              patterns:
                  - 'pandas'
                  - 'numpy'

      open-pull-requests-limit: 20

Updated dependency

No response

What you expected to see, versus what you actually saw

I expected 2 PRs to be raised but pr was only raised for data-sci-dependencies

Dependabot log ends with return code = 0

There is no issue in the logs but the api-dependencies pr is not created for some reason refer below for the update log


updater | +------------------------------------------------------------------------------------------------------------------------------------+
updater | |                                                Changes to Dependabot Pull Requests                                                 |
updater | +---------+--------------------------------------------------------------------------------------------------------------------------+
updater | | created | ipython ( from  to 8.15.0 ), flask ( from 2.2.3 to 2.3.3 ), werkzeug ( from 2.2.3 to 2.3.7 ), marshmallow ( from 3.19... |
updater | | created | numpy ( from 1.24.2 to 1.25.2 ), pandas ( from 1.5.3 to 2.1.0 ) ..
updater | +---------+--------------------------------------------------------------------------------------------------------------------------+
updater | time="2023-09-11T12:14:55Z" level=info msg="task complete" container_id=job-12345678-updater exit_code=0 job_id=720365914 step=updater

But seeing this error

image image

Native package manager behavior

No response

Images of the diff or a link to the PR, issue, or logs

No response

Smallest manifest that reproduces the issue

No response

yeikel commented 1 year ago

Can you provide a link to your repository? Or at least a snippet of your manifest?

visuman commented 1 year ago

@yeikel Modified the comment to add the content of base.txt in my project

visuman commented 1 year ago

@yeikel Let me know if you have some insights related to the issue. Thanks in advance

vincentnonim commented 1 year ago

Hi,

I have a similar issue with docker ecosystem. image (Notice the green check mark)

No clear error in the logs and a message suggesting a PR will be created at the end :

updater | 2023/09/13 07:00:13 INFO Results:
updater | +-------------------------------------------------------+
updater | |          Changes to Dependabot Pull Requests          |
updater | +---------+---------------------------------------------+
updater | | created | keycloak/keycloak ( from 21.1.2 to 22.0.3 ) |
updater | +---------+---------------------------------------------+
updater | time="2023-09-13T07:00:13Z" level=info msg="task complete" container_id=job-721346619-updater exit_code=0 job_id=721346619 step=updater

But not PR created... I also found this issue https://github.com/dependabot/dependabot-core/issues/7223 which looks related.

jakecoffman commented 11 months ago

@visuman we recently improved the error message around PR creation, can you try again and see if the error is more helpful now?

cervebar commented 9 months ago

We have same issue with npm package manager, this error and no logs generated at all:

  - directory: "/"
    package-ecosystem: npm
    schedule:
      interval: "weekly"
      day: "sunday"
    groups:
      minor-patch-deps:
        patterns:
          - "*"
        update-types:
          - "minor"
          - "patch"
    ignore:
      - dependency-name: "react-native"
        update-types:
          - "version-update:semver-minor"
Screenshot 2023-11-28 at 18 28 50
Lemon73-Computing commented 4 months ago

I have same issue with nuget package manager.

My repository: https://github.com/AliceNovel/AliceNovel

dependabot.yml

version: 2
updates:
  - package-ecosystem: "nuget" # See documentation for possible values
    directory: "/" # Location of package manifests
    schedule:
      interval: "weekly"

error code (part)

updater | Dependabot encountered '2' error(s) during execution, please check the logs for more details.
updater | +----------------------------------------------------+
updater | |           Dependencies failed to update            |
updater | +------------------------------------+---------------+
updater | | CommunityToolkit.Maui.MediaElement | unknown_error |
updater | | CommunityToolkit.Maui              | unknown_error |
updater | +------------------------------------+---------------+
updater | time="2024-04-24T11:38:44Z" level=info msg="task complete" container_id=job-819224915-updater exit_code=0 job_id=819224915 step=updater
Lemon73-Computing commented 4 months ago

In my case, it was fixed after nuget update.

<ItemGroup>
-   <PackageReference Include="Microsoft.Maui.Controls" Version="$(MauiVersion)" />
+   <PackageReference Include="Microsoft.Maui.Controls" Version="8.0.21" />
-   <PackageReference Include="Microsoft.Maui.Controls.Compatibility" Version="$(MauiVersion)" />
+   <PackageReference Include="Microsoft.Maui.Controls.Compatibility" Version="8.0.21" />
-   <PackageReference Include="CommunityToolkit.Maui" Version="7.0.1" />
+   <PackageReference Include="CommunityToolkit.Maui" Version="9.0.0" />
-   <PackageReference Include="CommunityToolkit.Maui.MediaElement" Version="3.0.1" />
+   <PackageReference Include="CommunityToolkit.Maui.MediaElement" Version="3.1.1" />
    <PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="8.0.0" />
</ItemGroup>