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

No report generation after standard analysis #131

Open
0x42424242 opened this issue Mar 5, 2020 · 3 comments
Open

No report generation after standard analysis #131

0x42424242 opened this issue Mar 5, 2020 · 3 comments

Comments

@0x42424242
Copy link

First time using Exakat, so I apologize if I'm missing something basic.

System: Ubuntu 18.04.04 LTS (x64).

Ran the standard installation process to obtain Exakat. I have also verified no report folder is located within Exakat/Projects/[Project Name]/. I am happy to provide any more detail you require, I'm not sure what else would be useful at this stage.

Initialization of Project and Analysis Output

➜  exakat php exakat.phar init -p lms -R lms.zip -v -zip
Initializing lms with lms.zip
Running files
Done
➜  exakat php exakat.phar project -p lms -v
Cleaning project
Cleaning project lms
removing datastore.sqlite
Removed 1 files
Recreating database
Search for external libraries
Processing files
'Updating lms/config.cache
Running project 'lms'
Running the following analysis : CompatibilityPHP53, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56, CompatibilityPHP70, CompatibilityPHP71, CompatibilityPHP72, CompatibilityPHP73, CompatibilityPHP74, Analyze, Preferences, Inventory, Performances, Appinfo, Appcontent, Dead code, Security, Suggestions, ClassReview, Custom
Producing the following reports : Ambassador
Running files
Check composer
Searching for files
Found 603 files.
Check short tag (normal pass)
Check short tag (with directive activated)
Short tag OK
Removed 0 duplicates files
Check config files
Done
Cleaning DB
Restart gremlin server
stop gremlin server 3.3.x
start gremlin server 3.4.x
started gremlin server
Restarted in 9 rounds
started [12302] in 4,501.62 ms
Parallel processing
Loading with \Exakat\Loader\SplitGraphson
Init finalize================================================================>] 99.83% 00:00:00    
loading 7159 definitions
loaded 7159 definitions
loaded nodes (duration : 2,468.78 ms)
Cleaning CSV
Waiting for child
Child finished working
Finished waiting for child : 89591.576099396 ms
Start load final
add Returned void
177 added returned to Void
fixing Definitions for traits and interfaces
0 removed interface extends link
0 removed class extends link
0 removed class implements link
0 removed class implements link
fixing Fullnspath for Functions
0 fixed Fullnspath for Functions
Set 14 functioncall fallingback
Set 0 extension functioncall fallingback
spotFallbackConstants
Link constant definitions : skipping.
Fixed Fullnspath for Constants
79 SpotPHPNativeConstants
Created 0 isModified values
Created 28 isModified values with array append
Created 1 isModified values with unset
Created 1 isModified values with =>
Set 1611 functions, constants and class with ignored_dir
End load final
Project loaded
Running the following rulesets : First
9/9 [========================================================================>] 100.00% 00:00:00   

Attempting to output report

➜  exakat php exakat.phar report -p lms -format Amabassador -v

Error : No results database was found for project 'lms'.
Run php exakat.phar project -p lms first
 
on file phar:///home/user/Tools/exakat/exakat.phar/library/Exakat/Tasks/Report.php
on line 58

Doctor Output

➜  exakat php exakat.phar doctor
exakat : 
    executable           : exakat.phar
    version              : 2.0.5
    build                : 1017
    exakat.ini           : ./config/exakat.ini
    graphdb              : gsneo4j
    reports              : 
    rulesets             : CompatibilityPHP53,
                           CompatibilityPHP54,
                           CompatibilityPHP55,
                           CompatibilityPHP56,
                           CompatibilityPHP70,
                           CompatibilityPHP71,
                           CompatibilityPHP72,
                           CompatibilityPHP73,
                           CompatibilityPHP74,
                           Dead code,
                           Security,
                           Analyze,
                           Top10,
                           Preferences,
                           Appinfo,
                           Appcontent,
                           Suggestions
    extra rulesets       : 
    tokenslimit          : 1 000 000 000

