Closed chaithubk closed 4 years ago
To just make sure it's not due to old docker version & Warrior branch. I have tried the same on the Dunfell branch. Atleast, I see that there are no errors but the build was stuck in the do_spdx stage for a quite long time (bitbake configuration below)
Build Configuration:
BB_VERSION = "1.46.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "universal"
TARGET_SYS = "arm-poky-linux-gnueabi"
MACHINE = "qemuarm"
DISTRO = "poky"
DISTRO_VERSION = "3.1"
TUNE_FEATURES = "arm armv7ve vfp thumb neon callconvention-hard"
TARGET_FPU = "hard"
meta
meta-poky
meta-yocto-bsp = "dunfell:a44b8d2856a937ca3991cbf566788b0cd541d777"
meta-oe
meta-python = "dunfell:e413c1ef621688e69bb7830bb3151ed23b30b73e"
meta-spdxscanner = "master:c731a5f1cc83d9d8a1e120207746c89059d5576f"
Initialising tasks: 100% |###################################################################################################################################################################| Time: 0:00:10
Sstate summary: Wanted 1526 Found 12 Missed 1514 Current 1065 (0% match, 41% complete)
NOTE: Executing Tasks
WARNING: linux-libc-headers-5.4-r0 do_spdx: Creating /home/yocto/output/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/linux-libc-headers/5.4-r0/spdx_sstate_dir/arm-poky-linux-gnueabi/linux-libc-headers-5.4-r0/linux-libc-headers-5.4-r0-patched.tar.gz
Currently 1 running tasks (444 of 6684) 6% |########## |
0: linux-libc-headers-5.4-r0 do_spdx - 37m28s (pid 10172)
And I see the below errors in the fossology server running locally via docker run.
[Sat Jun 06 10:30:43.160030 2020] [:error] [pid 237] [client 172.17.0.1:48222] PHP Fatal error: Uncaught InvalidArgumentException: Cannot redirect to an empty URL. in /usr/local/share/fossology/vendor/symfony/http-foundation/RedirectResponse.php:86\nStack trace:\n#0 /usr/local/share/fossology/vendor/symfony/http-foundation/RedirectResponse.php(39): Symfony\\Component\\HttpFoundation\\RedirectResponse->setTargetUrl('')\n#1 /usr/local/share/fossology/www/ui/core-auth.php(219): Symfony\\Component\\HttpFoundation\\RedirectResponse->__construct('')\n#2 /usr/local/share/fossology/lib/php/Plugin/FO_Plugin.php(381): core_auth->Output()\n#3 /usr/local/share/fossology/lib/php/Plugin/FO_Plugin.php(465): FO_Plugin->getResponse()\n#4 /usr/local/share/fossology/www/ui/index.php(64): FO_Plugin->execute()\n#5 {main}\n thrown in /usr/local/share/fossology/vendor/symfony/http-foundation/RedirectResponse.php on line 86
172.17.0.1 - - [06/Jun/2020:10:30:43 +0000] "POST /repo/?mod=auth HTTP/1.1" 500 2588 "-" "python-requests/2.20.0"
172.17.0.1 - - [06/Jun/2020:10:30:43 +0000] "GET /repo/ HTTP/1.1" 200 4820 "-" "python-requests/2.20.0"
172.17.0.1 - - [06/Jun/2020:10:30:43 +0000] "GET /repo/?mod=upload_file HTTP/1.1" 200 6483 "-" "python-requests/2.20.0"
[2020-06-06 10:30:44] Fossology\Lib\Util\DataTablesUtility.WARNING: did not find iSortingCols in inputArray [] []
172.17.0.1 - - [06/Jun/2020:10:30:43 +0000] "GET /repo/?mod=browse-processPost&folder=1&iDisplayStart=0&iDisplayLength=100 HTTP/1.1" 200 351 "-" "python-requests/2.20.0"
172.17.0.1 - - [06/Jun/2020:10:30:44 +0000] "GET /repo/?mod=upload_file HTTP/1.1" 200 6486 "-" "python-requests/2.20.0"
172.17.0.1 - - [06/Jun/2020:10:30:44 +0000] "GET /repo/?mod=upload_file HTTP/1.1" 200 6474 "-" "python-requests/2.20.0"
172.17.0.1 - - [06/Jun/2020:10:30:44 +0000] "POST /repo/?mod=upload_file HTTP/1.1" 200 6717 "http://127.0.0.1:8081/repo/?mod=upload_file" "python-requests/2.20.0"
172.17.0.1 - - [06/Jun/2020:10:30:58 +0000] "POST /repo/?mod=ajaxShowJobs&do=showjb HTTP/1.1" 200 1409 "-" "python-requests/2.20.0"
[Sat Jun 06 10:30:59.194572 2020] [:error] [pid 239] [client 172.17.0.1:48228] PHP Notice: Undefined index: sEcho in /usr/local/share/fossology/www/ui/async/AjaxShowJobs.php on line 202
172.17.0.1 - - [06/Jun/2020:10:30:58 +0000] "GET /repo/?mod=ajaxShowJobs&do=showSingleJob&jobId=2 HTTP/1.1" 200 1293 "-" "python-requests/2.20.0"
Every 10 secs I see this error below on the fossology server:
[Sat Jun 06 11:09:03.183260 2020] [:error] [pid 179] [client 172.17.0.1:50422] PHP Notice: Undefined index: sEcho in /usr/local/share/fossology/www/ui/async/AjaxShowJobs.php on line 202
172.17.0.1 - - [06/Jun/2020:11:09:03 +0000] "GET /repo/?mod=ajaxShowJobs&do=showSingleJob&jobId=4 HTTP/1.1" 200 26095 "-" "python-requests/2.20.0"
And the do_spdx build time keeps increasing.
I do have the fossdriver installed (shown below)
pip3 list
...
fossdriver (0.0.3, /home/fossdriver)
...
Am I doing the configuration correctly. ?
Closing this issue, since I have a duplicate of this same issue getting addressed here: https://github.com/fossology/fossdriver/issues/29
I am planning to use
meta-spdxscanner
layer to generate the SPDX docs in my poky warrior distro. I have run thefossology/fossology:3.5.0
docker image and have installedfossdriver
. I am noticing this error withdo_spdx()
@dl9pf @leimaohui Can you please help me to solve this. ?