Re: Can't upload file from URL by fossology docker

Gaurav Mishra
 

Hello Lei,

Frankly I have never used FOSSology behind proxy for "Upload from URL". But there is a proxy setting which you may use. For that, you need to edit the file "/usr/local/etc/fossology/fossology.conf" inside the docker container and set the respective "http_proxy" parameters.

Just restart the scheduler once after changing the file and wget_agent should pick the proxy settings from there.

Please let us know if the solution worked for you.

Thanks and regards,
Gaurav Mishra


From: fossology@... <fossology@...> on behalf of leimaohui <leimaohui@...>
Sent: 30 April 2019 07:41
To: fossology@...
Subject: [FOSSology] Can't upload file from URL by fossology docker
 
Hi,

I pulled a docker of fossology server. There is no problem if I upload file from localhost. But failed to upload from URL. The error log is as following:
---------------------------------------
2019-04-29 08:13:43 wget_agent [0] :: JOB[239].wget_agent[260.localhost]: "FATAL wget_agent.c.383: upload 36 Download failed; Return code 4 from:   /usr/bin/wget -q --no-check-certificate --progress=dot -rc -np -e robots=off -P '/srv/fossology/repository/5918713fc379/wget/wget.260.dir' 'https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.samba.org%2Fftp%2Ftevent%2Ftevent-0.10.0.tar.gz&amp;data=02%7C01%7Cmishra.gaurav%40siemens.com%7C9fa77236c72b44edccbb08d6cd1294f5%7C38ae3bcd95794fd4addab42e1495d55a%7C1%7C1%7C636921877028109459&amp;sdata=%2FVX1twSbFuIIrqiiOnCn11HWYQ6dHwXpxJOgGf1vCJU%3D&amp;reserved=0' -l 0 -R index.html*   2>&1"
2019-04-29 08:13:43 wget_agent [0] :: JOB[239].wget_agent[260.localhost]: agent failed with error code 12
2019-04-29 08:13:44 wget_agent [0] :: JOB[239].wget_agent[260.localhost]: agent failed, code: 12
---------------------------------------

Proxy is necessary in my environmental, so I wonder if there is any special setting to enable for fossology docker that I don't know. The following is what I have done to solve this issue.
   * Set not use proxy for localhost and 127.0.0.1.
   * Set proxy for docker service by /etc/systemd/system/docker.service.d/http-proxy.conf.


Best regards
Lei Maohui






Join fossology@lists.fossology.org to automatically receive all group messages.