Closed ramonskie closed 8 years ago
Hi @ramonskie , I just moved to a new country in Aug. So I didn't have much time for the project. Now I'm almost settled and I'm starting to work on the project again.
I'm running different kind of test on the project. Since our 4.0 release will change the default database to postgres, I'm testing different upgrade scenarios.
And at the same time Atlassian rename the project to bitbucket which create more problems. I've paused for a few weeks to wait for the 4.0.3 release which fixes this.
I've just found this is causing problems when people choose to use openjdk or a different version of jdk.
Also in the setenv.sh
they've removed MaxPermSize
which caused issue in the past. #84
Hopefully I can release our 4.0 cookbook this week.
When I'm upgrading from 3.10
to 4.1
, I lost all my repos. It gives me a You have an empty repository
message.
I need help to reproduce and fix this issue.
Thanks @ramonskie
i have not seen such issue and i think you should not handle the migration from mysql to postgres in this cookbook i think users should do this by just doing a export/import or use the database migration wizard https://confluence.atlassian.com/bitbucketserver/connecting-bitbucket-server-to-an-external-database-776640378.html
I am not handling the migration. It is both postresql. The db data is fine. I still have the login and project key. I just lost the git repositories.
correction i see the same issues from 3.10 to 4.1 the data of the git repo is gone
this has todo with the shared directory because now we have 2 shared directory /var/atlassian/application-data/stash /var/atlassian/application-data/bitbucket
and this should be renamed or there should be no specific named directory at all see https://github.com/bflad/chef-stash/blob/master/attributes/default.rb#L6 https://github.com/bflad/chef-stash/blob/master/recipes/configuration.rb#L18
i have created a dirty hack for now do not know it this is a pull request worthy
configuration.rb
execute 'move files' do
command 'mv /var/atlassian/application-data/stash/shared/* /var/atlassian/application-data/bitbucket/shared/'
only_if { ::File.directory?('/var/atlassian/application-data/stash/shared/') }
notifies :delete, "file[#{node['stash']['home_path']}/shared/stash-config.properties]"
notifies :delete, 'directory[/var/atlassian/application-data/stash/shared]', :delayed
notifies :run, 'execute[chown]'
end
execute 'chown' do
command "chown -R #{node['stash']['user']}:#{node['stash']['user']} /var/atlassian/application-data/bitbucket/shared/"
action :nothing
end
directory('/var/atlassian/application-data/stash/shared') do
action :nothing
notifies :delete, "file[#{node['stash']['home_path']}/shared/stash-config.properties]"
end
bump
hi @ramonskie
I would prefer https://github.com/linc01n/chef-stash/commit/14370fa2b0763cd165a8dd87a41e7994e53a927b
what do you think?
Yes that's much better didn't thought about that one
@ramonskie 4.0.0
finally released! :tada:
:+1:
Please report bug if you see any problems. Thanks
there is still teh notification of
i was wondering if you have any eta for this or do you need any help?