PHP : 
    binary               : 7.2.24-0ubuntu0.18.04.3
    memory_limit         : -1
    short_open_tags      : Off
    ext/curl             : Yes
    ext/hash             : Yes
    ext/phar             : Yes
    ext/sqlite3          : Yes
    ext/tokenizer        : Yes
    ext/mbstring         : Yes
    ext/json             : Yes
    ext/xmlwriter        : No (Optional, used by XML reports)
    ext/pcntl            : Yes
    parallel_processing  : Yes
    pcre.jit             : On (Must be off on PHP 7.3 and OSX)

java : 
    installed            : Yes
    type                 : OpenJDK Runtime Environment (build 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08)
    version              : openjdk
    $JAVA_HOME           : 
    $JAVA_OPTIONS        : 

tinkergraph : 
    installed            : No (folder : tinkergraph)

gsneo4j : 
    installed            : Yes (folder : /home/user/Tools/exakat/tinkergraph)
    host                 : 127.0.0.1
    port                 : 8182
    gremlin version      : 3.4.3
    neo4j version        : 3.2.3

folders : 
    projects folder      : Yes
    projects/test        : No
    projects/default     : No
    projects/onepage     : No

php52 : 
    configured           : No

php53 : 
    configured           : No

php54 : 
    configured           : No

php55 : 
    configured           : No

php56 : 
    configured           : No

php70 : 
    configured           : No

php71 : 
    configured           : No

php72 : 
    configured           : Yes (/usr/bin/php7.2)
    actual version       : 7.2.24

php73 : 
    configured           : No

php74 : 
    configured           : No

php80 : 
    configured           : No
@activeseven
Copy link

I am having this exact problem.

@exakat
Copy link
Owner

exakat commented Oct 9, 2020

PHP 72 is not supported anymore to run exakat (OK to do the audit though).

Can you try with the current version (2.1.9), and a more recent version of PHP (7.3, 7.4, 8.0).

@okak2006
Copy link

I am in the exact same situation as OP despite using PHP7.4. Here's my exakat.phar doctor result.

`exakat :
executable : exakat.phar
version : 2.3.0
build : 1265
exakat.ini : ./config/exakat.ini
graphdb : tinkergraphv3
reports :
rulesets : CompatibilityPHP74,
CompatibilityPHP80,
CompatibilityPHP81,
Analyze,
Appinfo
extra rulesets :
ignored rules :
tokenslimit : 1 000 000 000
stubs :

PHP :
binary : 7.4.26
memory_limit : -1
short_open_tags : Off
ext/curl : Yes
ext/hash : Yes
ext/phar : Yes
ext/sqlite3 : Yes
ext/tokenizer : Yes
ext/mbstring : Yes
ext/json : Yes
ext/xmlwriter : No (Optional, used by XML reports)
pcre.jit : On (Must be off on PHP 7.3 and OSX)

java :
installed : Yes
type : OpenJDK Runtime Environment (build 1.8.0_292-8u292-b10-0ubuntu1~18.04-b10)
version : openjdk
$JAVA_HOME : /usr/lib/jvm/java-8-openjdk-amd64
$JAVA_OPTIONS : -Xmx16512m

tinkergraph :
installed : Yes (folder : /home/okak2006/exakat/tinkergraph)
host : 127.0.0.1
port : 7474
gremlin version : 3.4.8

tinkergraphv3 :
installed : Yes (folder : /home/okak2006/exakat/tinkergraph)
host : 127.0.0.1
port : 7474
gremlin version : 3.4.8

gsneo4j :
installed : No (folder : tinkergraph)

gsneo4jv3 :
configured : No gsneo4jv3_folder configured in config/exakat.ini.

nogremlin :
installed : Always

project :
name :
url :
phpversion : 74
reports : "Diplomat"
rulesets : CompatibilityPHP74, CompatibilityPHP80, CompatibilityPHP81, Analyze, Appinfo
included dirs :
ignored dirs : /assets, /cache, /css, /data, /doc, /docker, /docs, /example, /examples, /images, /js, /lang, /spec, /sql, /test, /tests, /tmp, /version, /var
ignored rules :
file extensions : php, php3, inc, tpl, phtml, tmpl, phps, ctp, module

folders :
projects folder : Yes

php74 :
configured : Yes (/usr/bin/php7.4)
actual version : 7.4.26`

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

No branches or pull requests

4 participants