Jump to content
  • entries
    122
  • comments
    153
  • views
    66860

Server Error in '/owa' Application Exchange Server 2007


Catastrophic Failure

785 views

 Share

Ν’αμαστε πάλι λοιπόν.. Άλλοι φεύγουν για διακοπές αυτόν τον καιρό, άλλοι είναι σε διακοπές και άλλοι έχουν γυρίσει (σαν κι εμένα). ‘Ήθελα το θέμα που θα ανέβαζα να είναι λίγο καλοκαιρινό και όχι Καταστροφικό, αλλά όταν μιλάμε για OS, Server κλπ πώς είναι δυνατόν να μην είναι καταστροφικό (χεχε). Είχα σκοπό να αρχίσω να γράφω για τον Exchange που είναι και ένας από τους βασικούς Server που ασχολούμαι, αλλά με προλάβανε τα αγόρια του Autoexec στην στροφή (xixi) και έχει ήδη αναπτυχθεί το παρόν προϊόν. Γι’αυτό αποφάσισα να μην αναφέρω για την αρχιτεκτονική και την δομή του Exchange αλλά προτίμησα να επιλέξω ένα θέμα που αντιμετώπισα στο παρελθόν με ένα κομμάτι του Exchange Server.

Η ιστορία έχει ως εξής:

ü Windows Server 2008 Datacenter x64 SP1 (Domain Controller)

ü Exchange Server 2007 EE SP1

Το θέμα:

Access OWA and mobile sync from CAS role of exchange Server 2007 after installing by mistake, SharePoint with ntlm authentication on same IIS port (80). SharePoint is now successfully moved to 8080 but owa and mobile sync still not working…

The message displayed is:

https://<servername>/owa/auth/error.aspx?aspxerrorpath=/owa/auth/logon.aspx

Server Error in '/owa' Application.

<!-- Web.Config Configuration File --> <configuration> <system.web>

<customErrors mode="RemoteOnly"/> </system.web> </configuration>

Notes: The current error page you are seeing can be replaced by a custom error page

by modifying the "defaultRedirect" attribute of the application's <customErrors>

configuration tag to point to a custom error page URL.

<!-- Web.Config Configuration File --> <configuration> <system.web>

<customErrors mode="On" defaultRedirect="mycustompage.htm"/> </system.web>

</configuration>

Σημειώσεις:
************

ü Πρώτη μη προτεινόμενη κίνηση
Windows Server 2008 Datacenter x64 SP1 (Domain Controller) και εγκατεστημένος ο Exchange Server 2007 EE SP1

ü Δεύτερη μη προτεινόμενη κίνηση
Windows Server 2008 Datacenter x64 SP1 (Domain Controller) και εγκατεστημένος ο Exchange Server 2007 EE SP1 + SharePoint Services 3.0

ü Τρίτη κίνηση
Μη σωστή αφαίρεση του SharePoint Services 3.0 αφήνοντας κατάλοιπα.

Workaround:
**************

Ελέγξαμε όλες τις ρυθμίσεις στον IIS 7.0 στον Exchange Virtual Directory και επιβεβαιώσαμε ότι account read/ write access.
Anonymous Authentication ---> Enabled
ASP.NET Impersonation ---> Disabled
Basic Authentication ---> Enabled
Digest Authentication ---> Enabled
Forms Authentication ---> Disabled
Windows Authentication ---> Disabled

Κάναμε recreate the OWAvdir ακολουθόντας τα παρακάτω βήματα:
Outlook Web Access Cmdlets
http://technet.microsoft.com/en-us/library/aa998624.aspx

You must first:

Get-OWAVirtualDirectory
Remove-OWAVirtualDirectory OWA(Default Web Site)
Better still - Run TEST-OWAVIRTUALDIRECTORY first
Usually OWA issues are resolved like that
GET, Remove, and then NEW
Μετά από όλα αυτά πάλι δεν μπορούσαμε να κάνουμε display το OWA μέσω :

https:\\server\owa

https:\\<IP>\OWA

Εκτελέσαμε την εντολή «Get-OWAVirtualDirectory | FL > C:\owa.txt» και μας έδωσε τα ακόλουθα αποτελέσματα:

AppCmd.exe set config /section:system.webServer/security/authentication/windowsAuthentication /useKernelMode:false

Προσπαθήσαμε να συνδεθούμε πάλι, αλλά το WebSite ήταν connected στο SharePoint Server, στην IP του OWA. Αφαιρέσαμε το Redirection από το OWA Vdir και Restart τον IIS, πάλι τίποτα.

Εκτελέσαμε την εντολή «Test-OWA cmdlet and we got error that user CAS_xxxxxxx does not exist or does not have credentials to perform the test». Επόμενο βήμα η επανεγκατάσταση του CAS Role. Επίσης προχωρήσαμε στην αφαίρεση του IIS 7 από τον Server Manager Roles, αφαιρέσαμε όλα τα features για τον IIS 7 και προχωρήσαμε σε reboot του Server και επανεγκατάσταση του IIS 7. Η απεγκατάσταση έγινε σωστά, μεταβήκαμε στο root του inetpub για να επιβεβαιώσουμε ότι αφαιρέθηκαν όλα σωστά και δεν υπήρχαν κατάλοιπα. Ξεκινήσαμε την εγκατάσταση του IIS 7, Server Manager -- >Roles -- > Add Role -- >Check the IIS 7 option and follow the wizard. Εκτελέσαμε από CMD τις ακόλουθες εντολές για το Default Web Site:

  • ServerManagerCmd -I RSAT-ADDS
  • ServerManagerCmd -I PowerShell
  • ServerManagerCmd -I Web-Server
  • ServerManagerCmd -I Web-ISAPI-Ext
  • ServerManagerCmd -I Web-Metabase
  • ServerManagerCmd -I Web-Lgcy-Mgmt-Console
  • ServerManagerCmd -I Web-Basic-Auth
  • ServerManagerCmd -I Web-Digest-Auth
  • ServerManagerCmd -I Web-Windows-Auth
  • ServerManagerCmd -I Web-Dyn-Compression

Κάναμε Restart τον server και προσπαθήσαμε να κάνουμε login στο OWA, το error αυτήν την φορά ήταν «401- Unauthorized», «404 -File not found»

«Server Error in '/owa' Application.

Runtime Error

Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed.

Details: To enable the details of this specific error message to be viewable on the local server machine, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "RemoteOnly". To enable the details to be viewable on remote machines, please set "mode" to "Off".

<!-- Web.Config Configuration File --> <configuration> <system.web> <customErrors mode="RemoteOnly"/> </system.web> </configuration>

Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's <customErrors> configuration tag to point to a custom error page URL.

<!-- Web.Config Configuration File --> <configuration> <system.web> <customErrors mode="On" defaultRedirect="mycustompage.htm"/> </system.web> </configuration>

Επίλυση

Μετονομασία του web.config και Web.config-xxx file το οποίο βρίσκεται στο root του Default Web Site και επανεκκίνηση του IIS. Αφαιρέσαμε mannually όλα τα code references που ήταν pointing στο SharePoint από το web.config file of c:\inetpub\wwwroot, και επανεκκίνηση του IIS. Δοκιμάσαμε να κάνουμε login στο OWA και ναι τα καταφέραμε!!

Αυτά τα ολίγα για την ώρα, ελπίζω να μην σας κούρασα αλλά να περάσατε καλά….

 Share

2 Comments


Recommended Comments

Guest
Add a comment...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...