I try move to ubuntu from windows.
- Install bitbucket in ubuntu machine using .bin file.
- Copy `bitbucket home directory` to target directory.
- `$ pg_dump bitbucket > database.sql` in windows
- Edit set-bibucket-home.sh.
- restore database from database.sql directly.
Restart machine, the repository data can be viewed in web, but PR data lost.
- Delete bibucket database, create new one.
- `$ sudo -u postgres psql -U postgres -f database.sql` in ubuntu
Restart machine, the error occur.
---------------------------
Use stop and start script in ubuntu have no effect in my case, instead, I restart machine.