Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Precondition Failed on Startup #268

Open
reststop opened this issue May 14, 2016 · 4 comments
Open

Precondition Failed on Startup #268

reststop opened this issue May 14, 2016 · 4 comments
Labels

Comments

@reststop
Copy link

reststop commented May 14, 2016

Receive the following upon restarting Buildasaur from within Xcode
Not sure how repeatable, yet.

Workaround has been to remove the Buildasaur directory from ~/Library/Application Support.

Log shows:

Buildasaur 1.0.0-b2 launched at 2016-05-14 00:54:50 +0000.
*
*
*

precondition failed: : file /Users/myself/buildasaur/buildasaur/BuildaGitServer/Base/BaseTypes.swift, line 38
    public func createServer(service: GitService, auth: ProjectAuthenticator?) -> SourceServerType {
        
        if let auth = auth {
            precondition(service.serviceType() == auth.service.serviceType())
        }
        
        return GitServerFactory.server(service, auth: auth)
    }
@reststop
Copy link
Author

reststop commented May 14, 2016

I have not yet checked to see if this is a branch change or a master change. Just filing an issue for a HEADS-UP since your assistance has been fantastic on pointing me to root causes.

It has happened 2 times. Both times, the only common thing I know happened, was syncing my local branch to the repository, and then doing a "run" in Xcode.

@czechboy0
Copy link
Member

Yeah, please see if that's something specific to the fork you're using. Also, if you could provide a sample project that reproduces it that'd be gold 👍

@reststop
Copy link
Author

I do have both of the offending ~/Library/Application Support/Buildasaur directories available.
In each case, I simply renamed the directory, and let Buildasaur recreate a new correct one.
Each of these was working at one point, then stopped working when I restarted Buildsasur.
I believe that both of the errant configurations were setup with a single syncer for the Buildasaur project.

I've included the 2nd one here. Be happy to provide the first one as well if it will help.
I have redacted any identifying info from the logs and config, replacing the username with "me" and hostnames with mycompany.

Buildasaur-two.zip

I looked through the files and didn't see anything out of the ordinary. Did a diff against the live directory and other than the UUIDs and usernames I redacted, there were no obvious differences.

@czechboy0
Copy link
Member

In ServerConfigs.json, I can see "user" : “me”, but the second set of quotes are an incorrect type. Did you do that when anonymizing the data or was it there before?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants