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
Repo migration fails on Postgres #141
Comments
Thanks for your feedback and locating the issue, I'm notifying @lunny here, he's the author of xorm. |
@tsigo, Which repository did you import? I have tested for importing https://github.com/go-xorm/xorm.git and https://github.com/gogits/gogs.git via postgres v9.3.2 on Mac OSX 10.9. Both are OK. |
My xorm's reversion is HEAD 8a1f48e |
@lunny Same xorm revision as you. It seems to fail with all of the projects I tried in my profile here on GitHub. Also just tried gogits/gogs itself and got the same error. |
Postgres configuration seems ok. root=# SELECT NOW();
now
------------------------------
2014-04-29 22:48:58.53123-04 Added some debug output to https://gist.github.com/tsigo/3aa3e705889c227319ec First output after the marking is You can see the actual problem on line 52 of that gist. For some reason it gets the wrong value and then immediately right after gets the correct one. |
I will |
I have upgraded postgres from 9.3.2 to 9.3.4 and create a new database. And I tested import https://github.com/go-xorm/xorm.git via private or mirror. All tests are ok. |
I didn't. They were all public repos so they shouldn't need it, right? On Tuesday, April 29, 2014, Lunny Xiao notifications@github.com wrote:
|
Using postgresql on Fedora 20 here and importing public repos works great for me with the latest master. |
Any progress on this issue? |
No change. If no one else can duplicate it I guess you can close this. On Thursday, May 1, 2014, 无闻 notifications@github.com wrote:
|
I've tested on my Mac and I reproduced this issue. @lunny (clone https://github.com/gpmgo/gopm.git) exactly the same system and version, is it the issue only happens on Mac? |
@tsigo good news, try |
@tsigo You are welcome! |
hi, the same problem, An error is occurred : pq: date/time field value out of range: "0000-12-31 20:00:00" gogs version: Application Version: 0.4.3.0610 Alpha i try:
nothing work. i try:
nothing work. thanks, great project!! :) |
OK. @bit4bit, I will test this. |
Same problem with 0.4.2.0605 Alpha and psql (9.3.5)
|
I'm getting this on issue creation. Let me know if I should file a new bug.
|
@chumpalump does |
Updated xorm and gogs, and now I get a 200. So, xorm problem is solved. Oddly, the submission results in json being returned, not html.
For reference:
...
|
From code.gitea.io/go-sdk/gitea To code.gitea.io/sdk/gitea
When running Gogs using a Postgres database, I'm unable to migrate a repository from GitHub. I get the following error:
An error is occurred : pq: date/time field value out of range: "0000-12-31 20:00:00"
I tried debugging this myself and got as far as the problem being related to xorm, specifically the auto-updating
created
and/orupdated
fields, but with my limited Go knowledge, couldn't get much further.The text was updated successfully, but these errors were encountered: