Inedo Community Forums Forums
    • Recent
    • Tags
    • Popular
    • Login

    Welcome to the Inedo Forums! Check out the Forums Guide for help getting started.

    If you are experiencing any issues with the forum software, please visit the Contact Form on our website and let us know!

    buildmaster linux docker install: sa login failures

    Scheduled Pinned Locked Moved Support
    dockerlinuxbuildmastercentos
    3 Posts 3 Posters 15 Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • MaxCasconeM Offline
      MaxCascone
      last edited by MaxCascone

      I'm following the instructions to install BuildMaster on a CentOS VM: https://docs.inedo.com/docs/installation-linux-docker-guide

      I've got the two containers going, but the BuildMaster container keeps failing at around 20 seconds up. docker logs buildmaster shows a login error for the SA:

       $> d logs buildmaster
      Attempting to use shared configuration for BuildMaster.
      Shared configuration file not found at /etc/inedo/BuildMaster.config.
      No encryption key is configured. Credentials will be stored in plain text.
      BuildMaster version is 7.0.14.5.
      Current DB schema version is unknown.
      Unhandled exception. Microsoft.Data.SqlClient.SqlException (0x80131904): Cannot open database "BuildMaster" requested by the login. The login failed.
      Login failed for user 'sa'.
      

      The docker commands I'm running are verbatim from the docs except the password:

      docker run --name inedo-sql \
        -e 'ACCEPT_EULA=Y' -e 'MSSQL_SA_PASSWORD=redacted' \
        -e 'MSSQL_PID=Express' --net=inedo --restart=unless-stopped \
        -d mcr.microsoft.com/mssql/server:2019-latest
      
      docker exec -it inedo-sql /opt/mssql-tools/bin/sqlcmd \
        -S localhost -U SA -P 'redacted' \
        -Q 'CREATE DATABASE [ProGet] COLLATE SQL_Latin1_General_CP1_CI_AS'
      
      docker run -d --name=buildmaster --restart=unless-stopped \
        -v buildmaster-artifacts:/var/buildmaster/artifacts \
        -p 80:80 --net=inedo \
        -e BUILDMASTER_SQL_CONNECTION_STRING='Data Source=inedo-sql; Initial Catalog=BuildMaster; User ID=sa; Password=redacted' \
        proget.inedo.com/productimages/inedo/buildmaster:latest
      

      Any help is appreciated! Thanks!

      UPDATE after all this staring at it, I noticed an issue right after posting this: The database created is [ProGet], i'm assuming it should be [BuildMaster]. Will follow up after trying.

      UPDATE 2: Yep, that's it. It's up and running now after changing the second command to be

      docker exec -it inedo-sql /opt/mssql-tools/bin/sqlcmd \
        -S localhost -U SA -P 'redacted' \
        -Q 'CREATE DATABASE [BuildMaster] COLLATE SQL_Latin1_General_CP1_CI_AS'
      
      1 Reply Last reply Reply Quote 0
      • rhessingerR Offline
        rhessinger inedo-engineer
        last edited by

        @mcascone said in buildmaster linux docker install: sa login failures:

        docker exec -it inedo-sql /opt/mssql-tools/bin/sqlcmd
        -S localhost -U SA -P 'redacted'
        -Q 'CREATE DATABASE [ProGet] COLLATE SQL_Latin1_General_CP1_CI_AS'

        Hi @mcascone,

        This line has the issue. You created a database named [ProGet] instead of a database name [BuildMaster] as you stated in the connection string on the third command.

        Thanks,
        Rich

        Products Engineer, Inedo

        O 1 Reply Last reply Reply Quote 1
        • O Offline
          olenevivienne9025_2473 @rhessinger
          last edited by olenevivienne9025_2473

          @rhessinger said in buildmaster linux docker install: sa login failures:

          @mcascone slope game said in buildmaster linux docker install: sa login failures:

          docker exec -it inedo-sql /opt/mssql-tools/bin/sqlcmd
          -S localhost -U SA -P 'redacted'
          -Q 'CREATE DATABASE [ProGet] COLLATE SQL_Latin1_General_CP1_CI_AS'

          Hi @mcascone,

          This line has the issue. You created a database named [ProGet] instead of a database name [BuildMaster] as you stated in the connection string on the third command.

          Thanks,
          Rich

          Thank you very much for the explanation. It works now.

          1 Reply Last reply Reply Quote 0

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          • 1 / 1
          • First post
            Last post
          Inedo Website Home • Support Home • Code of Conduct • Forums Guide • Documentation