PHP Fatal error: Uncaught exception 'RuntimeException'

75 views
Skip to first unread message

Nicolas Gilbert

unread,
May 30, 2016, 2:16:12 AM5/30/16
to GitList

 HI
 
 I can't run gitlist in a debian 8
 I have a error when I load the gitlist php page

  ==> /var/log/apache2/error.log <==
[Mon May 30 08:08:09.856719 2016] [:error] [pid 4255] [client 10.114.19.220:46935] PHP Fatal error:  Uncaught exception 'RuntimeException' with message 'There are no GIT repositories in /var/www/depotgit/clustermonitor/' in /var/www/gitlist/src/Git/Client.php:44\nStack trace:\n#0 /var/www/gitlist/src/Util/Routing.php(118): GitList\\Git\\Client->getRepositories(Array)\n#1 /var/www/gitlist/src/Controller/MainController.php(48): GitList\\Util\\Routing->getRepositoryRegex()\n#2 /var/www/gitlist/vendor/silex/silex/src/Silex/Application.php(536): GitList\\Controller\\MainController->connect(Object(GitList\\Application))\n#3 /var/www/gitlist/boot.php(7): Silex\\Application->mount('', Object(GitList\\Controller\\MainController))\n#4 /var/www/gitlist/index.php(28): require('/var/www/gitlis...')\n#5 {main}\n  thrown in /var/www/gitlist/src/Git/Client.php on line 4

 Have you a idea ?

 ---------> the repo git

/var/www/depotgit/:
total 12
drwxr-xr-x  3 git      www-data 4096 mai   30 08:03 .
drwxr-xr-x 10 root     root     4096 mai   27 13:30 ..
drwxr-xr-x  3 www-data www-data 4096 mai   30 08:03 clustermonitor

/var/www/depotgit/clustermonitor:
total 12
drwxr-xr-x 3 www-data www-data 4096 mai   30 08:03 .
drwxr-xr-x 3 git      www-data 4096 mai   30 08:03 ..
drwxrwsr-x 7 www-data www-data 4096 mai   30 08:03 .git

/var/www/depotgit/clustermonitor/.git:
total 40
drwxrwsr-x 7 www-data www-data 4096 mai   30 08:03 .
drwxr-xr-x 3 www-data www-data 4096 mai   30 08:03 ..
drwxrwsr-x 2 www-data www-data 4096 mai   30 08:03 branches
-rwxrw-r-- 1 www-data www-data  152 mai   30 08:03 config
......


 ---------> the user www-data 

uid=33(www-data) gid=33(www-data) groupes=33(www-data),998(git)




Thilo Ratnaweera

unread,
May 30, 2016, 12:17:23 PM5/30/16
to git...@googlegroups.com

Hi Nicolas,

GitList seems to try to find any Git repositories in the path /var/www/depotgit/clustermonitor. Can you tell us, which directory you have configured as the root directory of your repositories, i.e. the line "repositories[] = '/path/to/your/repo/root/'" in your config.ini?

It might be enough to change the line to "repositories[] = '/var/www/depotgit/'" (although I'd strongly recommend to store your repos somewhere other than within your /var/www directory).

Thanks,
Thilo

--
You received this message because you are subscribed to the Google Groups "GitList" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gitlist+u...@googlegroups.com.
To post to this group, send email to git...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gitlist/5930dfc1-25e0-41df-8de0-ab6ba8e6d214%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

signature.asc
Reply all
Reply to author
Forward
0 new messages