https://bugs.contribs.org/show_bug.cgi?id=10464

Jean-Philippe Pialasse <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |CONFIRMED
          Component|smeserver-affa              |Unknown
           Assignee|[email protected]         |[email protected].
                   |                            |org
         QA Contact|[email protected]. |
                   |org                         |
     Ever confirmed|0                           |1

--- Comment #37 from Jean-Philippe Pialasse <[email protected]> ---
the initial issue comem from :

yum install --enablerepo=smecontribs -y smeserver-git

this should have also pulled  smeserver-gitweb and smeserver-gitweb-theme,
which it did not :


===============================================================================
 Paquet             Architecture
                                Version                 Dépôt            Taille
===============================================================================
Installation:
 smeserver-git      noarch      1.1.0-9.el6.sme         smecontribs       63 k
Installation pour dépendance:
 git                x86_64      1.7.1-9.el6_9           updates          4.6 M
 perl-Git           noarch      1.7.1-9.el6_9           updates           29 k

Résumé de la transaction
===============================================================================
Installation de     3 paquet(s)

Taille totale des téléchargements : 4.7 M
Taille d'installation : 15 M


from there you had the impossibility to expand your httpd.conf, that you should
have been able to detect  scouting in log messages. a signal-event hide the
errors, so by asking to to the expand-template we obtained :

[root@bjsserver ~]# expand-template /etc/httpd/conf/httpd.conf
ERROR in
/etc/e-smith/templates//etc/httpd/conf/httpd.conf/VirtualHosts/29GitRepositories:
Program fragment delivered error <<Gitweb is enabled, but could not find
'gitweb.cgi'!>> at template line 1
WARNING in /etc/e-smith/templates//etc/httpd/conf/httpd.conf/80VirtualHosts:
ERROR: Template processing failed for //etc/httpd/conf/httpd.conf/VirtualHosts:
1 fragment generated errors
 at /etc/e-smith/templates//etc/httpd/conf/httpd.conf/80VirtualHosts line 38



the template you show only produce warnings, and is part of the issuet he
biggest issue was the template 
/etc/e-smith/templates//etc/httpd/conf/httpd.conf/VirtualHosts/29GitRepositories
there is a line  
else {
die "Gitweb is enabled, but could not find 'gitweb.cgi'!\n";

which is not the best way to handle this, it shoudl rather set to disabled the
value is gitweb.cgi  is absent and just issue a warning; not a die.



(In reply to Brian Read from comment #33)
> Looked again at the erors- and noticed it seemed to be looking for "gitweb",
> so I installed it and then ran the expand again, this time we just get this:

this is part of the fix, but the die in the tempalte is not the best way to
handle the sitaution and this is a bug


> 
> # expand-template /etc/httpd/conf/httpd.conf
> WARNING in /etc/e-smith/templates//etc/httpd/conf/httpd.conf/80VirtualHosts:
> ERROR: No templates were found for
> /etc/httpd/conf/httpd.conf/WebAppVirtualHost.
>  at /etc/e-smith/templates//etc/httpd/conf/httpd.conf/80VirtualHosts line 38
> WARNING in /etc/e-smith/templates//etc/httpd/conf/httpd.conf/80VirtualHosts:
> Use of uninitialized value in concatenation (.) or string at
> /etc/e-smith/templates//etc/httpd/conf/httpd.conf/80VirtualHosts line 38.
> WARNING in /etc/e-smith/templates//etc/httpd/conf/httpd.conf/80VirtualHosts:
> ERROR: No templates were found for
> /etc/httpd/conf/httpd.conf/WebAppVirtualHost.
>  at /etc/e-smith/templates//etc/httpd/conf/httpd.conf/80VirtualHosts line 38
> WARNING in /etc/e-smith/templates//etc/httpd/conf/httpd.conf/80VirtualHosts:
> Use of uninitialized value in concatenation (.) or string at
> /etc/e-smith/templates//etc/httpd/conf/httpd.conf/80VirtualHosts line 38.
> WARNING: Template processing succeeded for //etc/httpd/conf/httpd.conf: 4
> fragments generated warnings
>  at /sbin/e-smith/expand-template line 45
> 
> No more errors, just warnings.
> 
> ..and - I've got access to server-manager now!!
> 
> Looks like we need some sort of bomb proofing in that template expansion, it
> is beyond my understansing what what actually happening.

the issue would have been discovered sooner by watching the messages log.  the
very same errors should sit there.

you still have an issue with this warning wich should not sit there

WARNING in /etc/e-smith/templates//etc/httpd/conf/httpd.conf/80VirtualHosts:
ERROR: No templates were found for
/etc/httpd/conf/httpd.conf/WebAppVirtualHost.
 at /etc/e-smith/templates//etc/httpd/conf/httpd.conf/80VirtualHosts line 38


it seems you are missing the folder, or files in it :
# rpm -qf /etc/e-smith/templates//etc/httpd/conf/httpd.conf/WebAppVirtualHost
smeserver-webapps-common-0.2.20-1.el6.fws.noarch

you are also missing this rpm to get you server working good, as your server is
configured to have it, which make me think you have restored this server :
files.bjsystems.co.uk=domain
    Content=depot
    Description=files for web access
    DirectoryIndex=/_h5ai/server/php/index.php
    DocumentRoot=/home/e-smith/files/ibays/depot/html
    Nameservers=internet
    TemplatePath=WebAppVirtualHost

yum install smeserver-webapps-common --enablerepo=smecontribs,fws

should fixe the warning and make your server GREAT AGAIN ;)



post mortem :
your httpd.conf was still containing 
SSLCertificateChainFile
/etc/dehydrated/certs/bjsserver.bjsystems.co.uk/chain.pem
SSLCertificateFile /etc/dehydrated/certs/bjsserver.bjsystems.co.uk/cert.pem
SSLCertificateKeyFile
/etc/dehydrated/certs/bjsserver.bjsystems.co.uk/privkey.pem

which you might have deleted or the contrib might have moved after they have
been renewed. then expand-template that failed, server was unable to load the
cert that does not exist anymore, so presenting an empty cert to client, and an
error.


moving this to smeserver-git that should be able to run in absence of gitweb OR
require smeserver-gitweb and smeserver-gitweb-theme

please not the documentation
https://wiki.contribs.org/Git#Install_the_SME_Server_Git_RPM.27s, stating 
yum --enablerepo=smecontribs,epel install smeserver-git smeserver-gitweb
smeserver-gitweb-theme


also this could be a bug related to affa that should issue warning or add
something to install the missing contribs from available repo...

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
_______________________________________________
Mail for each SME Contribs bug report
To unsubscribe, e-mail [email protected]
Searchable archive at https://lists.contribs.org/mailman/public/contribteam/

Reply via email to