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

Cannot update MiKTeX: code 56 #628

Closed
becodified opened this issue Sep 23, 2020 · 6 comments
Closed

Cannot update MiKTeX: code 56 #628

becodified opened this issue Sep 23, 2020 · 6 comments

Comments

@becodified
Copy link

Hi,

I have downloaded and installed the latest release 7/3/2020 and cannot check for updates neither using remote package repository in the miktex console nor local package respository via commandline utility miktexsetup. Always getting error code="56", url="https://api2.miktex.org/hello".

Can someone help me out?

My setup:

Thank you,
Bea

@edocevoli
Copy link
Member

edocevoli commented Sep 23, 2020

Please give us some more context. It would be nice if you collect the log files.
Have you read the contribution guidelines? It says:

Most importantly: include information about your MiKTeX setup:

  • installation report: let MiKTeX Console create an installation report (on the Diagnose page)
  • contents of the MiKTeX log directory: MiKTeX Console tells you the location of log directory on the Diagnose page

@becodified
Copy link
Author

becodified commented Sep 23, 2020

Ok, thank you!

Please find the files attached and more context below:

1st approach via remote repository:

  • downloaded MiKTeX Windows installer 7/3/2020 from https://miktex.org/download
  • executed installer in admin mode
  • opened MiKTeX console and switsched to administrator mode
  • run "check for updates" via Overview section
  • got error code="6", url="https://api2.miktex.org/hello"
  • added company proxy (always the proxies which are getting ones into trouble) via Updates section > Change > Connection Settings
  • run "Check for updates" via Updates section
  • got error code="56", url="https://api2.miktex.org/hello"

2nd approch via local repository:

  • created folder C:\Users\bea\Documents\repos\miktex
  • opened command line in admin mode
  • run command miktexsetup --verbose --local-package-repository=C:\Users\bea\Documents\repos\miktex --package-set=complete download
  • got error
    this is MiKTeX Setup Service 4.0 (MiKTeX 20.6.29) miktexsetup: Failure when receiving data from the peer miktexsetup: Data: code="56", url="https://api2.miktex.org/hello"

Other observations:

  • installed MiKTeX on computer which is not behind a corporate proxy: installation and update is working like a charm
  • called GET on https://api2.miktex.org/hello with browser, got HTTP status code 400 (no matter if am on a pc with or without the company proxy)

Unfortunately I am forced to use MiKTeX behind the company proxy :(
What might cause the code 56?

miktex-report.txt
log.zip

@edocevoli
Copy link
Member

Thank you. What are your proxy settings? Is authentication required?

@no-response
Copy link

no-response bot commented Sep 25, 2020

This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have enough information to take action. Please reach out if you have or find the answers we need so that we can investigate further.

@no-response no-response bot closed this as completed Sep 25, 2020
@aaron-michaux
Copy link

Have the same problem. Cannot figure out how to set the corporate proxy for MikTex.

@layalachu
Copy link

Thank you. What are your proxy settings? Is authentication required?

yes.I have the same problem .please help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants