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

Failed to create environment #13

Closed
zhj-hx opened this issue Aug 2, 2021 · 11 comments
Closed

Failed to create environment #13

zhj-hx opened this issue Aug 2, 2021 · 11 comments
Labels
bug Something isn't working

Comments

@zhj-hx
Copy link

zhj-hx commented Aug 2, 2021

create environment error

info: Failed to create environment
截屏2021-08-02 上午11 20 13

@zhj-hx zhj-hx added the bug Something isn't working label Aug 2, 2021
@tianzhou
Copy link
Collaborator

tianzhou commented Aug 2, 2021

@zhj-hx could you please describe the reproduce step? I tried a brand new installation, but couldn't reproduce it.

Also, are you able to create other resources like instance, issues?

@zhj-hx
Copy link
Author

zhj-hx commented Aug 2, 2021

https://github.com/bytebase/bytebase#run-on-localhost8080
I found that this phenomenon occurs when I install bytebase in my mac, the installation on centos7 is correct。my mac version is Catalina 10.15.7, I don't know if it is related to the system。

@zhj-hx
Copy link
Author

zhj-hx commented Aug 2, 2021

Another question, how to manage instance, database,project,how to delete custom objects
@tianzhou

@tianzhou
Copy link
Collaborator

tianzhou commented Aug 2, 2021

https://github.com/bytebase/bytebase#run-on-localhost8080
I found that this phenomenon occurs when I install bytebase in my mac, the installation on centos7 is correct。my mac version is Catalina 10.15.7, I don't know if it is related to the system。

Let's see if reset the data works, could you please remove the files under ~/.bytebase/data and restart?

@tianzhou
Copy link
Collaborator

tianzhou commented Aug 2, 2021

Another question, how to manage instance, database,project,how to delete custom objects
@tianzhou

how to manage instance, database, project

Our doc doesn't specifically address this, but I would recommend you to read the data model first https://docs.bytebase.com/concepts/data-model. If you still have trouble using Bytebase, then it's probably a failure in our UX since we want the product to be self-explained... And please feel to reply with the specific task you have trouble to complete.

how to delete custom objects

Bytebase doesn't support deleting objects. It only supports "Archive" https://docs.bytebase.com/features/archive

@zhj-hx
Copy link
Author

zhj-hx commented Aug 2, 2021

https://github.com/bytebase/bytebase#run-on-localhost8080
I found that this phenomenon occurs when I install bytebase in my mac, the installation on centos7 is correct。my mac version is Catalina 10.15.7, I don't know if it is related to the system。

Let's see if reset the data works, could you please remove the files under ~/.bytebase/data and restart?

@tianzhou I tried to delete data and restart it, still couldn't be created Environment

@tianzhou
Copy link
Collaborator

tianzhou commented Aug 2, 2021

https://github.com/bytebase/bytebase#run-on-localhost8080
I found that this phenomenon occurs when I install bytebase in my mac, the installation on centos7 is correct。my mac version is Catalina 10.15.7, I don't know if it is related to the system。

Let's see if reset the data works, could you please remove the files under ~/.bytebase/data and restart?

@tianzhou I tried to delete data and restart it, still couldn't be created Environment

What if you run with --debug mode and see if it emits some clue?

docker run --init --name bytebase --restart always --publish 8080:8080 --volume ~/.bytebase/data:/var/opt/bytebase bytebase/bytebase:0.3.0 --data /var/opt/bytebase --host http://localhost --port 8080 --debug

@zhj-hx
Copy link
Author

zhj-hx commented Aug 2, 2021

@tianzhou debug mode
log:
{"time":"2021-08-02T09:18:24Z","method":"POST","uri":"/api/environment","status":500,"error":"code=500, message=Failed to create environment, internal=sql: Rows are closed"}

@tianzhou
Copy link
Collaborator

tianzhou commented Aug 3, 2021

@tianzhou debug mode
log:
{"time":"2021-08-02T09:18:24Z","method":"POST","uri":"/api/environment","status":500,"error":"code=500, message=Failed to create environment, internal=sql: Rows are closed"}

Seems like a bug on our end, however, we have trouble to reproduce this and if possible could you email us at support@bytebase.com. We will follow up with you offline with this issue as well as several others you raised. Thanks.

@tianzhou
Copy link
Collaborator

tianzhou commented Sep 9, 2021

@zhj-hx we still have trouble reproducing it. Do you still encounter the issue with the latest 0.5.0 version?

@tianzhou
Copy link
Collaborator

Close it for now. Feel free to re-open if you can still reproduce in the latest release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants
@tianzhou @zhj-hx and others