{"action":"created","issue":{"url":"https://api.github.com/repos/go-gitea/gitea/issues/4286","repository_url":"https://api.github.com/repos/go-gitea/gitea","labels_url":"https://api.github.com/repos/go-gitea/gitea/issues/4286/labels{/name}","comments_url":"https://api.github.com/repos/go-gitea/gitea/issues/4286/comments","events_url":"https://api.github.com/repos/go-gitea/gitea/issues/4286/events","html_url":"https://github.com/go-gitea/gitea/issues/4286","id":334289170,"node_id":"MDU6SXNzdWUzMzQyODkxNzA=","number":4286,"title":"Migration from latest gogs (0.11.46.0418) is possible","user":{"login":"MegaphoneJon","id":1796012,"node_id":"MDQ6VXNlcjE3OTYwMTI=","avatar_url":"https://avatars3.githubusercontent.com/u/1796012?v=4","gravatar_id":"","url":"https://api.github.com/users/MegaphoneJon","html_url":"https://github.com/MegaphoneJon","followers_url":"https://api.github.com/users/MegaphoneJon/followers","following_url":"https://api.github.com/users/MegaphoneJon/following{/other_user}","gists_url":"https://api.github.com/users/MegaphoneJon/gists{/gist_id}","starred_url":"https://api.github.com/users/MegaphoneJon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MegaphoneJon/subscriptions","organizations_url":"https://api.github.com/users/MegaphoneJon/orgs","repos_url":"https://api.github.com/users/MegaphoneJon/repos","events_url":"https://api.github.com/users/MegaphoneJon/events{/privacy}","received_events_url":"https://api.github.com/users/MegaphoneJon/received_events","type":"User","site_admin":false},"labels":[{"id":474798688,"node_id":"MDU6TGFiZWw0NzQ3OTg2ODg=","url":"https://api.github.com/repos/go-gitea/gitea/labels/kind/docs","name":"kind/docs","color":"c2e0c6","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":13,"created_at":"2018-06-20T23:57:25Z","updated_at":"2018-09-29T12:50:30Z","closed_at":null,"author_association":"NONE","body":"The gitea documentation says you must upgrade from 0.9.146 of gogs, but (at least anecdotally) I'm able to upgrade from the latest version as of this writing (0.11.46.0418).  I may submit a PR to the docs after I've run this in production for a few weeks, but for now I want to write this up so others can find it if necessary.\r\n\r\n- Gitea version (or commit ref): 1.4.2+6-gcaee487 built with: bindata, sqlite\r\n- Git version: 2.15.2\r\n- Operating system: Alpine Linux 3.7.0\r\n- Database (use `[x]`):\r\n  - [ ] PostgreSQL\r\n  - [ ] MySQL\r\n  - [ ] MSSQL\r\n  - [x] SQLite\r\n- Can you reproduce the bug at https://try.gitea.io:\r\n  - [ ] Yes (provide example URL)\r\n  - [ ] No\r\n  - [x] Not relevant\r\n\r\n## Description\r\nI migrated from one Docker image to another.\r\n\r\nIn addition to the steps outlined in the [Upgrade from gogs](https://docs.gitea.io/en-us/upgrade-from-gogs/) doc, I also had to change every instance of `gogs` in my `conf/app.ini` file to `gitea`.  I also had to change my `PATH` (under `[database]`) to `/data/gitea/data/gitea.db` (the gogs container has symlinks from `/app` that gitea doesn't).  Also my `ROOT_PATH` (under `log`) changed from `/app/gogs/log` to `/data/gitea/log`.\r\n\r\nOnce I did that, I had gitea 1.0.2 working.  Two more changes I had to make owing to my newer gogs version:\r\n* I had to regenerate my `.ssh/authorized_keys` file (from the Web UI's admin panel).  Failure to do this resulted in the following error:\r\n```\r\nbash: /app/gogs/gogs: No such file or directory                                                          \r\nfatal: Could not read from remote repository.\r\n```\r\n* gogs generated a bunch of git hooks that reference the gogs binary.  You can delete them from the UI or the command line (see the `find` command at https://github.com/go-gitea/gitea/issues/3558#issuecomment-372429183).  If you don't delete them you'll receive the following error:\r\n```\r\nremote: ./hooks/pre-receive.d/pre-receive: line 2: /app/gogs/gogs: No such file or directory             \r\nTo ssh://git.example.com:10022/user/repo.git                                 \r\n ! [remote rejected]   master -> master (pre-receive hook declined) \r\n```\r\n\r\nFinally - SSH push/pulls didn't work properly for me even after doing all these things until I upgraded to version 1.4.  I couldn't upgrade directly - I assume this is related to #4424 - but I was able to go 1.0 » 11 » 1.2 » 1.3 » 1.4 painlessly.  Once I was on 1.4 everything worked properly."},"comment":{"url":"https://api.github.com/repos/go-gitea/gitea/issues/comments/425642766","html_url":"https://github.com/go-gitea/gitea/issues/4286#issuecomment-425642766","issue_url":"https://api.github.com/repos/go-gitea/gitea/issues/4286","id":425642766,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNTY0Mjc2Ng==","user":{"login":"Obihoernchen","id":453508,"node_id":"MDQ6VXNlcjQ1MzUwOA==","avatar_url":"https://avatars3.githubusercontent.com/u/453508?v=4","gravatar_id":"","url":"https://api.github.com/users/Obihoernchen","html_url":"https://github.com/Obihoernchen","followers_url":"https://api.github.com/users/Obihoernchen/followers","following_url":"https://api.github.com/users/Obihoernchen/following{/other_user}","gists_url":"https://api.github.com/users/Obihoernchen/gists{/gist_id}","starred_url":"https://api.github.com/users/Obihoernchen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Obihoernchen/subscriptions","organizations_url":"https://api.github.com/users/Obihoernchen/orgs","repos_url":"https://api.github.com/users/Obihoernchen/repos","events_url":"https://api.github.com/users/Obihoernchen/events{/privacy}","received_events_url":"https://api.github.com/users/Obihoernchen/received_events","type":"User","site_admin":false},"created_at":"2018-09-29T12:50:30Z","updated_at":"2018-09-29T12:50:30Z","author_association":"NONE","body":"Just upgraded latest Gogs 0.11.66 to Gitea 1.5.1 :+1: \r\n\r\nI copied my gogs mysql database, followed https://docs.gitea.io/en-us/upgrade-from-gogs/, edited my app.ini and upgraded from 1.0.2 > 1.1.4 > 1.2.3 > 1.3.3 > 1.4.3 > 1.5.1. A direct upgrade from 1.02 to 1.5.1 failed, so I upgraded step by step.\r\nAfterwards go to Admin panel and regenerate hooks, update ssh keys etc.\r\n\r\nSo far everything seems to work as expected :+1: \r\n"}}
{"actor":{"display_login":"Obihoernchen"}}