X3 SEED Folder installation problem with Login failed for user 'SEED'. : Erreur SQL Server

SOLVED

When loading the SEED folder in the Safe X3 management console, I get the error: Login failed for user 'SEED'.: Erreur SQL Server.  There was no opportunity to setup anything for this user, so I don't know how to make it install properly.  It went on to say it was completed but it received errors in the trace and the folder was not created when it finished.  Anyone else seen this?

Kelly Hamann

  • 0

    At folder import time the console runs a batch file when then runs a SQL script. This script is responsible for creating a database user called SEED, which correlates to a SCHEMA called SEED. My guess is that the script never created either, and thus you are unable to login with SEED.

    Within the console you can set the account used to interact with SQL. You should specify the sa or equivalent account there. At the same time, if the problem continues to happen you can run a SQL profiler trace to capture the real database error. Alternatively, if you press F4 inside the console you can see the global trace log for the console and it will give additional details as to the error.

    Hope this helps.

    Bob

  • 0 in reply to Delamater

    Hi,

    I hope the problem with special characters for SQL server user Password (i.e. sa user). while creating a database through console every time X3 will check the SQL sa user account login credentials.

    Regards,

    Siva

  • 0 in reply to SivaKishna

    Thank you for the inputs.  The program did create many of the tables in the system.  The problem seems to just pop up on a few of the areas in the program.  For example:

    Everything seemed to be working fine (no errors) up to this point.  One thing I noticed is that there is no Native Client 11.0 setup.  It is a 2008 SQL server and it uses Native Client 10.0.  Not sure if this is relevant or not.  The SEED user was created in the process.  

    10/12/2014 12:23:57 PM : INFO  - 120 tables loaded - 10% - AOBJSEL.dat

    10/12/2014 12:34:13 PM : INFO  - 240 tables loaded - 20% - AYTADVPAR.dat

    10/12/2014 12:37:41 PM : WARN  - Warning ! Following table could not be loaded into database : BPSHISUPLN. (LibAdmAdonix.RunValFilImpFldNT)

    10/12/2014 12:37:41 PM : INFO  - Erreur no 76

    [Microsoft][SQL Server Native Client 11.0][SQL Server]Login failed for user 'SEED'. : Erreur SQL Server

    10/12/2014 12:40:26 PM : INFO  - 360 tables loaded - 30% - CFGLNK.dat

    10/12/2014 12:46:05 PM : INFO  - 480 tables loaded - 40% - EFASMTC.dat

    10/12/2014 12:52:17 PM : INFO  - 600 tables loaded - 50% - GJOURNAL.dat

    It goes on with many successful changes and then comes up with the following:

    10/12/2014 1:31:05 PM : INFO  - Checking user script file c:\Sage\SAGEX3V7\X3V7\folders\SEED\init_console.cmd on server. (LibAdmAdonix.CreateFolderDef)

    10/12/2014 1:31:05 PM : INFO  - Launching database cleaning script file. (LibAdmAdonix.CreateFolderDef)

    10/12/2014 1:31:06 PM : INFO  - Initializing the supervisor (LibAdmAdonix.CreateFolderDef)

    10/12/2014 1:31:08 PM : WARN  - Error Connecting for pgm processes (LibAdmAdonix.CreateFolderDef)

    10/12/2014 1:31:08 PM : WARN  - Error when initializing the Supervisor. (LibAdmAdonix.CreateFolderDef)

    10/12/2014 1:31:08 PM : WARN  - ERR_CANT_CONNECT

    can't get key [message.error.cant.connect] in the not loaded resource [com.adonix.x3.comm.client.adonix.CAdonix]. Cause:[Bundle com.adonix.x3.comm.client.adonix.CAdonix not found for locale en_US by classloader Console]. [Microsoft][SQL Server Native Client 11.0][SQL Server]Login failed for user 'X3'. : ini_com:Erreur SQL Server!(2)

    (LibAdmAdonix.CreateFolderDef)

    10/12/2014 1:31:08 PM : INFO  - Application setup finished.

    10/12/2014 1:31:08 PM : INFO  - [End]

    10/12/2014 1:35:02 PM : INFO  - Loading solution...

  • 0

    Any ideas from anyone on what would cause the error below?  "Error Connecting for pgm processes"

    I Removed the SEED user and tried the installation again.  This time it went all the way to the step below before it received the error that it could not connect.  The X3 folder exists and works properly.

    10/18/2014 1:14:19 PM : INFO  - Launching database cleaning script file. (LibAdmAdonix.CreateFolderDef)

    10/18/2014 1:14:20 PM : INFO  - Initializing the supervisor (LibAdmAdonix.CreateFolderDef)

    10/18/2014 1:14:22 PM : WARN  - Error Connecting for pgm processes (LibAdmAdonix.CreateFolderDef)

    10/18/2014 1:14:22 PM : WARN  - Error when initializing the Supervisor. (LibAdmAdonix.CreateFolderDef)

    10/18/2014 1:14:22 PM : WARN  - ERR_CANT_CONNECT

    can't get key [message.error.cant.connect] in the not loaded resource [com.adonix.x3.comm.client.adonix.CAdonix]. Cause:[Bundle com.adonix.x3.comm.client.adonix.CAdonix not found for locale en_US by classloader Console]. [Microsoft][SQL Server Native Client 11.0][SQL Server]Login failed for user 'X3'. : ini_com:Erreur SQL Server!(2)

    (LibAdmAdonix.CreateFolderDef)

    10/18/2014 1:14:23 PM : INFO  - Application setup finished.

  • 0 in reply to KellyHamann

    I know the technical reason why you are getting the error, perhaps it will give you a clue to help move the story forward, not sure. Here it goes:

    I mentioned this up front, but it bears repeating. The account that you have set in the console is important here as it seems the script we use to create all the database objects isn't completing. So, ensure that you are using the sa or equivalent account for this process for now. 

    Having said that, you should examing where in the process it failed by first looking at the security. In SQL you should see a login for the X3 user. That login is tied to a database user, role and schema. If you don't have the X3 user on your server then it could mean that you also don't have the schema, or the database roles that you should have. This is what you can check first. 

    To check if you have the server login:

    SELECT principal_id, name, type_desc, is_disabled, create_date, default_database_name

    FROM sys.server_principals

    WHERE name = 'X3'

    To check if you have the database user and the roles:

    SELECT name, authentication_type, create_date, type_desc, default_schema_name

    FROM sys.database_principals

    WHERE name LIKE 'X3%'

    To augment the discussion even further you can find the scripts we user to create the role, database, users and in the <drive>\sage\sagex3v7\x3runtime\runtime\tmp directory. The script in question for you is the adcrapss7_x3.sql script. I think when it ran it must have failed for you at some point. If you open the script up it will become evident why it is critical as it links everything together from a security standpoint. 

    Also, my experience with troubleshooting these kinds of things is that you should troubleshoot the first error you get first. So, in your case, learning why the table you mentioned before didn't load into the database correctly is going to be crucial to the overall health. You might try and isolate load process, mimic it and decipher the root cause.  

    Hope this helps. 

  • 0 in reply to Delamater

    Thank you for the response.  At least I am leaning about the "innards" of X3 installations.  I first ran the queries you noted and all the results match except there is no column "authentication_type" in sys.database_principals on this version of SQL.

    I then tested the script you noted for X3 and it passed.  In reviewing it, I could see no reason it would fail.  I'm starting to believe that it has something to do with SQL 2008.  I've been considering creating a SEED71 folder instead and see if that works, but I don't see any reason it would not fail in the same fashion.

  • 0 in reply to KellyHamann
    verified answer

    Make a new connection to sql, login with the "X3" user and using the password tiger. Does it work?

  • 0 in reply to Delamater

    It will not let me login to Management Studio:

    Is that what you meant?

    Kelly

  • 0 in reply to KellyHamann

    I tried it again with upper case "X3" and it did log in successfully