Quantcast
Viewing latest article 17
Browse Latest Browse All 39

Commented Unassigned: Issues with admin suite [1360]

I have installed postgreSQL 9.6.1 and I am able to connect to the database via psql and pgAdmin but I have no luck with admin suite.

I am getting the error message: Failed to connect to database!
MLifter.Generics.ServerOfflineException: Eine Ausnahme vom Typ "´MLifter.Generics.ServerOfflineException" wurde ausgelöst.
bei MLifter.BusinessLayer.FolderIndexEntry.Login(IUser user)
bei MLifter.BusinessLayer.LearningModulesIndex.GetFolderOfConnection(IConnectionString connection)
be SecurityAdminSuite.Facade.ctor()

In DebugView of sysinternal I am getting this message if I start admin suite:

[2216] ds\security\smartscreen\common\core\src\script_host.cpp(51)\smartscreen.exe!00007FF7030C5697: (caller: 00007FF7030C5DD8) Exception(1) tid(1c04) 80070001 Unzulässige Funktion.
[2216] Msg:[Unable to get property 'substr' of undefined or null reference - TypeError: Unable to get property 'substr' of undefined or null reference
[2216] at ShellCallbacks.isFileSupported (Unknown script code:1:2413)
[2216] at ShellCallbacks.prototype.getSamplingRate (Unknown script code:1:2988)
[2216] at Anonymous function (Unknown script code:1:925)
[2216] at Array.prototype.reduce (native code)
[2216] at CallbacksBase.prototype.getSamplingRates (Unknown script code:1:900)
[2216] at CallbacksBase.prototype.filterEvents (Unknown script code:1:2036)
[2216] at filterEvents (Unknown script code:1:43)
[2216] at _dispatch (Unknown script code:13:21)]
[4388] shell\explorer\taskband2\taskband2.cpp(4148)\Explorer.EXE!00007FF74C07792A: (caller: 00007FFEC99B7DE3) ReturnHr(350) tid(21c4) 80004005 Unbekannter Fehler
[932] onecore\base\appmodel\resourcepolicy\gameconfigstore\server\gameconfigstoreserver.cpp(535)\resourcepolicyserver.dll!00007FFEC66065EB: (caller: 00007FFEC6609C7B) LogHr(303) tid(1620) 80070002 Das System kann die angegebene Datei nicht finden.
[932] onecore\base\appmodel\resourcepolicy\gameconfigstore\server\gameconfigstoreserver.cpp(1999)\resourcepolicyserver.dll!00007FFEC6609C9D: (caller: 00007FFEC66092AC) LogHr(304) tid(1620) 80070002 Das System kann die angegebene Datei nicht finden.
[932] onecore\base\appmodel\resourcepolicy\gameconfigstore\server\gameconfigstoreserver.cpp(2147)\resourcepolicyserver.dll!00007FFEC660A246: (caller: 00007FFEC66092BD) LogHr(305) tid(1620) 80070490 Element nicht gefunden.
[932] onecore\base\appmodel\resourcepolicy\gameconfigstore\server\gameconfigstorerpcserver.cpp(437)\resourcepolicyserver.dll!00007FFEC66045AC: (caller: 00007FFEC99B7DE3) LogHr(306) tid(1620) 80070490 Element nicht gefunden.
[4388] onecore\base\appmodel\resourcepolicy\gameconfigstore\client\gameconfigstoreclient.cpp(104)\resourcepolicyclient.dll!00007FFEC6AC976C: (caller: 00007FFEB33986C3) LogHr(46) tid(1e24) 80070490 Element nicht gefunden.
[4388] shell\explorer\taskband2\taskband2.cpp(4148)\Explorer.EXE!00007FF74C07792A: (caller: 00007FFEC99B7DE3) ReturnHr(351) tid(21c4) 80004005 Unbekannter Fehler

My gp_hga.conf contains:


# TYPE DATABASE USER CIDR-ADDRESS METHOD

# IPv4 local & remote connections:
host all all 127.0.0.1/32 trust
host all all 0.0.0.0/0 trust
# IPv6 local connections:
host all all ::1/128 trust
host all all ::0/0 trust

This should allow alle connections from ip v4 and ip v6.

What can be the reason that admin suite cannot connect to the database?
Comments: ** Comment from web user: rupp0000 **

I changed no the 'SQL' into 'sql' and I was able to create the function.

Then I was able to start the admin suite.

Thank you for the hint to the script.

Please adapt the SQL script and change the 'SQL' into 'sql'.

Here is the whole part for the GetUserList function which works:

```
CREATE OR REPLACE FUNCTION "GetUserList"() RETURNS SETOF "UserStruct" AS $$
SELECT username, user_type FROM "UserProfiles" WHERE user_type != 'LocalDirectoryAuthentication';
$$ LANGUAGE 'sql' SECURITY DEFINER;
```


Viewing latest article 17
Browse Latest Browse All 39

Trending Articles