Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Ilya 6 posts 95 karma points
    Feb 17, 2018 @ 11:33
    Ilya
    0

    Run Umbraco Site Locally. (need to clone from repository). Pls Help.

    Hello.

    My task is to fix some bugs on site, but firstly I need to copy from git project which is managed by Umbraco and run it locally on my laptop. I cloned the project to my computer and tried to run it and naturally I got a database related error i.e. if I understood correctly I need to create an exact copy of the original database locally and only then run the project?

    Question: Is it possible to create a copy of the database having access only to the repository in order to deploy the database to the local server later?

    Thanks a lot.

  • Rune Hem Strand 147 posts 911 karma points hq c-trib
    Feb 17, 2018 @ 13:15
    Rune Hem Strand
    100

    Hi Ilya

    Sounds like you're working with an Umbraco Cloud project, right?

    In that case you can find documentation on how to work locally right here Without knowing what error you're getting it's hard to be more specific but you should not be getting a db error at all. The way Umbraco Cloud is designed, you clone the project down, start it up and choose wether or not you want to restore content and media to your local clone as well. No need to fiddle around with db settings :)

    Hope that helps
    /rune

  • Ilya 6 posts 95 karma points
    Feb 17, 2018 @ 14:27
    Ilya
    0

    I cloned the repository using GitKraken, then opened the project via Visual Studio Code. Click open folder and select the project location. Pressed CTRL+F5 and I got this error.

    Server error in application'/'. When Stanley connected to the SQL server, an error occurred, I swear with the ST or Opel with the model. Server not found or unavailable. Beds that the example the name is correct and that SQL server is configured to allow Alan connection. (provider: SQL Network Interfaces, error: 26 - Error upon detection of the specified server or example) Description: Norton exception when the web request is running the current one. Learn the way the stack for more information about the error and where it originated in the code snippet.

    Exception details: system.Data.SqlClient.Sqlexception situation: when Stanley connects to SQL server, an error occurred, I swear with ST or Opel with sample. Server not found or unavailable. Beds that the example the name is correct and that SQL server is configured to allow Alan connection. (provider: SQL Network Interfaces, error: 26 - Error upon detection of the specified server or example)

    Source error:

    Norbert exception when a web request the execution of the current. Information about the origin and location of the exception can be obtained using the following track Stack Lacey.

    Track Stack:

    [Sqlexception (0x80131904) exception: when Stanley connects to SQL server, an error occurred, I swear with ST or Opel with sample. Server not found or unavailable. Beds that the example the name is correct and that SQL server is configured to allow Alan connection. (provider: SQL Network Interfaces, error: 26 - Error upon detection of the specified server or example)] System.Data.ProviderBase.DbConnectionPool.TryGetConnection(dbconnection owningObject, and, waitForMultipleObjectsTimeout Type uint32, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal and connection) +347 System.Data.ProviderBase.DbConnectionPool.TryGetConnection(dbconnection owningObject, and, TaskCompletionSource1 retry, DbConnectionOptions userOptions, DbConnectionInternal and connection) +117 System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(dbconnection owningConnection object, TaskCompletionSource1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal and connection) +258 System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(object dbconnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource1 retry, DbConnectionOptions userOptions) +314 System.Data.SqlClient.SqlConnection.TryOpenInner (retry TaskCompletionSource ' 1) +126 System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource1 retry) +255 System.Data.SqlClient.SqlConnection.Open () + 128 Umbraco.Core.Resistance.Faulthandling.< > CDisplayClass1.< ExecuteAction>b_ _ _ 0 () +15 Umbraco.Core.Resistance.Faulthandling.Retrypolicy policy.Executeaction method (Izm ' 1 function) + 391 Umbraco.Core.Resistance.Data base.OpenSharedConnection () + 77 Umbraco.Core.Resistance.Data base.ExecuteScalar (String sql, Object [] args) + 409 Umbraco.Core.Resistance.SqlSyntax.SqlServerSyntaxProvider.DoesTableExist (database DB, string tableName) +106 CDTech.Umbraco.Forms.DbTableCreator.CreateTableIfDoesntExists (db, T [] seed database) +195 CDTech.Umbraco.Forms.DbBootstrap.Initdb, specifying (ApplicationContext applicationContext) +503 CDTech.Umbraco.Forms.DbBootstrap.ApplicationInitialized (UmbracoApplicationBase umbracoApplication, ApplicationContext applicationContext) + 50 Umbraco.Core.ApplicationEventHandler.OnApplicationInitialized (UmbracoApplicationBase umbracoApplication, ApplicationContext applicationContext) +50 Umbraco.Core.CoreBootManager.0(IApplicationEventHandler x) + 381 Umbraco.Core.EnumerableExtensions.Foreach(ienumerable`1 items, action 1 action) +166 Umbraco.Core.CoreBootManager.Initialize () + 1104 Umbraco.Network.WebBootManager.Initialize () + 118 Umbraco.Core.UmbracoApplicationBase.Run the application(object sender, eventargs E) +246

    [HttpException (0x80004005): there was an error while Stanley was connecting to SQL server, swear with ST or Opel with sample. Server not found or unavailable. Beds that the example the name is correct and that SQL server is configured to allow Alan connection. (provider: SQL Network Interfaces, error: 26 - Error upon detection of the specified server or example)] System.Network.HttpApplicationFactory.EnsureAppStartCalledForIntegratedmode (httpcontext in context of the httpapplication application class) +535 System.Network.The httpapplication class.RegisterEventSubscriptionsWithIIs(intptr appcontext class, property, httpcontext context, methodinfo[] handlers) +166 System.Network.The httpapplication class.InitSpecial(HttpApplicationState state, methodinfo[] handlers, intptr appcontext class, property, httpcontext context) +169 System.Network.HttpApplicationFactory.GetSpecialApplicationInstance(intptr appcontext class, property, httpcontext context) +372 System.Network.Hosting.PipelineRuntime.InitializeApplication(intptr appcontext class) +329

    [HttpException (0x80004005): there was an error while Stanley was connecting to SQL server, swear with ST or Opel with sample. Server not found or unavailable. Beds that the example the name is correct and that SQL server is configured to allow Alan connection. (provider: SQL Network Interfaces, error: 26 - Error upon detection of the specified server or example)] System.Network.Httpruntime strings.FirstRequestInit (httpcontext property context) +525 System.Network.Httpruntime strings.EnsureFirstRequestInit (httpcontext property context) +118 System.Network.Httpruntime strings.ProcessRequestNotificationPrivate (iis7workerrequest waterproof, httpcontext context property) + 708

    Version information:Microsoft .Net platform, version: 4.0.30319; ASP.NET, version:4.7.2623.0

Please Sign in or register to post replies

Write your reply to:

Draft