error webmin virtualmin

12 posts / 0 new
Last post
#1 Tue, 05/13/2014 - 16:00
casoni

error webmin virtualmin

Error install webmin-virtualmin-git

Installation le(s) composant(s) avec la commande apt-get -y install webmin-virtualmin-git ...

Reading package lists... Building dependency tree... Reading state information... The following NEW packages will be installed: webmin-virtualmin-git 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 0 B/78.2 kB of archives. After this operation, 440 MB of additional disk space will be used. (Reading database ... 96770 files and directories currently installed.) Unpacking webmin-virtualmin-git (from .../webmin-virtualmin-git_1.5_all.deb) ... This Webmin module is already installed on your system. dpkg: error processing /var/cache/apt/archives/webmin-virtualmin-git_1.5_all.deb (--unpack): subprocess new pre-installation script returned error exit status 1 Errors were encountered while processing: /var/cache/apt/archives/webmin-virtualmin-git_1.5_all.deb E: Sub-process /usr/bin/dpkg returned an error code (1)

... installation échouée

Tue, 05/13/2014 - 18:46
andreychek

Howdy,

It sounds like it's saying that the git Webmin module is already installed.

Can you describe the process you used when initially installing that module?

-Eric

Wed, 05/14/2014 - 03:55
casoni

I installed correct webmin-virtualmin-git

git seems to work. i have problem I use sourcetree. commit is not appear for the sourcetree. By cons I can not access the url git (403 error) git web and present me the following error (see image)

Do you have a manual for configuring git Virtualmin especially in terms of file permissions or apache configuration?

Wed, 05/14/2014 - 10:41
andreychek

Howdy,

There is a manual on using the Git plugin here:

https://www.virtualmin.com/documentation/web/git

Wed, 05/14/2014 - 10:56
casoni

Hi, I see the link. who is the manual for correct remove and reinstall Git webmin virtualmin

I use :

apt-get remove webmin-virtualmin-git

Git removed and git is uninstalled and I no longer see it in the plugins or anywhere but when I try to reinstall I can not do it and I get the following error:

Reading package lists...
Building dependency tree...
Reading state information...
The following NEW packages will be installed:
  webmin-virtualmin-git
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/78.2 kB of archives.
After this operation, 440 MB of additional disk space will be used.
(Reading database ... 96770 files and directories currently installed.)
Unpacking webmin-virtualmin-git (from .../webmin-virtualmin-git_1.5_all.deb) ...
This Webmin module is already installed on your system.
dpkg: error processing /var/cache/apt/archives/webmin-virtualmin-git_1.5_all.deb (--unpack):
subprocess new pre-installation script returned error exit status 1
Errors were encountered while processing:
/var/cache/apt/archives/webmin-virtualmin-git_1.5_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
... installation échouée
Thu, 05/15/2014 - 10:42
andreychek

Normally, after running "apt-get remove webmin-virtualmin-git", the module should be completely removed, and should then install cleanly by running "apt-get install webmin-virtualmin-git".

The error you're receiving suggests it's not completely removed though.

After removing the package, you may want to look in /usr/share/webmin, and make sure that the directory "virtualmin-git" no longer exists.

If that directory exists, that could cause the error you're seeing.

-Eric

Thu, 05/15/2014 - 11:10
casoni

OK I reinstall correctlt. Okay eric, I followed your instructions and I reinstalled correctly webmin-Virtualmin-git I encountered no errors. Only I have the following error and I do not get access to commit with sourcetree tool to view tracked changes.

This is result Browne repository for the webmin

projects / myproject.git summary | shortlog | log | commit | commitdiff | tree | latest snapshot

description Git repository for owner www-data last change Thu, 1 Jan 1970 00:00:00 +0000 url http://mydomain.fr/git/myproject.git.git Status: 403 Forbidden Content-Type: text/html; charset=utf-8 git projects / myproject.git

403 Forbidden - Open failed. Git repository for

Help Me please.

Thu, 05/15/2014 - 14:10
andreychek

Howdy,

Can you describe what steps you've taken so far to setup your git repository?

For example, did you go into Services -> Git Repositories, and create a new repository for your project?

After that, did you grant access to that repository by going into Edit Users, clicking the username, then go into "Other user permissions" and set "Git login enabled"? You would then need to give that user Read/Write privileges to the repository.

If you've done all that -- what PHP Execution Mode is this Virtual Server set to use?

You can determine that by looking in Server Configuration -> Website Options, and there you can see the "PHP Execution Mode".

-Eric

Thu, 05/15/2014 - 15:40
casoni

create git repositories --> Is ok Edit Users--> Allow git logiN enabled is --> ok read and write privileges --> how do i make it ( i use chown for the repository Php execution mode --> i test apache, CGI and FCGI not work

I tried many things but it does not work.

Sun, 09/21/2014 - 11:36
Tortoise

I also have this problem.

The user has read/write permissions to the git repository.

When I try to browse the repository, I see something like this:

description Git repository for domain.eu owner Apache last change Thu, 1 Jan 1970 00:00:00 +0000 url git://git.xmms.se/xmms2/test.git Status: 403 Forbidden Content-Type: text/html; charset=utf-8 git projects / test.git

403 Forbidden - Open failed.

Thu, 02/26/2015 - 16:42
eldk

Hello,

I've followed this tutorial too : https://www.virtualmin.com/documentation/web/git

Install git, webmin-virtualmin module, create a sub-domain, create git service for this sub-domain, create a project repository and give full access to one user.

But can't browse the repository from http url : http://git.mydomain.tld/git/projectname.git , get the same error : 403 Forbiden - Open Failed.

Check it from https://myip:port/virtualmin-git/ and go to (click on "Browse repository) http://git.mydomain.tld/git/gitweb.cgi?p=myproject.git and it works.

Go to http://git.mydomain.tld/git/gitweb.cgi?p=myproject.git after leaving all sessions, password is asked and project browsable.

So I think the url must be now : http://git.mydomain.tld/git/gitweb.cgi?p=myproject.git or I'm missing something ?

Go ahead trying to make my git repository usable.

So, I have it : you have to follow instructions given in "repositories command", button in git repositories virtualmin interface : service/virtualmin git.

at least : Local repository initialization and Setting up access to this repository.

Once repository initialized, yould push over http from your local repository : check here : http://www.jeremy-ozog.fr/android/2013/06/09/developpement-bitbucket-git... and look at Bitbucket command line.

1 - go to your local git repository :

cd /path/to/project/.git

2 - create remote repository

git remote add origin http://username@yourdomain.tld/gitprojectname.git/

the origin is given in Setting up access from service/git virtualmin/repositories command/Setting up access to this repository

3 - push from your local repository to remote repository (virtualmin server) :

push -u origin --all --verbose --dry-run

password is asked for your git user, after testing with --dry-run, you should remove it for real push.

Check the repository at this url :

http://git.mydomain.tld/git/gitweb.cgi?p=myproject.git pushed filed from your local repository to remote virtualmin git repository are here.

Greatings,

Eric

PS : I can't attache a jpg of 50ko with usable virtualmin git view (validation error)

Wed, 02/20/2019 - 14:03
alirezakay

If you are running your website on apache, everything you need is to add a file named: .htaccess. This file will rewrite apache configs for the current folder:

  1. Create .htaccess file in git folder created by webmin-virtualmin-git module
  2. Paste the codes below in it and save it. Options +ExecCGI
    AddHandler cgi-script .cgi
  3. Now refresh the page and now you won't get the 403 Forbidden Error!
Topic locked