bflad / chef-stash

Chef Cookbook for Atlassian Stash
Other
37 stars 42 forks source link

preparing 4.0.0 release still in progress any eta on this? #123

Closed ramonskie closed 8 years ago

ramonskie commented 9 years ago

there is still teh notification of

We are preparing for 4.0.0 release which makes the git repo not stable for now. Please use cookbook from Supermarket for the time being.

i was wondering if you have any eta for this or do you need any help?

linc01n commented 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

ramonskie commented 8 years ago

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

linc01n commented 8 years ago

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.

ramonskie commented 8 years ago

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

ramonskie commented 8 years ago

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
ramonskie commented 8 years ago

bump

linc01n commented 8 years ago

hi @ramonskie

I would prefer https://github.com/linc01n/chef-stash/commit/14370fa2b0763cd165a8dd87a41e7994e53a927b

what do you think?

ramonskie commented 8 years ago

Yes that's much better didn't thought about that one

linc01n commented 8 years ago

@ramonskie 4.0.0 finally released! :tada:

ramonskie commented 8 years ago

:+1:

linc01n commented 8 years ago

Please report bug if you see any problems. Thanks