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

When try to build Corteza server in windows environemnt , build system fails because of some code does not compile or run correctly in windows. #1481

Closed
Githubuser338 opened this issue Oct 22, 2023 · 0 comments

Comments

@Githubuser338
Copy link

Githubuser338 commented Oct 22, 2023

Corteza Version :
2023.3.7

Environemnt :
OS : Windows 10
DB : SqlServer 2019
Go : 1.19

I am new to Go and Corteza and I don't really know if the solution provided is correct or not. But when building Corteza server in the development and editing environment of Windows (10), the building system encounters errors at several points:

Current Behavior:

  1. In the users.go file located in the path : corteza\server\system\commands and in line 124:
    if password, err = terminal.ReadPassword(syscall.Stdin); err != nil {
    When compiling with an error
    cannot use syscall.Stdin (variable of type "syscall".Handle) as int value in argument to terminal.ReadPassword
    will arise.

solution :
change code to:
if password, err = terminal.ReadPassword(int(os.Stdin.Fd())); err != nil {
and problem solved.

  1. When building the system, to find local languages, the path ../../locale is searched by default, which does not exist.
    solution :
    in the .env file, LOCALE_PATH=../locale should be set.

  2. When using the SQL Server driver, if intense is not the default and we have used named Instance, the program setup will fail during migration and the following error will be displayed.
    could not upgrade primary store: mssql: Invalid object name 'INSTANCENAME.information_schema.columns
    solution :
    When running boot_levels.go in the startup process of the program and when upgrading the database, an error occurred. In the SQL profile, I traced the executed commands and saw that to check the created tables and columns, the name of the instance came before information_schema, which caused error.just used default instance and problem solved. but it is not acceptable in production environment.

@Githubuser338 Githubuser338 changed the title When try to build Corteza server in windows environemnt , build system fails because of some code does not compile or run coorectly in windows. When try to build Corteza server in windows environemnt , build system fails because of some code does not compile or run correctly in windows. Oct 22, 2023
@Githubuser338 Githubuser338 closed this as not planned Won't fix, can't repro, duplicate, stale Oct 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant