Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
omnibus-heptapod
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
heptapod
omnibus-heptapod
Commits
da166f67
Commit
da166f67
authored
9 years ago
by
Jose Torres
Browse files
Options
Downloads
Patches
Plain Diff
Adding pg_trgm fix to common installation problems.
parent
8fd48955
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
doc/common_installation_problems/README.md
+35
-0
35 additions, 0 deletions
doc/common_installation_problems/README.md
with
35 additions
and
0 deletions
doc/common_installation_problems/README.md
+
35
−
0
View file @
da166f67
...
...
@@ -364,6 +364,41 @@
of GitLab and the proxy headers set in package by default are incorrect
for your environment.
### Extension missing pg_trgm
When upgrading to GitLab 8.6 PostgreSQL requires the `
pg_trgm
` extension. While it should be handled by the upgrade
process you might encounter a migration error which also displays a 500 server error. Its worth noting that it usually
happens on instances that have external database connections.
To fix this issue you'll need access to `
psql
` as superuser. Then you can install the extension and run migrations
again.
```
# Access as superuser
sudo -u gitlab-psql /opt/gitlab/embedded/bin/psql -h /var/opt/gitlab/postgresql -d gitlabhq_production
# Add extension
CREATE EXTENSION pg_trgm;
# Exit psql
\q
# Now run migrations again
sudo gitlab-rake db:migrate
```
If using Docker you first need to access your container then run the commands above and finally restart the container.
```
# Access Container
docker exec -it gitlab bash
# Run commands above
# Restart container
docker restart gitlab
``
`
See
[
Change the default proxy headers section of nginx doc
][]
for details on
how to override the default headers.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment