Error in SOGo webinterface after beta2 updates

Hello,
After installation of latest updates for Nethserver 7 the web interface of SOGo does not work anymore.
The error is:

"Not Found

The requested URL /SOGo/ was not found on this server."

It happened after installation of
nethserver-httpd-3.1.0-1.ns7.noarch.rpm

hi,

look at this thread :
http://community.nethserver.org/t/sogo-webpage-error/?source_topic_id=4343

Solution is given in topic 54.
I twork for me in a fresh install of ns7 beta2

2 Likes

Hi Bruno,

Thank you.
It’s working now!

I just pushed a testing rpm (nethserver-sogo-1.6.0-1.1.gdb54817.ns7.noarch.rpm), could you please try it on a fresh install?

Command:
yum --enablerepo=nethforge-testing install nethserver-sogo

4 Likes

Done with a fresh install.
it works!

4 Likes

The problem still exists.
The reason is recent nethserver-httpd 3.1.0-1.ns7 update. After applying this update SOGO does not work anymore.
Help please!

New /etc/httpd/conf.d/nethserver.conf:
# ================= DO NOT MODIFY THIS FILE =================
#
# Manual changes will be lost when this file is regenerated.
#
# Please read the developer’s guide, which is available
# at https://dev.nethesis.it/projects/nethserver/wiki/NethServer
# original work from http://www.contribs.org/development/
#
# Copyright © 2013 Nethesis S.r.l.
# http://www.nethesis.it - support@nethesis.it
#
#
# 10ssl
#
# Additional directives for SSL. See also upstream ssl.conf.
#
# SSLCertificateChainFile
SSLCipherSuite DEFAULT:!EXP:!SSLv2:!DES:!IDEA:!SEED:+3DES;

IncludeOptional conf.d/default-virtualhost.inc

**Then in /etc/httpd/conf.d/default-virtualhost.inc**

    # ================= DO NOT MODIFY THIS FILE =================
    #
    # Manual changes will be lost when this file is regenerated.
    #
    # Please read the developer's guide, which is available
    # at https://dev.nethesis.it/projects/nethserver/wiki/NethServer
    # original work from http://www.contribs.org/development/
    #
    # Copyright (C) 2013 Nethesis S.r.l.
    # http://www.nethesis.it - support@nethesis.it
    #
    #
    # 10server-manager permanent redirect
    #
    RewriteEngine On
    RewriteRule ^/server-manager(/.*)?$  https://%{HTTP_HOST}:980$1  [L,R=301]



    #
    # 40nextcloud
    #
    RewriteEngine On
    RewriteCond %{HTTPS} !=on
    RewriteRule ^/nextcloud(/.*)?$  https://%{HTTP_HOST}/nextcloud\$1  [L,R=301]
    #
    # 80vhost_default -- include template httpd/vhost-default
    #                    for backward compatibility
    #
    #
    # 30SOGo
    #
    # -- DISABLED

Here the whole SOGo configuration is gone!

Old one:
# ================= DO NOT MODIFY THIS FILE =================
#
# Manual changes will be lost when this file is regenerated.
#
# Please read the developer’s guide, which is available
# at https://dev.nethesis.it/projects/nethserver/wiki/NethServer
# original work from http://www.contribs.org/development/
#
# Copyright © 2013 Nethesis S.r.l.
# http://www.nethesis.it - support@nethesis.it
#

#
# 10ssl
#
# Additional directives for SSL. See also upstream ssl.conf.
#
# SSLCertificateChainFile
SSLCipherSuite DEFAULT:!EXP:!SSLv2:!DES:!IDEA:!SEED:+3DES;


#
# 30include
#

