cabal: Failed to download, ErrorMisc "Error HTTP code: 407" - windows

Windows 7 x64 SP1 Russian, Virtual machine (VMware) are located on server.
I installed the Haskell from official site yesterday. But I have a problem when I start the command: cabal update. Error message:
C:\Users\admin>cabal update Downloading the latest package list from
hackage.haskell.org cabal: Failed to download
http://hackage.haskell.org/packages/archive/00-index.tar.gz :
ErrorMisc "Error HTTP code: 407"
Internet access is exists. The command ran under admin profile. How can I to correct this issue?
P.S. When I did the same on my home notebook - all worked fine, without this message.

Http status code 407 means "Proxy authentication required". So it seems to be local issue with proxy configuration.
See also: cabal can't use http proxy
Add: cabal uses fetchProxy from HTTP package, it should read IE proxy config.
I don't use windows, so I have no idea what can be wrong. You can try to call fetchProxy manually and see what it returns. If it returns correct value, then open issue on cabal tracker. Otherwise, open issue in HTTP package tracker.

Related

Pytorch install fails on conda with error as -CondaHTTPError: HTTP 403 FORBIDDEN for url <https..........>

I have installed anaconda 2019 version from repository as the latest version was throwing error on windows 10.
After installing anaconda(conda 4.10.1), i am unable to install Pytorch using command 'conda install pytorch-cpu -c pytorch' on anaconda prompt. It throws below error. I believe it is trying to look for file 'win-64/pytorch-cpu-1.1.0-py3.7_cpu_1.tar.bz2' and strangely when i check on https://anaconda.org/pytorch/pytorch/files i can't locate this file. Please help.
Error message :-
CondaHTTPError: HTTP 403 FORBIDDEN for url https://conda.anaconda.org/pytorch/win-64/pytorch-cpu-1.1.0-py3.7_cpu_1.tar.bz2
Elapsed: 01:00.706682
An HTTP error occurred when trying to retrieve this URL.
HTTP errors are often intermittent, and a simple retry will get you on your way.
I experienced the same issue, but it turned out the error message was misleading. In my case extending the remote connection timeout parameter in the condarc file fixed the issue

NSIS: Access https site in ExecDos

I'm trying to create an installer for a python based scientific application. We use Anaconda as a python distribution and I found https://github.com/faph/NSIS-Conda-Macros to help me setup an installer for conda packages.
However, downloading the miniconda installer failed. I was able to solve that with the help of:
Download of file during NSIS installer run freezes at "connecting"
But I found no way to make the updating of packages work. They use:
ExecDos::exec /DETAILED '"$CONDA" update -y -q conda' "" ""
conda then tries to connect over https to get the most recent packages from their server. The connection always times out. When i run the same code directly in cmd it runs fine.
So my question:
Is it even possible to access https in ExecDos::exec? Does anyone have an idea to work-around the issue?

Need download link for gitlab package for Redhat CentOS 7

The server on which i wish to install gitlab is unable to download the gitlab package as shown below.
# curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh
curl: (6) Could not resolve host: packages.gitlab.com; Unknown error
Can you please help with some solution and especially an alternate link where i can download the package from web browser.
I will then upload the installer to my server and then install it in offline mode.
The GitLab Documentation has instructions on manual install, which includes a where to download.
For the Community edition, you can find the list of packages here: https://packages.gitlab.com/gitlab/gitlab-ce

Open suse adding repository

Hi I'm trying to add repository to install Termintor on my linux machine (SUSE Linux Enterprise Server 12 SP3). However after running this command
sudo zypper -v addrepo https://download.opensuse.org/repositories/openSUSE:Factory/standard/openSUSE:Factory.repo
I get 503 error.
Download (curl) error for 'https://download.opensuse.org/repositories/openSUSE:Factory/standard/openSUSE:Factory.repo':
Error code: HTTP response: 0
Error message: The requested URL returned error: 503
Apparently the source is not available. Is there a way to find the current repo for installing Terminator via zypper?
The correct repository for SLE12 is:
sudo zypper addrepo https://download.opensuse.org/repositories/X11:/terminals/SLE_12/X11:terminals.repo
You can find all the available SUSE builds for 'Terminator' here: https://software.opensuse.org/package/terminator

Installing Open Project 7 (Apache error: Service Unavailable)

Here is the original question: https://community.openproject.com/topics/7851
I'm trying to install Open Project 7 in a brand new Ubuntu instance at Digital Ocean.
I've follow the instructions at https://www.openproject.org/download-and-installation/, but it's not working.
After the complete of installation and the run of the openproject configure command, i have selected options to install both MySQL and Apache server. When it's all done, i'm unable to connect to my server.
My enviroment:
Ubuntu 16.04
http://159.203.191.172
At logs, i can see two strange messages.
First:
bundler: failed to load command: unicorn (/opt/openproject/vendor/bundle/ruby/2.4.0/bin/unicorn)
Second is a warning:
WARN -- : You are setting a key that conflicts with a built-in method OmniAuth::AuthHash::InfoHash#name defined at /opt/openproject/vendor/bundle/ruby/2.4.0/bundler/gems/omniauth-8385bc0da47e/lib/omniauth/auth_hash.rb:34. This can cause unexpected behavior when accessing the key via as a property. You can still access the key via the #[] method.
W, [2017-06-13T01:01:17.860764 #25822]
I don't know if the warning is related to problem, but i think that the unicorn problem is.
Answering my own question here:
I suspected that the package had some problems so i decided to install it using manual installation. The newest documentation i found was an old Ubuntu 14 step-to-step tutorial, adapted from older versions of Open Project. I decided to follow it and after a lot of adaptations i got able to finish the installation process.
This is the tutorial: https://github.com/opf/openproject-ce/blob/stable/7/docs/installation/manual/README.md
Now I'm writing another step-to-step tutorial based on it, modifying all required steps to perform a clean installation on Ubuntu 16.

Resources