Cannot access account feed - Please provide credentials for: https://ci.appveyor.com/nuget/open-systems-pharmacology-ci

michael's Avatar

michael

13 Mar, 2017 03:52 PM

Hi there,

After a few months of trying out appveyor configurations and settings with private repo, we are starting today to open source everything and started with a brand new account on appveyor. We are facing an unexpected issue with the nuget feed (something that has work without any issues in the past so I am a bit baffled as to what needs to be done)

https://ci.appveyor.com/project/open-systems-pharmacology-ci/ospsuite-bddhelper has build successfully and a package should have been published to the appveyor nuget feed.

https://ci.appveyor.com/project/open-systems-pharmacology-ci/ospsuite-utility is referencing that package. However we get the following error in the console

Please provide credentials for: https://ci.appveyor.com/nuget/open-systems-pharmacology-ci

and
  https://ci.appveyor.com/nuget/open-systems-pharmacology-ci: Unable to load the service index for source https://ci.appveyor.com/nuget/open-systems-pharmacology-ci.
  The HTTP request to 'GET https://ci.appveyor.com/nuget/open-systems-pharmacology-ci' has timed out after 100000ms.

the flag account_feed is set to true in the appveyor.yml file
nuget:
  account_feed: true

Could you help me understand what went wrong ?

Thanks,
Michael

  1. Support Staff 1 Posted by Feodor Fitsner on 13 Mar, 2017 04:35 PM

    Feodor Fitsner's Avatar

    Hi Michael,

    This is because account NuGet feed is not automatically getting registered in public builds anymore. Please see the explanation of the change here: http://help.appveyor.com/discussions/problems/6024-build-stalled-pr...

  2. 2 Posted by michael on 13 Mar, 2017 04:56 PM

    michael's Avatar

    Hi Feodor,

    I understand the reason for this change but still I am not sure how to fix
    this much needed accound_feed behavior?

    Do I need to add sthg like

    nuget sources add -name appveyor -source
    https://ci.appveyor.com/nuget/open-systems-pharmacology-ci

    in a before_build step?

    We do not want to have to push to nuget.org during development.

    Thanks

    Michael

  3. 3 Posted by michael on 13 Mar, 2017 04:58 PM

    michael's Avatar

    or do you mean that we need to list every single project feed? Some
    projects that we are about to roll out depend on over 10 other components.
    This is going to be a massive pain

  4. Support Staff 4 Posted by Feodor Fitsner on 13 Mar, 2017 05:18 PM

    Feodor Fitsner's Avatar

    account_feed: true adds account feed only, not project feeds. project_feed: true adds a feed of the current project.

    I believe you should manually register account feed only.

  5. 5 Posted by michael on 13 Mar, 2017 05:31 PM

    michael's Avatar

    Hi Feodor,

    Here is what I added to my appveyor.yml file

    before_build:
    - nuget sources add -name ci -source
    https://ci.appveyor.com/nuget/open-systems-pharmacology-ci

    Unfortunately this does not work and I get the following error.
    The source specified has already been added to the list of available
    package sources. Please provide a unique source.
    Command exited with code 1

    see
    https://ci.appveyor.com/project/open-systems-pharmacology-ci/ospsuite-utility/build/2.0.0.3

    I am very confused as to what needs to be done. We have only used
    account_feed so far and it worked like a charm

    I am looking forward to your reply,

    Bests,
    Michael

  6. Support Staff 6 Posted by Feodor Fitsner on 13 Mar, 2017 05:37 PM

    Feodor Fitsner's Avatar

    account_feed: true is not working anymore for public projects. There was a security concern around that and in that post I'm explaining why we decided to disable it: http://help.appveyor.com/discussions/problems/6024-build-stalled-pr...

    So, remove account_feed: true from appveyor.yml first. Then register account nuget feed with nuget sources add. That command should have credentials provided as it's private feed.

    Alternatively, if account feed contains only packages that can be exposed to a public you can host them on https://www.nuget.org or http://www.myget.org which are free for public feeds/packages.

  7. 7 Posted by michael on 13 Mar, 2017 07:02 PM

    michael's Avatar

    Hi Feodor,

    Thank you for your prompt reply.

    I still do not understand what I need to do to get the behavior that we are
    relying upon

    *>So, remove account_feed: true from appveyor.yml first. Then register
    account nuget feed with nuget sources add. That command should have
    credentials provided as it's private feed.*
    You are certainly not suggesting that I store the credentials in the
    appveyor.yml file. So how do I provide the credentials?

    Maybe my problem is that I don't understand how to use a project_feed. Is
    it possible to use the same project_feed for 2 different appveyor projects
    (2 or more)?

    *>account_feed: true is not working anymore for public projects. *
    Let say we move to a paying account with appveyor like the one I currently
    have under MichaelSevestre. Can we create a private project from a public
    repo on github? We want the code to be open source, the CI configuration
    does not have to be and we are willing to pay for an account

    *>Alternatively, if account feed contains only packages that can be exposed
    to a public you can host them on https://www.nuget.org
    <https://www.nuget.org> or http://www.myget.org <http://www.myget.org>
    which are free for public feeds/packages. *
    We do not want to expose ALL packages to nuget every time we build. Some
    iterations are required sometimes to get an implementation right and we do
    not want to public the nuget.org feed with useless packages. So this is not
    an option for us

    Thanks for your feedback,

    Bests,
    Michael

  8. 8 Posted by michael on 13 Mar, 2017 07:32 PM

    michael's Avatar

    Feodor:
    https://www.appveyor.com/blog/2014/02/21/nuget-support-in-appveyor-ci/

    is Using Env variable to store credentials what you have in mind?

    Thanks

  9. Support Staff 9 Posted by Feodor Fitsner on 13 Mar, 2017 07:37 PM

    Feodor Fitsner's Avatar

    Yes, you can store credentials in secure variables though it won't work for PR builds.

    You can have a private project for public repository if you are on a paid plan. However, we should tweak the project in the database once it's created.

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac