Yosemite Server: Apache shm errors with proxy_balancer | SASL errors using user alias

Dear OSX Server Ninjas,
I recently upgraded my 10.9.5 Mac mini running Server 3.2.2 to Yosemite + Server v4, directly to v4.0.3. The box serves the whole Mail/Cal/Contacts/VPN palette as well as some websites, Git repos and some custom software. See below for network setup.
After battling the most blatant issues (some easy to fix but hard to find, others hard on both), I'm almost back to a working server setup … but some things keep bugging me even after days of log-reading and OD tricks. In the last days, I have read countless discussions here as well as on stackoverflow/serverfault/apple.stackexchange and blogs, so I'll try to be as thorough and precise as possible to show what I have tried so far – sorry in advance for the long post
… and since you might not read to the bottom: Thanks in advance for any help, especially with the Apache problem!
My setup
OSX Server v4.0.3 running on Yosemite 10.10.1 ➞ both latest official releases
host + DNS
Hostname configured for public domain mydomain.net, web traffic on selected ports comes in through router NAT
Server has a static IP on the local subnet 192.168.178.0/24
Server running local DNS and performing lookups for all clients in the local subnet, forwarding to the router at 192.168.178.1
Primary zone for mydomain.net with records (A, NS, MX) pointing to said static IP
changeip -checkhostname is successful
Public IP is currently configured at the domain registrar through his name servers
SSL
Trusted third-party certificate installed for host.mydomain.net (Common Name + SAN for two subdomains)
Used to secure all services
Qualys SSL Test Grade B (capped due to OSX's openssl 0.9.x not being capable of TLS1.2 and Intermediate CA SHA-1 )
TLS working both inbound and outbound according to CheckTLS.com
OpenDirectory
Recreated after upgrade (probably not necessary, since issue persists), re-imported groups + users from WGM backup files
Only the server itself is bound to the directory, other devices just access services through network accounts (CRAM-MD5, MD5-Digest)
Problems
Apache shm errors: Apache fails to create slot memory when proxy module is enabled
As soon as I start a service which requires the Apache proxy_balancer module (e.g. Cal/Contacts, ProfileManager), this starts filling up my Apache's error log:
[Mon Jan 12 01:41:17.979882 2015] [proxy_balancer:emerg] [pid 2949] (28)No space left on device: AH01179: balancer slotmem_create failed for p26d9e669--1011640492
[Mon Jan 12 01:41:17.979894 2015] [:emerg] [pid 2949] AH00020: Configuration Failed, exiting
[Mon Jan 12 01:41:28.297127 2015] [slotmem_shm:error] [pid 3026] (28)No space left on device: AH02611: create: apr_shm_create(/private/var/run/slotmem-shm-p26d9e669--1001322955.shm) failed
[Mon Jan 12 01:41:28.297347 2015] [proxy_balancer:emerg] [pid 3026] (28)No space left on device: AH01179: balancer slotmem_create failed for p26d9e669--1001322955
[Mon Jan 12 01:41:28.297355 2015] [:emerg] [pid 3026] AH00020: Configuration Failed, exiting
When I increase the Apache LogLevel to trace1, I get this as well:
[Mon Jan 12 02:11:43.190303 2015] [slotmem_shm:debug] [pid 5501] mod_slotmem_shm.c(367): AH02602: create didn't find /private/var/run/slotmem-shm-p26d9e669-813569972.shm in global list
This causes the Apache to crash constantly, which is … unnerving. After googling around for a while, I tried the following steps:
Stop Services that use the Apache (Web, *DAV, ProfileManager)
sudo apachectl stop
Remove all orphan cache/slot files (.shm, ssl-cache, proxy.*) from /private/var/run
Reboot the server
Start up the Services again
Curiously enough, this worked for a while! But I was getting several log messages about dropped proxy connections, and sometimes the ProfileManager page would time out. Then, the issue started to reappear and does not seem to be fixed again with the steps above. I looked through the Apache config files and config plists for the Services in question, as well as the default config files. The only thing I have so far is that as long as there are no active proxy connections, the Apache runs smoothly – but all goes awry when slotmem files are created (a lot of them). Sometimes, I am able to turn on the Calendar service, but switching on Contacts produces the error … one time, I even got Calendar + Contacts running, and all went well until I enabled Profile Manager.
I found several error reports with similar or identical errors from other Apache 2.4.x users, but most of those were developer talk on mailing lists, or suggested steps that did not work for me (or were inapplicable on the OS X Server Apache environment).
SASL errors using user alias for WebDAV-Digest authentication
Short version: I am unable to authenticate through WebDAV-Digest with a user's alias (defined in Server Admin > Users > Context Menu > Advanced Options or WGM). Using the main short name of the same user works flawlessly. Password Server Error log just shows:
AUTH2: {234023578237md5hash2384234, mainshortname} WEBDAV-DIGEST authentication failed, SASL error -13 (password incorrect).
The password is 100% correct: When I set up a test CalDAV account and put in alias+PW, it did not work (OS X Dialog showed “could not be verified”, Server log as above). Leaving the password field filled and just switching the user to the main short name went through instantaneously, with the Server log showing
AUTH2: {234023578237md5hash2384234, mainshortname} WEBDAV-DIGEST authentication succeeded.
Notice the same MD5 hash and canonical short name, yet different results. I don't know if this is a new “feature”, a result of mail aliases being handled differently (at least I read that somewhere) …
Additional Questions
Should I configure the DNS for public use, instead of the Split-Brain configuration (local network gets local IP, outside traffic is directed by registrar NS)? I read several articles explaining that Split-Brain is common in large organizations, but might introduce weird networking issues. Entering the external IP as a Round Robin alternative for the internal does not seem sensible to me.
I also have a question concerning LDAP log entries like this one below, but I'll put that in this already open discussion:
=> bdb_idl_delete_key: c_get failed: DB_LOCK_DEADLOCK: Locker killed to resolve a deadlock (-30994)

Today the same error occurred on a customers server.
We don't use Calendar or Contacts.
We only have some websites configured and want use NetInstall for deployments.
As soon as I disable the Profilemanager the httpd starts over and other websites and NetInstall via HTTP are working fine.
When I reenable Profilemanager the httpd processes are gone and I see the same stuff in Apache's error log...

Similar Messages

  • Non-SysAdmins get error 18456 Severity 14 State 11 Login Failed for user _ Reason Token-based server access validation failed with an infrastructure error.

    I have a SQL 2008 R2 system (10.50.4000) where I'm having problems connecting any user that is not a SysAdmin.  Example: I setup a new SQL Login to use Windows Authentication and grant that user db_datareader on the target database.  The user attempts
    to connect using Excel client or Access or SQL Management Studio and receives Error 18456.  The SQL Server Logs shows Error 18456 Severity 14 State 11 Login Failed for user _ Reason Token-based server access validation failed with an infrastructure error.
    The strange part is that if I temporarily grant the user the sysadmin server role then the user can connect successfully and retrieve data.  But, if I take away that sysadmin server role then the user can no longer connect but again receives the Error
    18456 Severity 14 State 11 Login Failed for user _ Reason Token-based server access validation failed with an infrastructure error.
    We've turned off UAC on the client machine to see if that was the problem, but no change.
    I have dropped and re-added the user's SQL Login (and the related database user login info).  No success.
    The Ring Buffers output shows:
    The Calling API Name: LookupAccountSidInternal
    API Name: LookupAccountSid
    Error Code: 0x534
    Thanks for any help.
    -Walt

    Yes, you understand correctly.  The user is logging onto a workstation (not the server) with a Windows Authenticated id.  The user is using either Excel or Access or SSMS and connecting to the server using a Windows Authenticated SQL Login account.
     If the account has sysadmin role (which is only for testing) then the connection is successful.  If I take away sysadmin role from the account then the connection is unsuccessful and the SQL Server Log shows Error
    18456 Severity 14 State 11 Login Failed for user _ Reason Token-based server access validation failed with an infrastructure error.
    (SQL Authentication is not an option here.  I must use Windows Authentication).
    Any other troubleshooting assistance you can offer would be appreciated.  Thanks.
    -Walt 

  • Token-based server access validation failed with an infrastructure error

    Hi
    We have a new Win 2008 Enterprise x64 server running SQL 2008
    When we try to connect to the server using Windows Authentication, from a user account which is a domain administrator, we get the following message:
    "Token-based server access validation failed with an infrastructure error"
    What needs to be configured here for this to work ?
    Thanks
    Bruce

    Hi,
    I am encountering the same error message but it is more around the login, this problem happens only on one server but it is fine on another three, my investigation show it is a ghost SID associated with AD user account
    Background
        1- An Active Directory (AD) account was created for a user [Domain\UserA]
        2- A SQL login was created for the account above and then granted access to a number of databases
        3- The AD account was renamed/modified to [Domain\UserB]
        At this stage the user would encounter an error when connecting to the server
        The sql log show this error message
        Error: 18456, Severity: 14, State: 11.
        Message
        Login failed for user 'domain\user'. Reason: Token-based server access validation failed with an infrastructure error. Check for previous errors.     [CLIENT: xxx]
    Action on Server 1 SQL (the one with the problem)
        1- Dropped the user from the databases
        2- Re-Created the login from the windows account [Domain\UserB]
        3- Created the user in the respective databases
        But the user still unable to connect to the server
    Investigation
        On server 1, the SID of the user in SYSUSERS was Matching SYSLOGINS and matches with result of SUSER_SID(Domain\UserA)
        But it does not match the SID in the AD
        The rest of the servers all have the correct SIDs
        When I use SUSER_SNAME(Incorrect-Sid) and SUSER_SNAME(Correct-Sid) on this server they both return [Domain\UserB]
        The problematic server is always returning the incorrect SID when recreating the user login and when using SUSER_SID(Domain\UserA) as if it is cached somewhere.
    I can't specify the SID when creating the SQL login because it is using the Windows account
    Your ideas on how to fix this problem are much appreciated
    Regards,
    DGL

  • Server 2008 R2 Terminal Server c0000005 and c0000006 errors with KERNELBASE.dll error in RDP sessions.

    We installed a new Server 2008 R2 server this spring. It is configured as a Terminal Server with 16 Wyse t10 thin clients connecting with RDP. We are a small resort so we run Springer Miller Host and SpaSoft. Ever since moving from PCs to the thin clients
    and TS we have been seeing SpaSoft randomly crash with KERNELBASE.dll errors and also a lot of c0000005 and c0000006 errors. Springer Miller support says its a Microsoft Networking issue so no help there. The company we worked with to install this has no clue
    so I hope to reach out to this community to solve this. I can also open support case with Microsoft Support but I am not sure if they will be of any help. Here are some examples of the errors:
    "Event 1000
    Faulting application name: SpaWin.exe, version: 3.4.0.0, time stamp: 0x2a425e19
    Faulting module name: KERNELBASE.dll, version: 6.1.7601.18409, time stamp: 0x53159a86
    Exception code: 0x0eedfade
    Fault offset: 0x0000c42d
    Faulting process id: 0x3718
    Faulting application start time: 0x01cf9ac7922487e9
    Faulting application path: \\spasoft\spaapps\TermServ\SpaWin.exe
    Faulting module path: C:\Windows\syswow64\KERNELBASE.dll
    Report Id: cfdcf9a9-06ba-11e4-a5af-000c298d9aa5"
    Also:
    "Faulting application name: VH.EXE, version: 18.80.430.0, time stamp: 0x3f73b447
    Faulting module name: VFP8R.DLL, version: 8.0.0.3117, time stamp: 0x3f73c232
    Exception code: 0xc0000006
    Fault offset: 0x0001d598
    Faulting process id: 0x2bc8
    Faulting application start time: 0x01cf99297ee1742f
    Faulting application path: J:\HOSTPLUS\fxp32\VH.EXE
    Faulting module path: J:\HOSTPLUS\fxp32\VFP8R.DLL
    Report Id: 5fbc65c4-055c-11e4-a5af-000c298d9aa5"
    And:
    "Faulting application name: SpaWin.exe, version: 3.4.0.0, time stamp: 0x2a425e19
    Faulting module name: unknown, version: 0.0.0.0, time stamp: 0x00000000
    Exception code: 0xc0000005
    Fault offset: 0x00000000
    Faulting process id: 0x2aa0
    Faulting application start time: 0x01cf988e6770e619
    Faulting application path: \\spasoft\spaapps\TermServ\SpaWin.exe
    Faulting module path: unknown
    Report Id: 01029179-04b9-11e4-a5af-000c298d9aa5"
    There are no network specific errors in any of the logs. I am thinking that SpaSoft needs to be run as an administrator but I am not sure how to do that in this environment. We have disabled DEP for all but essential Windows processes. All of the firewall
    and AV has been completely disabled, and still getting these errors. Is there a way to run these applications as admin without the user actually being an admin? Should I go ahead and open a Microsoft support case? Thanks

    Hi,
    Thank you for posting in Windows Server Forum.
    Explanation
    The indicated program stopped unexpectedly. The message contains details on which program and module stopped. A matching event with Event ID 1001 might also appear in the event log. This matching event displays information about the specific error that occurred.
    User Action
    If an error report was generated for this error, you might be able to obtain more information about the error by sending the report to Microsoft for analysis.
    Yeah, you can open a support case with Microsoft as they will help and guide you for proper solution. You can go through
    this source article.
    Hope it helps!
    Thanks.
    Dharmesh Solanki

  • Yosemite server: no CardDAV-Sync with Yosemite clients

    Hi everybody,
    this drives me really mad:
    We had a Lion server (older Mac mini) with Calendar and Contacts services running with no issues. We used global accounts to share company's events and contacts between Macs and iOS devices.
    We started using Yosemite on the clients. Even two new clients (iMac and MacBook Air) came into place with Yosemite already pre-installed. Again: Everything works together.
    We bought a new Mac mini to switch to Yosemite and OS X Server 4. We didn't any migration and started from scratch: DNS, Open Directory etc.. On one client machine (Yosemite) we just exported the calendars into *.ics-files and the contacts (groups) into *.vcf-files.
    On the new server we created network accounts with an exported text file and NOT via an OD archive of the old server, the new server has a different hostname/IP address, both servers didn't disturb each other.
    The migration took place at one client again: Importing each *.ics-file into the new account works as expected. Every appointment or event was then synched to every client (OS X, iOS) from the new server.
    But: While importing the contacts into the global network account of the new server seems to have been worked, the syncing down to the Yosemite clients breaks and didn't finish. Mavericks clients and iOS clients sync within a few seconds without any problem: They have the same amount of contacts and groups. The Yosemite clients sync far longer and are missing about 100 or 200 (it differs from machine to machine) entries and do not show any group at all.
    Even a completely new created local account with fresh configuration of Contacts.app shows this behavior on Yosemite clients. But ONLY with the new server.
    This is really strange, isn't it?
    Has anyone got similar experiences? And solved this issue, probably?
    Best regards,
    Olaf

    I am experiencing a similar problem with both CalDAV and CardDAV.  The existing accounts seem to work as long as you don't try to add a new one.  When you try to add a new CarDAV or CalDAV account, a OS X Server account is added instead.  The new account gives you the options of selecting Calendar, Contacts, etc. but it's not working.  I'm not sure how to work around this yes, but Apple Support suggested copying the files from a working Library into the one that is not working, but I have not had success doing this.  This is a known bug that needs to be fixed. If you figure out a work around please let me know [email protected] thanks.

  • Login error with correct u/p using Oracle Application Server / BPEL

    Hello,
    We are using Oracle 11g and BPEL 10.1.3.4. We had everything working fine until earlier this week. We were receiving an exception when accessing the database from our BPEL process.
    Unable to establish connection to "iCareConnectionPool". Error message: Exception occurred testing connection. Exception: java.sql.SQLException: ORA-01017: invalid username/password; logon denied.
    I went into the Application Server control and tested the data source and connection pool and they both failed with the login error. The userid and password being submitted is correct. I checked the data-source.xml file and the id/password looked good. Here are the steps I performed.
    On BPEL server:
    1)     Deleted connection pool iCareConnectionPool, data source, iCareDataSource, and removed /eis/db/iCareDataSource from the DBAdapter.
    2)     Created new connection pool – iCareConnectionPool using jdbc:oracle:oci:@//<host>:1521/ORCL with userid IDS
    3)     The connection pool test was successful. Clicked finish to create connection pool
    4)     From the JDBC resources screen, I tested the connection pool and it failed with invalid logon error.
    5)     Modified connection pool to use IDS2 and it worked.
    6)     Modified connection pool to IDS and it failed.
    7)     Modified connection pool to jimc and it worked.
    On Database:
    1)     Created new schema/user ICAREIDS
    2)     Connected using SQL Developer and I could connect
    On BPEL Server:
    1)     Deleted connection pool
    2)     Created connection pool iCareConnectionPool using jdbc:oracle:oci:@//<host>:1521/ORCL with userid IDS
    3)     The connection pool test was successful. Clicked finish to create connection pool
    4)     From the JDBC resources screen, I tested the connection pool and it failed with invalid logon error.
    5)     Modified connection pool to use IDS2 and it worked.
    6)     Created new connection pool TestPool – same results
    7)     Tried jdbc:oracle:thin:@//<host>:1521/ORCL - same results
    On my local system BPEL server:
    1)     Created connection pool iCareConnectionPool using jdbc:oracle:oci:@//<host>:1521/ORCL with userid IDS
    2)     The connection pool test was successful. Clicked finish to create connection pool
    3)     From the JDBC resources screen, I tested the connection pool and it failed with invalid logon error.
    4)     Modified connection pool to use IDS2 and it worked.
    5)     Modified connection pool to use ICAREIDS and it failed.
    Since it failed on two different BPEL server's, I am wondering if it is something with the database. I can connect using existing schema's but not IDS or any new schemas. However, I can connect to any schema using any other tool like SQL Developer.
    Can anyone provide an insight as to what could be happening here.
    Thanks,
    Jim

    I found the problem and wanted to pass on the solution in case any one else runs into this problem.
    With Oracle Database 11g the passwords are now case sensitive. Because the BPEL server is using 10g drivers the login fails if you have capital letters in your password.

  • SQL Server VSS Writer terminated with service-specific error 2147549183 (0x8000FFFF)

    Hi Team,
    SQL VSS Writer service terminated with service-specific error,
    find SC query results, please advice wat;s the issue. Kindly note this service running fine for long time and suddenly stopped.
    SERVICE_NAME: SQLWriter
            TYPE               : 10  WIN32_OWN_PROCESS
            STATE              : 1  STOPPED
                                    (NOT_STOPPABLE, NOT_PAUSABLE, IGNORES_SHUTDOWN))
    WIN32_EXIT_CODE    : 1066  (0x42a)
            SERVICE_EXIT_CODE  : -2147418113  (0x8000ffff)
            CHECKPOINT         : 0x0
            WAIT_HINT          : 0x0
    Regards,
    Karthik
    Thanks & Regards, Karthikeyan

    this is part of a log error for example:
    24 Info 2011/09/26 23:00 [Start SQL VSS Comman]
    (NOT_STOPPABLE, NOT_PAUSABLE, IGNORES_SHUTDOWN)
    25 Info 2011/09/26 23:00 [Start SQL VSS Comman] WIN32_EXIT_CODE : 0 (0x0)
    26 Info 2011/09/26 23:00 [Start SQL VSS Comman] SERVICE_EXIT_CODE : 0 (0x0)
    27 Info 2011/09/26 23:00 [Start SQL VSS Comman] CHECKPOINT : 0x0
    28 Info 2011/09/26 23:00 [Start SQL VSS Comman] WAIT_HINT : 0x7d0
    29 Info 2011/09/26 23:00 [Start SQL VSS Comman] PID : 15532
    30 Info 2011/09/26 23:00 [Start SQL VSS Comman] FLAGS :
    31 Info 2011/09/26 23:00 Klaar met uitvoeren post-opdrachten
    32 Error 2011/09/26 23:00 The writer vetoed the shadow copy creation process during the
    backup preparation state. (VSS_WS_FAILED_AT_PREPARE_BACKUP)
    33 Info 2011/09/26 23:00 Verwijderen tijdelijk bestand C:\Users\serveradmin\.temp\
    1313680495583
    34 Error 2011/09/26 23:00 Backup voltooid met fout(en)
    This is what I look for usually from this log: 
    32 Error 2011/09/26 23:00 The writer vetoed the shadow copy creation process during the
    backup preparation state. (VSS_WS_FAILED_AT_PREPARE_BACKUP)
    Just post all the log messages if you can.
    [Personal Site] [Blog] [Facebook]

  • Computer account error, token-based server access validation failed with an infrastructure error

    I see many issues regarding this error referencing user accounts but our error is generated from the computer account, "DOMAIN NAME\COMPUTER NAME$". They are created frequently. The error does not list a database so we are not sure what is going
    on or what it's trying to do. The computer account in question is a web sever. This is occurring on two separate SQL servers that the web server connects to.

    The error message often indicates a mismatch between the login in SQL Server and the AD. Dropping and readding the login in SQL Server helps in those cases.
    The error can also occur if the account lacks CONNECT SQL permission or CONNECT permission on the endpoint.
    Erland Sommarskog, SQL Server MVP, [email protected]

  • Yosemite server email accounts name with only domain and extension

    Hello Again,
    Yosemite Server 10.10.1
    Domain name, static IP
    What are the tricks to get email in and out to use username example.com instead of [email protected]?
    François

    Hello Again,
    I'm sending from :  username @ xyz.example.com
    and receiving to :  username @ example.com
    Suggestions please?

  • Error with makepkg - no error without [solved]

    When compiling audacity with the standard PKGBUILD but with other configure options (./ configure --prefix=/usr --with-portaudio=v19 --without-portmixer), configure exits with the following error:
    $ configure: warning: CC=gcc: invalid host type
    $ configure: warning: CXX=g++: invalid host type
    $ configure: error: can only configure for one host and one target at a time
    $ configure: error: /bin/sh './configure' failed for lib-src/portaudio-v19
    if run outside makepkg, the configure command runs fine.
    This configure file contains a call to another configure located in a subdirectory and it's when this second one is called that the error occurs.
    Is there a bug here or is it by design supposing that this kind of nested configure files should not be written like this?

    Thanks for the tip. After playng with makepkg.conf, it appears that the rror occurs when audacity is compiled with the standard options:
    export CFLAGS="-march=i686 -O2 -pipe"
    export CXXFLAGS="-march=i686 -O2 -pipe"
    Without them, it compiles well.

  • Adobe Reader error with PDF reports created using AS Reports Server 10g

    Hi,
    Recently when trying to run reports in our system (which uses Oracle Application Server Forms & Reports Services 10g - 10.1.2.0.2), sometimes when we try to run a report in PDF format the following happens:
    1. A new window appears as expected
    2. This window hangs/appears to try to load for a couple of minutes
    3. Eventually an Adobe Reader error message appears saying the following:
    *"There is a problem With Adobe Acrobat/Reader. Please exit Adobe Acrobat/Reader and try again".*
    I have noticed that this problem only seems to occur when the client has Adobe Reader 9.3 installed (8.2 works fine).
    Has anyone else encountered this problem? Is there a known workaround or is this a known issue?
    Many thanks,
    Chris

    Does anyone have any ideas on this or has anyone encountered the same problem?
    thanks

  • Login failed for user 'domain\laptopid$'. Reason: Token-based server access validation failed with an infrastructure error

    This one has me banging my head against the wall ... Login fails once every second as long as my laptop is logged in (docked or VPN'd) ... Login attempts stop once machine is shut down ... It's a state 11 error ... We have 60+ sql servers (single nodes,
    virtuals, and clusters) and it's only happening on this one box that I have found so far ... What would be attempting a login using my laptop id? When I query ring buffers it says it's a call from NLShimImpersonate but I can't track it down ... We access servers
    via a windows group with sysadm permissions ...  

    No, your laptop is trying to log in. The account domain\laptopid$ is the machine account for your computer. This is a service that runs under Local System, Local Service, Network Service or a service SID.
    I have no idea what you have running on your laptop, but I would place my bets on IIS. But open the Services dialog in Manage Computer and stop once service at a time, until the errors go away.
    Erland Sommarskog, SQL Server MVP, [email protected]

  • Changing database server on a report with subreports = formula error

    Good morning,
    I currently have several reports that print out, and were developed attached to our development database. However, I need to be able to dynamically change the server that the report uses according to the server configured in our application. Each of these reports contains one or more subreports, which point to the same server and database as the main report. All reports, both the main and subreports, are based on manual SQL commands.
    I'm running into some significant issues. So significant, in fact, that we were forced to deploy our application with reports that had been switched to our production environment in the designer in order to get them functional. This is, obviously, not an acceptable or long-term solution.
    I've gone round and round a couple of times I get different results with different methods of changing this information. I'll outline them below. First, my current code:
    ConnectionInfo connectionInfo = new ConnectionInfo();
                    TableLogOnInfo logOnInfo = new TableLogOnInfo();
                    Console.WriteLine("Report \"{0}\"", report.Name);
                    foreach (Table table in report.Database.Tables)
                        logOnInfo = table.LogOnInfo;
                        connectionInfo = new ConnectionInfo(logOnInfo.ConnectionInfo);
                        connectionInfo.ServerName = "panthers-dev";
                        connectionInfo.DatabaseName = "Prosys";
                        logOnInfo.ConnectionInfo = connectionInfo;
                        //table.Location = "Prosys.dbo." + table.Location.Substring(table.Location.LastIndexOf(".") + 1);
                        table.ApplyLogOnInfo(logOnInfo);
                        table.LogOnInfo.ConnectionInfo = connectionInfo;
                        Console.WriteLine("\t\"{0}\": \"{1}\", \"{2}\", \"{3}\", {4}", table.Name, table.LogOnInfo.ConnectionInfo.ServerName, table.LogOnInfo.ConnectionInfo.DatabaseName, table.Location, table.TestConnectivity());
                    foreach (Section section in report.ReportDefinition.Sections)
                        foreach (ReportObject ro in section.ReportObjects)
                            if (ro.Kind == ReportObjectKind.SubreportObject)
                                SubreportObject sro = (SubreportObject)ro;
                                ReportDocument subreport = report.OpenSubreport(sro.SubreportName);
                                Console.WriteLine("\tSubreport \"{0}\"", subreport.Name);
                                foreach (Table table in subreport.Database.Tables)
                                    logOnInfo = table.LogOnInfo;
                                    connectionInfo = new ConnectionInfo(logOnInfo.ConnectionInfo);
                                    connectionInfo.ServerName = "panthers-dev";
                                    connectionInfo.DatabaseName = "Prosys";
                                    logOnInfo.ConnectionInfo = connectionInfo;
                                    //table.Location = "Prosys.dbo." + table.Location.Substring(table.Location.LastIndexOf(".") + 1);
                                    table.ApplyLogOnInfo(logOnInfo);
                                    table.LogOnInfo.ConnectionInfo = connectionInfo;
                                    Console.WriteLine("\t\t\"{0}\": \"{1}\", \"{2}\", \"{3}\", {4}", table.Name, table.LogOnInfo.ConnectionInfo.ServerName, table.LogOnInfo.ConnectionInfo.DatabaseName, table.Location, table.TestConnectivity());
    Using this approach, my console output prints what I expect and want to see: the correct server and database information, and True for TestConnectivity for all reports and subreports. The two reports I have that have no subreports print out correctly, with data from the proper server. However, all of the reports with subreports fail with formula errors. If this procedure is not run, they work just fine on either server.
    I had to place the assignment of table.LogOnInfo.ConnectionInfo = connectionInfo after the call to ApplyLogOnInfo, as that function did not behave as expected. If I perform the assignment first (or not at all), then calling ApplyLogOnInfo on the outer report's table did NOT affect the values of its ConnectionInfo object, but it DID affect the values of the ConnectionInfo object's of its subreports!
    In any event, if anyone could post a code sample of changing database connection information on a report containing subreports, I would appreciate it.
    Any help is greatly appreciated and anxiously awaited!

    Hi Adam,
    Code for changing database connection information on a report containing subreports :
    private ReportDocument northwindCustomersReport;
        private void ConfigureCrystalReports()
            northwindCustomersReport = new ReportDocument();
            string reportPath = Server.MapPath("NorthwindCustomers.rpt");
            northwindCustomersReport.Load(reportPath);
            ConnectionInfo connectionInfo = new ConnectionInfo();
            connectionInfo.ServerName = "localhost";
            connectionInfo.DatabaseName = "Northwind";
            connectionInfo.IntegratedSecurity = false;
            SetDBLogonForReport(connectionInfo, northwindCustomersReport);
            SetDBLogonForSubreports(connectionInfo, northwindCustomersReport);
            crystalReportViewer.ReportSource = northwindCustomersReport;
        private void Page_Init(object sender, EventArgs e)
            ConfigureCrystalReports();
        private void SetDBLogonForReport(ConnectionInfo connectionInfo, ReportDocument reportDocument)
            Tables tables = reportDocument.Database.Tables;
            foreach (CrystalDecisions.CrystalReports.Engine.Table table in tables)
                TableLogOnInfo tableLogonInfo = table.LogOnInfo;
                tableLogonInfo.ConnectionInfo = connectionInfo;
                table.ApplyLogOnInfo(tableLogonInfo);
        private void SetDBLogonForSubreports(ConnectionInfo connectionInfo, ReportDocument reportDocument)
            Sections sections = reportDocument.ReportDefinition.Sections;
            foreach (Section section in sections)
                ReportObjects reportObjects = section.ReportObjects;
                foreach (ReportObject reportObject in reportObjects)
                    if (reportObject.Kind == ReportObjectKind.SubreportObject)
                        SubreportObject subreportObject = (SubreportObject)reportObject;
                        ReportDocument subReportDocument = subreportObject.OpenSubreport(subreportObject.SubreportName);
                        SetDBLogonForReport(connectionInfo, subReportDocument);
    Hope this helps!!
    Regards,
    Shweta

  • After updating to Yosemite   Server, one client now has Access Denied error on file sharing.

    Just updated the law office from a Mavericks site to a Yosemite site. Everything is working fine except that one client now cannot connect to the file shares - Permission Denied, Contact your system administer error. I've looked through the permissions and even completed a Repair Permissions. What else can I do to get this client on-line with file sharing?

    Is the client connecting with the same credentials as the others? I tend to doubt it.

  • Windows server 2012 Data Center with VDI configuration error message ( The remote session was disconnected because there are no remote desktop license servers available)

    Dears,
    I have two windows server 2012 Data Center and I configured (Virtual Desktop Interface)VDI on it's.
    All my clients connected on both of servers by used Remote Desktop sessions ,5 months since.
    Currently,when the clients is connected on the both of servers they received the following error:
    "The remote session was disconnected because there are no remote desktop license servers available to provide license"
    Kindly note, I installed windows Licenses Server Data Center on the both of servers. 
    Regards.

    Hi,
    Please let us know if you have purchased RDS CALs and install it in your RD licensing server.
    Also, on RD Session host servers, please make sure that you have specified the license mode and point them to the RD licensing server.
    Remote Desktop Services Client Access Licenses (RDS CALs)
    http://technet.microsoft.com/en-us/library/cc753650.aspx
    RD Licensing Configuration on Windows Server 2012
    http://blogs.technet.com/b/askperf/archive/2013/09/20/rd-licensing-configuration-on-windows-server-2012.aspx
    Hope this helps.
    Jeremy Wu
    TechNet Community Support

Maybe you are looking for