ArgumentError for fresh gitlab-ee installation
This is a clean docker-compose based install of Gitlab-ee on Ubuntu 16.04 LTS.
The docker log:
Preparing services...
/opt/gitlab/embedded/bin/runsvdir-start: line 24: ulimit: pending signals: cannot modify limit: Operation not permitted
/opt/gitlab/embedded/bin/runsvdir-start: line 37: /proc/sys/fs/file-max: Read-only file system
Starting services...
Configuring GitLab package...
Configuring GitLab...
================================================================================
Recipe Compile Error in /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab-ee/recipes/default.rb
================================================================================
ArgumentError
-------------
wrong number of arguments (given 0, expected 1..2)
Cookbook Trace:
---------------
/opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/recipes/config.rb:21:in `from_file'
/opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/recipes/default.rb:26:in `from_file'
/opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab-ee/recipes/default.rb:18:in `from_file'
Relevant File Content:
----------------------
/opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/recipes/config.rb:
14: # See the License for the specific language governing permissions and
15: # limitations under the License.
16: #
17:
18: Gitlab[:node] = node
19:
20: if File.exists?('/assets/gitlab.rb')
21>> Gitlab.from_file('/assets/gitlab.rb')
22: end
23:
24: node.consume_attributes(Gitlab.generate_config(node['fqdn']))
25:
26: # If is EE package, load EE config
27: if defined?(GitlabEE) == 'constant'
28: node.consume_attributes(GitlabEE.generate_config)
29: end
30:
And the docker-compose.yml
file:
version: '2.1'
services:
web:
image: gitlab/gitlab-ee:9.1.2-ee.0
container_name: gitlab
restart: always
hostname: gitlab.example.com
environment:
GITLAB_OMNIBUS_CONFIG: |
external_url 'https://gitlab.example.com'
default['gitlab']['postgresql']['sql_replication_user'] = "gitlab_replicator"
default['gitlab']['postgresql']['wal_level'] = "replica"
nginx['redirect_http_to_https'] = true
nginx['ssl_certificate']= "/etc/letsencrypt/live/gitlab.example.com/fullchain.pem"
nginx['ssl_certificate_key'] = "/etc/letsencrypt/live/gitlab.example.com/privkey.pem"
nginx['custom_gitlab_server_config']="location ^~ /.well-known {\n alias /etc/letsencrypt/www/.well-known;\n}\n"
mattermost_nginx['redirect_http_to_https'] = true
mattermost_nginx['ssl_certificate']= "/etc/letsencrypt/live/mattermost.example.com/fullchain.pem"
mattermost_nginx['ssl_certificate_key'] = "/etc/letsencrypt/live/mattermost.example.com/privkey.pem"
mattermost_nginx['custom_gitlab_mattermost_server_config']="location ^~ /.well-known {\n alias /etc/letsencrypt/www/.well-known;\n}\n"
mem_limit: 7040M
volumes:
- config:/etc/gitlab
- logs:/var/log/gitlab
- data:/var/opt/gitlab
- /etc/letsencrypt:/etc/letsencrypt
ports:
- 80:80
- 443:443
- 22:22
networks:
- gitlab
links:
- elasticsearch
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:5.3.2
environment:
- cluster.name=gitlab-cluster
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
ulimits:
memlock:
soft: -1
hard: -1
nofile:
soft: 65536
hard: 65536
mem_limit: 1024M
cap_add:
- IPC_LOCK
volumes:
- elasticsearch:/usr/share/elasticsearch/data
ports:
- 127.0.0.1:9200:9200
networks:
- gitlab
volumes:
config:
driver: local
logs:
driver: local
data:
driver: local
elasticsearch:
driver: local
networks:
gitlab:
driver: bridge