IncludeOptional nethserver.d/*.vhost


**And in /etc/httpd/nethserver.d/00default:443.vhost:**

[.....]
#
# 30SOGo
#

Alias /SOGo.woa/WebServerResources/ \
      /usr/lib64/GNUstep/SOGo/WebServerResources/
Alias /SOGo/WebServerResources/ \
      /usr/lib64/GNUstep/SOGo/WebServerResources/
AliasMatch /SOGo/so/ControlPanel/Products/(.*)/Resources/(.*) \
           /usr/lib64/GNUstep/SOGo/$1.SOGo/Resources/$2

<Directory /usr/lib64/GNUstep/SOGo/>
    AllowOverride None
    Require all granted

    # Explicitly allow caching of static content to avoid browser specific behavior.
    # A resource's URL MUST change in order to have the client load the new version.
    <IfModule expires_module>
      ExpiresActive On
      ExpiresDefault "access plus 1 year"
    </IfModule>
</Directory>

<LocationMatch "^/SOGo/so/ControlPanel/Products/.*UI/Resources/.*.(jpg|png|gif|css|js)">
  SetHandler default-handler
</LocationMatch>

## Uncomment the following to enable proxy-side authentication, you will then
## need to set the "SOGoTrustProxyAuthentication" SOGo user default to YES and
## adjust the "x-webobjects-remote-user" proxy header in the "Proxy" section
## below.
<Location /SOGo>
  SetEnv proxy-nokeepalive 1
  Require all granted
</Location>

ProxyRequests Off
ProxyPreserveHost On

# When using CAS, you should uncomment this and install cas-proxy-validate.py
# in /usr/lib64/cgi-bin to reduce server overloading
#
# ProxyPass /SOGo/casProxy http://localhost/cgi-bin/cas-proxy-validate.py
# <Proxy http://localhost/app/cas-proxy-validate.py>
#   Order deny,allow
#   Allow from your-cas-host-addr
# </Proxy>

ProxyPassInterpolateEnv On
ProxyPass /SOGo http://127.0.0.1:20000/SOGo interpolate
ProxyPass /card/SOGo http://127.0.0.1:20000/SOGo interpolate
ProxyPass /card/principals http://127.0.0.1:20000/SOGo/dav/ interpolate
ProxyPass /card/ http://127.0.0.1:20000/SOGo/dav/ interpolate
ProxyPass /principals http://127.0.0.1:20000/SOGo/dav/ interpolate
ProxyPass /Microsoft-Server-ActiveSync http://127.0.0.1:20000/SOGo/Microsoft-Server-ActiveSync retry=60 connectiontimeout=5 timeout=360


SetEnvIf Host (.*) REQUEST_HOST=$1

<Proxy http://127.0.0.1:20000/SOGo>
## adjust the following to your configuration
  RequestHeader set "x-webobjects-server-port" "443"
  RequestHeader set "x-webobjects-server-name" "%{REQUEST_HOST}e"
  RequestHeader set "x-webobjects-server-url" "https://%{REQUEST_HOST}e/SOGo"

## When using proxy-side autentication, you need to uncomment and
## adjust the following line:
#  RequestHeader set "x-webobjects-remote-user" "%{REMOTE_USER}e"

  RequestHeader set "x-webobjects-server-protocol" "HTTP/1.0"
  RequestHeader set "x-webobjects-remote-host" %{REMOTE_HOST}e env=REMOTE_HOST

  AddDefaultCharset UTF-8

  Require all granted
</Proxy>

## We use mod_rewrite to pass remote address to the SOGo proxy.
# The remote address will appear in SOGo's log files and in the X-Forward
# header of emails.
RewriteEngine On
RewriteRule ^/sogo/?$ /SOGo/ [R=301,L]
RewriteRule ^/SOGo(/.*)?$ /SOGo$1 [env=REMOTE_HOST:%{REMOTE_ADDR},PT]


 #
 # 30letsencrypt
 #
 Alias "/.well-known/acme-challenge/" "/var/www/html/.well-known/acme-challenge/"
 <Directory "/var/www/html/.well-known/acme-challenge/">
    Order allow,deny
    Allow from all
    Options -Indexes -FollowSymLinks
    AllowOverride None
 </Directory>

#
# 40nextcloud
#
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^/nextcloud(/.*)?$ https://neth7.nedersticht.nl/nextcloud$1 [R,L]

</VirtualHost>

Sorry for bad formatting!

hi, i don’t understand because it works for me.

you are talking about [quote=“Erwis, post:6, topic:4343”]
The reason is recent nethserver-httpd 3.1.0-1.ns7 update
[/quote]

but i don’t find any update for this package. I made another fresh install of ns7 beta 2 from the iso, the package is already this one and there no update for it on software center.

i reinstall nethserver-sogo from nethforge-testing like Giacomo said and it works correctly.

I went from beta1 to beta2:
Package Arch Version Repository Size
Installing:
kernel x86_64 3.10.0-327.28.3.el7 updates 33 M
Updating:
kernel-headers x86_64 3.10.0-327.28.3.el7 updates 3.2 M
kernel-tools x86_64 3.10.0-327.28.3.el7 updates 2.4 M
kernel-tools-libs x86_64 3.10.0-327.28.3.el7 updates 2.3 M
nethserver-backup-config noarch 1.5.1-1.ns7 nethserver-base 34 k
nethserver-base noarch 3.0.7-1.ns7 nethserver-base 221 k
nethserver-dc x86_64 1.0.4-1.ns7 nethserver-updates 12 M
nethserver-firewall-base noarch 3.0.4-1.ns7 nethserver-base 78 k
nethserver-firewall-base-ui noarch 3.0.4-1.ns7 nethserver-base 62 k
nethserver-hosts noarch 1.2.1-1.ns7 nethserver-base 29 k
nethserver-httpd noarch 3.1.0-1.ns7 nethserver-base 48 k
nethserver-httpd-admin noarch 2.0.2-1.ns7 nethserver-base 1.6 M
nethserver-lang-en noarch 1.1.3-1.ns7 nethserver-base 21 k
nethserver-lang-nl noarch 1.1.3-1.ns7 nethserver-base 68 k
nethserver-letsencrypt noarch 1.1.2-1.ns7 nethserver-base 19 k
nethserver-mail-common noarch 1.6.2-1.ns7 nethserver-base 56 k
nethserver-mail-filter noarch 1.4.3-1.ns7 nethserver-updates 145 k
nethserver-nextcloud noarch 1.0.2-1.ns7 nethserver-base 21 k
nethserver-release noarch 7-0.3.ns7 nethserver-base 22 k
nethserver-samba noarch 2.0.1-1.ns7 nethserver-base 36 k
nethserver-sssd noarch 1.0.3-1.ns7 nethserver-base 54 k
nextcloud noarch 10.0.0-1.ns7 nethserver-base 33 M
python x86_64 2.7.5-38.el7_2 updates 89 k
python-libs x86_64 2.7.5-38.el7_2 updates 5.6 M
python-perf x86_64 3.10.0-327.28.3.el7 updates 2.4 M

Transaction Summary
Install 1 Package
Upgrade 24 Packages

I did this to > i reinstall nethserver-sogo from nethforge-testing like Giacomo said and it works correctly.
And there after:
yum install updates

I tested twice.
i tried to make the update after the install of sogo and no problem…
But from ns7 beta 2 iso!

Can you try if it works after doing:

1 Like

For me it’s working again. Last time I did it, the softtwarecenter showed sogo updates after installation. If you have installed them, it dosn’t work again. But this time there are no updates available.

Could you please try Active sync from iPhone?

Can somebody else help, I don’t have an Iphone for testing at this moment.

Ehi Sogo users @Nas @mark_nl @kisaacs @Miko10 @chrisg @wombat77 can you help this guy?

I had this problem after every update. But writed solution always works. But I must be done after every update.

1 Like

I hope to have some spare time in a couple of week to release a working rpm.

5 Likes

I just published a new rpm (available as soon as mirror are synced):
nethserver-sogo-1.6.1-1.ns7.noarch.rpm

If you already have sogo installed, you should do the following:

rm -f /etc/httpd/conf.d/SOGo.conf
yum reinstall sogo
signal-event nethserver-sogo-update
2 Likes