Page shows 500 Whoops, something went wrong on our end

I update gitlab-7.1.1 to gitlab-8.6.5-ce. all services are running but to access the page shows 500

Whoops, something went wrong on our end. please I need help

1 Like

Hi

Please run rake tests and see if any issues in the installation.

$sudo gitlab-rake gitlab:check --trace
$sudo gitlab-rake db:migrate:status --trace

$gitlab-ctl tail (see if any errors in logs mainly in pproduction log and nginx log)

1 Like

my friend this is the result of logs

Command Output****

gitlab-rake db:migrate:status --trace

** Invoke db:migrate:status (first_time)
** Invoke environment (first_time)
** Execute environment
** Invoke db:load_config (first_time)
** Execute db:load_config
** Execute db:migrate:status

database: gitlabhq_production

Status Migration ID Migration Name

up 20121220064453 Init schema
up 20130102143055 Rename owner to creator for project
up 20130110172407 Add public to project
up 20130123114545 Add issues tracker to project
up 20130125090214 Add user permissions
up 20130131070232 Remove private flag from project
up 20130206084024 Add description to namsespace
up 20130207104426 Add description to teams
up 20130211085435 Add issues tracker id to project
up 20130214154045 Rename state to merge status in milestone
up 20130218140952 Add state to issue
up 20130218141038 Add state to merge request
up 20130218141117 Add state to milestone
up 20130218141258 Convert closed to state in issue
up 20130218141327 Convert closed to state in merge request
up 20130218141344 Convert closed to state in milestone
up 20130218141444 Remove merged from merge request
up 20130218141507 Remove closed from issue
up 20130218141536 Remove closed from merge request
up 20130218141554 Remove closed from milestone
up 20130220124204 Add new merge status to merge request
up 20130220125544 Convert merge status in merge request
up 20130220125545 Remove merge status from merge request
up 20130220133245 Rename new merge status to merge status in milestone
up 20130304104623 Add state to user
up 20130304104740 Convert blocked to state
up 20130304105317 Remove blocked from user
up 20130315124931 User color scheme
up 20130318212250 Add snippets to features
up 20130319214458 Create forked project links
up 20130323174317 Add private to snippets
up 20130324151736 Add type to snippets
up 20130324172327 Change project id to null in snipepts
up 20130324203535 Add type value for snippets
up 20130325173941 Add notification level to user
up 20130326142630 Add index to users authentication token
up 20130403003950 Add last activity column into project
up 20130404164628 Add notification level to user project
up 20130410175022 Remove wiki table
up 20130419190306 Allow merges for forks
up 20130506085413 Add type to key
up 20130506090604 Create deploy keys projects
up 20130506095501 Remove project id from key
up 20130522141856 Add more fields to service
up 20130528184641 Add system to notes
up 20130611210815 Increase snippet text column size
up 20130613165816 Add password expires at to users
up 20130613173246 Add created by id to user
up 20130614132337 Add improted to project
up 20130617095603 Create users groups
up 20130621195223 Add notification level to user group
up 20130622115340 Add more db index
up 20130624162710 Add fingerprint to key
up 20130711063759 Create project group links
up 20130804151314 Add st diff to note
up 20130809124851 Add permission check to user
up 20130812143708 Add import url to project
up 20130819182730 Add internal ids to issues and mr
up 20130820102832 Add access to project group link
up 20130821090530 Remove deprecated tables
up 20130821090531 Add internal ids to milestones
up 20130909132950 Add description to merge request
up 20130926081215 Change owner id for group
up 20131005191208 Add avatar to users
up 20131009115346 Add confirmable to users
up 20131106151520 Remove default branch
up 20131112114325 Create broadcast messages
up 20131112220935 Add visibility level to projects
up 20131129154016 Add archived to projects
up 20131130165425 Add color and font to broadcast messages
up 20131202192556 Add event fields for web hook
up 20131214224427 Add hide no ssh key to users
up 20131217102743 Add recipients to service
up 20140116231608 Add website url to users
up 20140122112253 Create merge request diffs
up 20140122114406 Migrate mr diffs
up 20140122122549 Remove m rdiff fields
up 20140125162722 Add avatar to projects
up 20140127170938 Add group avatars
up 20140209025651 Create emails
up 20140214102325 Add api key to services
up 20140304005354 Add index merge request diffs on merge request
up 20140305193308 Add tag push hooks to project hook
up 20140312145357 Add import status to project
up 20140313092127 Migrate already imported projects
up 20140407135544 Fix namespaces
up 20140414131055 Change state to allow empty merge request diffs
up 20140415124820 Limits to mysql
up 20140416074002 Add index on iid
up 20140416185734 Index on current sign in at
up 20140428105831 Add notes index updated at
up 20140502115131 Add repo size to db
up 20140502125220 Migrate repo size
up 20140611135229 Add position to merge request
up 20140625115202 Create users star projects
up 20140729134820 Create labels
up 20140729140420 Create label links
up 20140729145339 Migrate project tags
down 20140729152420 Migrate taggable labels
down 20140730111702 Add index to labels
down 20140903115954 Migrate to new shell
down 20140907220153 Serialize service properties
down 20140914113604 Add members table
down 20140914145549 Migrate to new members model
down 20140914173417 Remove old member tables
down 20141006143943 Move slack service to webhook
down 20141007100818 Add visibility level to snippet
down 20141118150935 Add audit event
down 20141121133009 Add timestamps to members
down 20141121161704 Add identity table
down 20141205134006 Add locked at to merge request
down 20141216155758 Create doorkeeper tables
down 20141217125223 Add owner to application
down 20141223135007 Add import data to project table
down 20141226080412 Add developers can push to protected branches
down 20150108073740 Create application settings
down 20150116234544 Add home page url for application settings
down 20150116234545 Add gitlab access token to user
down 20150125163100 Add default branch protection setting
down 20150205211843 Add timestamps to identities
down 20150206181414 Add index to created at
down 20150206222854 Add notification email to user
down 20150209222013 Add missing index
down 20150211172122 Add template to service
down 20150211174341 Allow null in services project
down 20150213104043 Add twitter sharing enabled to application settings
down 20150213114800 Add hide no password to user
down 20150213121042 Add password automatically set to user
down 20150217123345 Add bitbucket access token and secret to user
down 20150219004514 Add events to services
down 20150223022001 Set missing last activity at
down 20150225065047 Add note events to services
down 20150301014758 Add restricted visibility levels to application settings
down 20150306023106 Fix namespace duplication
down 20150306023112 Add unique index to namespace
down 20150310194358 Add version check to application settings
down 20150313012111 Create subscriptions table
down 20150320234437 Add location to user
down 20150324155957 Set incorrect assignee id to null
down 20150327122227 Add public to key
down 20150327150017 Add import data to project
down 20150327223628 Add devise two factor to users
down 20150328132231 Add max attachment size to application settings
down 20150331183602 Add devise two factor backupable to users
down 20150406133311 Add invite data to member
down 20150411000035 Fix identities
down 20150411180045 Rename buildbox service
down 20150413192223 Add public email to users
down 20150417121913 Create project import data
down 20150417122318 Remove import data from project
down 20150421120000 Remove periods at ends of usernames
down 20150423033240 Add default project visibililty to application settings
down 20150425164646 Gitlab change collation for tag names.acts as taggable on engine
down 20150425164647 Remove duplicate tags
down 20150425164648 Add missing unique indices.acts as taggable on engine
down 20150425164649 Add taggings counter cache to tags.acts as taggable on engine
down 20150425164650 Add missing taggable index.acts as taggable on engine
down 20150425164651 Change collation for tag names.acts as taggable on engine
down 20150425173433 Add default snippet visibility to app settings
down 20150429002313 Remove abandoned group members records
down 20150502064022 Add restricted signup domains to application settings
down 20150509180749 Convert legacy reference notes
down 20150516060434 Add note events to web hooks
down 20150529111607 Add user oauth applications to application settings
down 20150529150354 Add after sign out path for application settings
down 20150609141121 Add session expire delay for application settings
down 20150610065936 Add dashboard to users
down 20150620233230 Add default otp required for login value
down 20150713160110 Add project view to users
down 20150717130904 Add commits count to project
down 20150730122406 Add updated by to issuables and notes
down 20150806104937 Create abuse reports
down 20150812080800 Add settings import sources
down 20150814065925 Remove oauth tokens from users
down 20150817163600 Deduplicate user identities
down 20150818213832 Add sent notifications
down 20150824002011 Add enable ssl verification
down 20150826001931 Add ci tables
down 20150902001023 Add template to label
down 20150914215247 Add ci tags
down 20150915001905 Enable ssl verification by default
down 20150916000405 Enable ssl verification for web hooks
down 20150916114643 Add help page text to application settings
down 20150916145038 Add index for committed at and
down 20150918084513 Add ci enabled to application settings
down 20150918161719 Remove invalid milestones from merge requests
down 20150920010715 Add consumed timestep to users
down 20150920161119 Add line code to sent notification
down 20150924125150 Add project id to ci commit
down 20150924125436 Migrate project id for ci commits
down 20150930001110 Merge request error field
down 20150930095736 Add null to name for ci projects
down 20150930110012 Add group share lock
down 20151002112914 Add stage idx to builds
down 20151002121400 Add index for builds
down 20151002122929 Add ref and tag to builds
down 20151002122943 Migrate ref and tag to build
down 20151005075649 Add user id to build
down 20151005150751 Add layout option for users
down 20151005162154 Remove ci enabled from application settings
down 20151007120511 Namespaces projects path lower indexes
down 20151008110232 Add users lower username email indexes
down 20151008123042 Add type and description to builds
down 20151008130321 Migrate name to description for builds
down 20151008143519 Add admin notification email setting
down 20151012173029 Set jira service api url
down 20151013092124 Add artifacts file to builds
down 20151016131433 Add ci projects gl project id index
down 20151016195451 Add ci builds and projects indexes
down 20151016195706 Add notes line code index
down 20151019111551 Fix build tags
down 20151019111703 Fail build without names
down 20151020145526 Add services template index
down 20151020173516 Ci limits to mysql
down 20151020173906 Add ci builds index for status
down 20151023112551 Fail build with empty name
down 20151023144219 Remove satellites
down 20151026182941 Add project path index
down 20151028152939 Add merge when build succeeds to merge request
down 20151103001141 Add public to group
down 20151103133339 Add shared runners setting
down 20151103134857 Create lfs objects
down 20151103134958 Create lfs objects projects
down 20151104105513 Add file to lfs objects
down 20151105094515 Create releases
down 20151106000015 Add is award to notes
down 20151109100728 Add max artifacts size to application settings
down 20151109134526 Add issues state index
down 20151109134916 Add projects visibility level index
down 20151110125604 Add import error to project
down 20151114113410 Add index for lfs oid and size
down 20151116144118 Add unique for lfs oid index
down 20151118162244 Add projects public index
down 20151201203948 Raise hook url limit
down 20151203162133 Add hide project limit to users
down 20151203162134 Add build events to services
down 20151209144329 Migrate ci web hooks
down 20151209145909 Migrate ci emails
down 20151210030143 Add unlock token to user
down 20151210072243 Add runners registration token to application settings
down 20151210125232 Migrate ci slack service
down 20151210125927 Migrate ci hip chat service
down 20151210125928 Add ci to project
down 20151210125929 Add project id to ci
down 20151210125930 Migrate ci to project
down 20151210125931 Add index to ci tables
down 20151210125932 Drop null for ci tables
down 20151218154042 Add tfa to application settings
down 20151221234414 Add tfa additional fields
down 20151224123230 Rename emojis
down 20151228111122 Remove public from namespace
down 20151228150906 Influxdb settings
down 20151228175719 Add recaptcha to application settings
down 20151229102248 Influxdb udp port setting
down 20151229112614 Influxdb remote database setting
down 20151230132518 Add artifacts metadata to ci build
down 20151231152326 Add akismet to application settings
down 20151231202530 Remove alert type from broadcast messages
down 20160106162223 Add index milestones title
down 20160106164438 Remove influxdb credentials
down 20160109054846 Create spam logs
down 20160113111034 Add metrics sample interval
down 20160118155830 Add sentry to application settings
down 20160118232755 Add ip blocking settings to application settings
down 20160119111158 Add services category
down 20160119112418 Add services default
down 20160119145451 Add ldap email to users
down 20160120172143 Add base commit sha to merge request diffs
down 20160121030729 Add email author in body to application settings
down 20160122185421 Add pending delete to project
down 20160128212447 Remove ip blocking settings from application settings
down 20160128233227 Change lfs objects size column
down 20160129135155 Remove dot atom path ending of projects
down 20160129155512 Add merge commit sha to merge requests
down 20160202091601 Add erasable to ci build
down 20160202164642 Add allow guest to access builds project
down 20160204144558 Add real size to merge request diffs
down 20160209130428 Add index to snippet
down 20160212123307 Create tasks
down 20160217100506 Add description to label
down 20160217174422 Add note to tasks
down 20160220123949 Rename tasks to todos
down 20160222153918 Create appearances ce
down 20160223192159 Add confidential to issues
down 20160225090018 Add delete at to issues
down 20160225101956 Add delete at to merge requests
down 20160226114608 Add trigram indexes for searching
down 20160229193553 Add main language to repository
down 20160301124843 Add visibility level to groups
down 20160305220806 Remove expires at from snippets
down 20160307221555 Disallow blank line code on note
down 20160308212903 Add default group visibility to application settings
down 20160309140734 Fix todos
down 20160310185910 Add external flag to users
down 20160314143402 Projects add pushes since gc
down 20160316123110 Ci runners token index
down 20160316192622 Change target id to null on todos
down 20160316204731 Add commit id to todos
down 20160317092222 Add moved to to issue
down 20160320204112 Index namespaces on visibility level
down 20160324020319 Remove todos for deleted issues
down 20160331133914 Remove todos for deleted merge requests

Command Output****

gitlab-ctl tail
==> /var/log/gitlab/gitlab-rails/application.log <==

==> /var/log/gitlab/gitlab-rails/satellites.log <==

==> /var/log/gitlab/gitlab-rails/production.log <==
Cleaning stuck builds
Cleaning stuck builds
Cleaning stuck builds
Cleaning stuck builds
Cleaning stuck builds
** [Raven] Raven 0.15.6 configured not to send errors.
Scoped order and limit are ignored, it’s forced to be batch order and batch size
Started GET “/api/v3/internal/check” for 127.0.0.1 at 2016-04-18 08:26:23 -0400
** [Raven] Raven 0.15.6 configured not to send errors.
** [Raven] Raven 0.15.6 configured not to send errors.

==> /var/log/gitlab/gitlab-rails/githost.log <==

==> /var/log/gitlab/gitlab-workhorse/current <==

==> /var/log/gitlab/gitlab-workhorse/state <==

==> /var/log/gitlab/redis/current <==
2016-04-18_12:20:09.02333 [3699] 18 Apr 08:20:09.021 * 10 changes in 300 seconds. Saving…
2016-04-18_12:20:09.02340 [3699] 18 Apr 08:20:09.022 * Background saving started by pid 27240
2016-04-18_12:20:09.03496 [27240] 18 Apr 08:20:09.034 * DB saved on disk
2016-04-18_12:20:09.03542 [27240] 18 Apr 08:20:09.035 * RDB: 4 MB of memory used by copy-on-write
2016-04-18_12:20:09.12326 [3699] 18 Apr 08:20:09.123 * Background saving terminated with success
2016-04-18_12:25:10.07964 [3699] 18 Apr 08:25:10.077 * 10 changes in 300 seconds. Saving…
2016-04-18_12:25:10.07970 [3699] 18 Apr 08:25:10.078 * Background saving started by pid 27561
2016-04-18_12:25:10.09714 [27561] 18 Apr 08:25:10.097 * DB saved on disk
2016-04-18_12:25:10.09761 [27561] 18 Apr 08:25:10.097 * RDB: 4 MB of memory used by copy-on-write
2016-04-18_12:25:10.17874 [3699] 18 Apr 08:25:10.178 * Background saving terminated with success

==> /var/log/gitlab/redis/state <==

==> /var/log/gitlab/unicorn/current <==

==> /var/log/gitlab/unicorn/state <==

==> /var/log/gitlab/unicorn/unicorn_stderr.log <==

==> /var/log/gitlab/unicorn/unicorn_stdout.log <==

==> /var/log/gitlab/logrotate/current <==

==> /var/log/gitlab/logrotate/state <==

==> /var/log/gitlab/postgresql/current <==
2016-04-18_11:20:26.06414
2016-04-18_12:26:37.56875 ERROR: relation “members” does not exist at character 323
2016-04-18_12:26:37.56878 STATEMENT: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
2016-04-18_12:26:37.56878 pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
2016-04-18_12:26:37.56879 FROM pg_attribute a LEFT JOIN pg_attrdef d
2016-04-18_12:26:37.56880 ON a.attrelid = d.adrelid AND a.attnum = d.adnum
2016-04-18_12:26:37.56880 WHERE a.attrelid = ‘“members”’::regclass
2016-04-18_12:26:37.56880 AND a.attnum > 0 AND NOT a.attisdropped
2016-04-18_12:26:37.56880 ORDER BY a.attnum
2016-04-18_12:26:37.56881

==> /var/log/gitlab/postgresql/state <==

==> /var/log/gitlab/nginx/error.log <==

==> /var/log/gitlab/nginx/current <==

==> /var/log/gitlab/nginx/gitlab_access.log <==

==> /var/log/gitlab/nginx/gitlab_ci_access.log <==

==> /var/log/gitlab/nginx/gitlab_ci_error.log <==

==> /var/log/gitlab/nginx/gitlab_error.log <==

==> /var/log/gitlab/sidekiq/current <==
2016-04-18_11:20:26.06676 /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/sidekiq-4.0.1/lib/sidekiq/middleware/chain.rb:129:in block in invoke' 2016-04-18_11:20:26.06677 /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/sidekiq-4.0.1/lib/sidekiq/middleware/chain.rb:132:in call’
2016-04-18_11:20:26.06677 /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/sidekiq-4.0.1/lib/sidekiq/middleware/chain.rb:132:in invoke' 2016-04-18_11:20:26.06678 /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/sidekiq-4.0.1/lib/sidekiq/processor.rb:127:in block in process’
2016-04-18_11:20:26.06678 /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/sidekiq-4.0.1/lib/sidekiq/processor.rb:166:in stats' 2016-04-18_11:20:26.06678 /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/sidekiq-4.0.1/lib/sidekiq/processor.rb:126:in process’
2016-04-18_11:20:26.06679 /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/sidekiq-4.0.1/lib/sidekiq/processor.rb:79:in process_one' 2016-04-18_11:20:26.06680 /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/sidekiq-4.0.1/lib/sidekiq/processor.rb:67:in run’
2016-04-18_11:20:26.06680 /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/sidekiq-4.0.1/lib/sidekiq/util.rb:16:in watchdog' 2016-04-18_11:20:26.06680 /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/sidekiq-4.0.1/lib/sidekiq/util.rb:24:in block in safe_thread’

==> /var/log/gitlab/sidekiq/state <==

==> /var/log/gitlab/gitlab-shell/gitlab-shell.log <==
I, [2016-04-18T08:26:23.692568 #27674] INFO – : GET http://127.0.0.1:8080/api/v3/internal/check 0.01473

==> /var/log/gitlab/redis/current <==
2016-04-18_12:30:11.00630 [3699] 18 Apr 08:30:11.004 * 10 changes in 300 seconds. Saving…
2016-04-18_12:30:11.00634 [3699] 18 Apr 08:30:11.005 * Background saving started by pid 27947
2016-04-18_12:30:11.01900 [27947] 18 Apr 08:30:11.018 * DB saved on disk
2016-04-18_12:30:11.01956 [27947] 18 Apr 08:30:11.019 * RDB: 4 MB of memory used by copy-on-write
2016-04-18_12:30:11.10631 [3699] 18 Apr 08:30:11.106 * Background saving terminated with success

==> /var/log/gitlab/gitlab-rails/production.log <==
Started GET “/” for 127.0.0.1 at 2016-04-18 08:32:24 -0400
Processing by RootController#index as HTML
Completed 401 Unauthorized in 6ms (ActiveRecord: 1.3ms)

==> /var/log/gitlab/gitlab-workhorse/current <==
2016-04-18_12:32:24.48771 192.168.11.10 @ - - [2016-04-18 08:32:24.380750263 -0400 CDT] “GET / HTTP/1.1” 302 100 “” “Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Firefox/45.0” 0.106739

==> /var/log/gitlab/nginx/gitlab_access.log <==
192.168.20.210 - - [18/Apr/2016:08:32:24 -0400] “GET / HTTP/1.1” 302 100 “-” “Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Firefox/45.0”

==> /var/log/gitlab/gitlab-rails/production.log <==
Started GET “/users/sign_in” for 127.0.0.1 at 2016-04-18 08:32:28 -0400
Processing by SessionsController#new as HTML
Completed 500 Internal Server Error in 16ms (ActiveRecord: 1.3ms)

NoMethodError (undefined method builds_enabled=' for #<Project:0x000000135e42d8>): app/controllers/application_controller.rb:156:in add_gon_variables’
lib/gitlab/middleware/go.rb:16:in `call’

==> /var/log/gitlab/gitlab-workhorse/current <==
2016-04-18_12:32:33.98857 2016/04/18 08:32:33 ErrorPage: serving predefined error page: 500

==> /var/log/gitlab/nginx/gitlab_access.log <==
192.168.20.210 - - [18/Apr/2016:08:32:33 -0400] “GET /users/sign_in HTTP/1.1” 500 2205 “-” “Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Firefox/45.0”

==> /var/log/gitlab/gitlab-workhorse/current <==
2016-04-18_12:32:33.98900 192.168.11.10 @ - - [2016-04-18 08:32:28.912523072 -0400 CDT] “GET /users/sign_in HTTP/1.1” 500 2205 “” “Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Firefox/45.0” 5.076202
2016-04-18_12:32:34.19155 2016/04/18 08:32:34 Send static file “/opt/gitlab/embedded/service/gitlab-rails/public/favicon.ico” (“”) for GET “/favicon.ico”

==> /var/log/gitlab/nginx/gitlab_access.log <==
192.168.20.210 - - [18/Apr/2016:08:32:34 -0400] “GET /favicon.ico HTTP/1.1” 304 0 “-” “Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Firefox/45.0”

==> /var/log/gitlab/gitlab-workhorse/current <==
2016-04-18_12:32:34.21176 192.168.11.10 @ - - [2016-04-18 08:32:34.166872435 -0400 CDT] “GET /favicon.ico HTTP/1.1” 200 5430 “” “Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Firefox/45.0” 0.044701

==> /var/log/gitlab/gitlab-rails/production.log <==
Started GET “/users/sign_in” for 127.0.0.1 at 2016-04-18 08:32:44 -0400
Processing by SessionsController#new as HTML
Completed 500 Internal Server Error in 12ms (ActiveRecord: 1.1ms)

NoMethodError (undefined method builds_enabled=' for #<Project:0x00000013715648>): app/controllers/application_controller.rb:156:in add_gon_variables’
lib/gitlab/middleware/go.rb:16:in `call’

==> /var/log/gitlab/gitlab-workhorse/current <==
2016-04-18_12:32:44.11415 2016/04/18 08:32:44 ErrorPage: serving predefined error page: 500
2016-04-18_12:32:44.11453 192.168.11.10 @ - - [2016-04-18 08:32:44.06273496 -0400 CDT] “GET /users/sign_in HTTP/1.1” 500 2205 “” “Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Firefox/45.0” 0.051705

==> /var/log/gitlab/nginx/gitlab_access.log <==
192.168.20.210 - - [18/Apr/2016:08:32:44 -0400] “GET /users/sign_in HTTP/1.1” 500 2205 “-” “Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Firefox/45.0”

Command Output****

tail -f /var/log/gitlab/gitlab-rails/production.log

Started GET “/users/sign_in” for 127.0.0.1 at 2016-04-18 08:32:44 -0400
Processing by SessionsController#new as HTML
Completed 500 Internal Server Error in 12ms (ActiveRecord: 1.1ms)

NoMethodError (undefined method builds_enabled=' for #<Project:0x00000013715648>): app/controllers/application_controller.rb:156:in add_gon_variables’
lib/gitlab/middleware/go.rb:16:in `call’

Started GET “/users/sign_in” for 127.0.0.1 at 2016-04-18 08:35:19 -0400
Processing by SessionsController#new as HTML
Completed 500 Internal Server Error in 16ms (ActiveRecord: 1.5ms)

NoMethodError (undefined method builds_enabled=' for #<Project:0x0000001383e1f0>): app/controllers/application_controller.rb:156:in add_gon_variables’
lib/gitlab/middleware/go.rb:16:in `call’

Command Output****

tail -f /var/log/gitlab/nginx/gitlab_access.log
192.168.20.210 - - [18/Apr/2016:08:32:24 -0400] “GET / HTTP/1.1” 302 100 “-” “Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Firefox/45.0”
192.168.20.210 - - [18/Apr/2016:08:32:33 -0400] “GET /users/sign_in HTTP/1.1” 500 2205 “-” “Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Firefox/45.0”
192.168.20.210 - - [18/Apr/2016:08:32:34 -0400] “GET /favicon.ico HTTP/1.1” 304 0 “-” “Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Firefox/45.0”
192.168.20.210 - - [18/Apr/2016:08:32:44 -0400] “GET /users/sign_in HTTP/1.1” 500 2205 “-” “Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Firefox/45.0”
192.168.20.210 - - [18/Apr/2016:08:35:24 -0400] “GET /users/sign_in HTTP/1.1” 500 2205 “-” “Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Firefox/45.0”
192.168.20.210 - - [18/Apr/2016:08:37:25 -0400] “GET /users/sign_in HTTP/1.1” 500 2205 “-” “Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Firefox/45.0”
192.168.20.210 - - [18/Apr/2016:08:37:34 -0400] “GET /users/sign_in HTTP/1.1” 500 2205 “-” “Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Firefox/45.0”
192.168.20.210 - - [18/Apr/2016:08:37:35 -0400] “GET /users/sign_in HTTP/1.1” 500 2205 “-” “Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Firefox/45.0”
192.168.20.210 - - [18/Apr/2016:08:37:35 -0400] “GET /users/sign_in HTTP/1.1” 500 2205 “-” “Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Firefox/45.0”

Command Output****

gitlab-ctl status
run: gitlab-workhorse: (pid 3670) 262672s; run: log: (pid 936) 319153s
run: logrotate: (pid 24694) 3470s; run: log: (pid 937) 319153s
run: nginx: (pid 3683) 262672s; run: log: (pid 932) 319153s
run: postgresql: (pid 3690) 262671s; run: log: (pid 933) 319153s
run: redis: (pid 3699) 262671s; run: log: (pid 938) 319153s
run: sidekiq: (pid 3704) 262669s; run: log: (pid 934) 319153s
run: unicorn: (pid 3722) 262668s; run: log: (pid 935) 319153s

Looks like some migrations have not been run. Please try redoing sudo gitlab-ctl reconfigure then send us the output of sudo gitlab-rake gitlab:check

1 Like

Dear friend this is the output of sudo gitlab-rake gitlab:check

Checking GitLab Shell …

GitLab Shell version >= 2.6.12 ? … OK (2.6.12)
Repo base directory exists? … yes
Repo base directory is a symlink? … no
Repo base owned by git:git? … yes
Repo base access is drwxrws—? … yes
hooks directories in repos are links: …
Jaime Galvez Arocha / NFramework … wrong or missing hooks
Try fixing it:
sudo -u git -H /opt/gitlab/embedded/service/gitlab-shell/bin/create-hooks
Check the hooks_path in config/gitlab.yml
Check your gitlab-shell installation
For more information see:
doc/install/installation.md in section “GitLab Shell”
Please fix the error above and rerun the checks.
Paco Aball­ Morell / incidencias … wrong or missing hooks
Try fixing it:
sudo -u git -H /opt/gitlab/embedded/service/gitlab-shell/bin/create-hooks
Check the hooks_path in config/gitlab.yml
Check your gitlab-shell installation
For more information see:
doc/install/installation.md in section “GitLab Shell”
Please fix the error above and rerun the checks.
Paco Aball­ Morell / testgit … wrong or missing hooks
Try fixing it:
sudo -u git -H /opt/gitlab/embedded/service/gitlab-shell/bin/create-hooks
Check the hooks_path in config/gitlab.yml
Check your gitlab-shell installation
For more information see:
doc/install/installation.md in section “GitLab Shell”
Please fix the error above and rerun the checks.
Paco Aball­ Morell / gitflow … wrong or missing hooks
Try fixing it:
sudo -u git -H /opt/gitlab/embedded/service/gitlab-shell/bin/create-hooks
Check the hooks_path in config/gitlab.yml
Check your gitlab-shell installation
For more information see:
doc/install/installation.md in section “GitLab Shell”
Please fix the error above and rerun the checks.
Running /opt/gitlab/embedded/service/gitlab-shell/bin/check
Check GitLab API access: OK
Check directories and files:
/var/opt/gitlab/git-data/repositories: OK
/var/opt/gitlab/.ssh/authorized_keys: OK
Test redis-cli executable: redis-cli 2.8.24
Send ping to redis server: PONG
gitlab-shell self-check successful

Checking GitLab Shell … Finished

Checking Sidekiq …

Running? … yes
Number of Sidekiq processes … 1

Checking Sidekiq … Finished

Checking Reply by email …

Reply by email is disabled in config/gitlab.yml

Checking Reply by email … Finished

Checking LDAP …

LDAP users with access to your GitLab server (only showing the first 100 results)
Server: ldapmain
DN: CN=Paco Manuel Bell,OU=Neurociencias,DC=cneuro,DC=edu,DC=cu sAMAccountName: antelo
DN: CN=PACO-VAIO,OU=Computadoras_Administradas,DC=cneuro,DC=edu,DC=cu sAMAccountName: PACO-VAIO$
DN: CN=ANTONY-DELL,OU=Computadoras,DC=cneuro,DC=edu,DC=cu sAMAccountName: ANTONY-DELL$
DN: CN=PEDRO-LAPTOP,OU=Computadoras_Administradas,DC=cneuro,DC=edu,DC=cu sAMAccountName: PEDRO-LAPTOP$
.
.
.
.
.
.
.
.
.
.
DN: CN=Carlos Perez Diaz León,OU=Neurociencias,DC=cneuro,DC=edu,DC=cu sAMAccountName: carlos
DN: CN=CARLOS-DELL,OU=Computadoras,DC=cneuro,DC=edu,DC=cu sAMAccountName: CARLOS-DELL$
Checking LDAP … Finished

Checking GitLab …

Git configured with autocrlf=input? … yes
Database config exists? … yes
All migrations up? … no
Try fixing it:
sudo -u git -H bundle exec rake db:migrate RAILS_ENV=production
Please fix the error above and rerun the checks.
Database contains orphaned GroupMembers? …

Hi

One question.
You have upgraded your gitlab from gitlab-7.1.1 to gitlab-8.6.5. Did u do this in one step ? ie., directly from 7.1.1 to 8.6.5. If the answer is Yes, then this is expected, db migrations will fail coz there are multiple changes in DB, between the version released between 7.1.1 to 8.6.5.
I advice you to upgrade in steps.
7.1.1 to 7.4.0
7.4.0 to 7.6.0
7.6.0 to 8.0.0
8.0.0 to 8.3.0
8.3.0 to 8.7.0

Please refer this post.

Hi
I update from 7.1.1 to 8.6.5. I’ll try to update stepwise to see if it works
thanks for the reply

Hi ,

I have using gitlab 8.14 then we got 500 error page the we have update gitlab 8.15 then we used this command
gitlab-ctl reconfigure gitlab-ctl restart

but the issue not resolved .
i have aleady attached the image and log this command $ gitlab-ctl tail

$ gitlab-ctl tail

==> /var/log/gitlab/gitlab-rails/production.log <==
Started GET “/” for 192.168.100.93 at 2017-01-10 18:25:19 +0530
Processing by RootController#index as HTML
Completed 401 Unauthorized in 7ms (ActiveRecord: 1.0ms)

Redis::CommandError (ERR invalid expire time in setex):
redis (3.2.2) lib/redis/client.rb:114:in call' redis (3.2.2) lib/redis.rb:729:in block in setex’
redis (3.2.2) lib/redis.rb:57:in block in synchronize' /opt/gitlab/embedded/lib/ruby/2.3.0/monitor.rb:214:in mon_synchronize’
redis (3.2.2) lib/redis.rb:57:in synchronize' redis (3.2.2) lib/redis.rb:728:in setex’
redis-store (1.2.0) lib/redis/store/interface.rb:17:in setex' redis-store (1.2.0) lib/redis/store/marshalling.rb:13:in block in setex’
redis-store (1.2.0) lib/redis/store/marshalling.rb:29:in _marshal' redis-store (1.2.0) lib/redis/store/marshalling.rb:13:in setex’
redis-store (1.2.0) lib/redis/store/namespace.rb:11:in block in setex' redis-store (1.2.0) lib/redis/store/namespace.rb:84:in namespace’
redis-store (1.2.0) lib/redis/store/namespace.rb:11:in setex' redis-store (1.2.0) lib/redis/store/ttl.rb:6:in set’
redis-store (1.2.0) lib/redis/store/marshalling.rb:5:in block in set' redis-store (1.2.0) lib/redis/store/marshalling.rb:29:in _marshal’
redis-store (1.2.0) lib/redis/store/marshalling.rb:5:in set' redis-store (1.2.0) lib/redis/store/namespace.rb:7:in block in set’
redis-store (1.2.0) lib/redis/store/namespace.rb:84:in namespace' redis-store (1.2.0) lib/redis/store/namespace.rb:7:in set’
redis-rack (1.6.0) lib/rack/session/redis.rb:31:in block in get_session' redis-rack (1.6.0) lib/rack/session/redis.rb:55:in with_lock’
redis-rack (1.6.0) lib/rack/session/redis.rb:28:in get_session' rack (1.6.5) lib/rack/session/abstract/id.rb:266:in load_session’
actionpack (4.2.7.1) lib/action_dispatch/middleware/session/abstract_store.rb:43:in block in load_session' actionpack (4.2.7.1) lib/action_dispatch/middleware/session/abstract_store.rb:51:in stale_session_check!’
actionpack (4.2.7.1) lib/action_dispatch/middleware/session/abstract_store.rb:43:in load_session' actionpack (4.2.7.1) lib/action_dispatch/request/session.rb:180:in load!’
actionpack (4.2.7.1) lib/action_dispatch/request/session.rb:176:in load_for_write!' actionpack (4.2.7.1) lib/action_dispatch/request/session.rb:109:in =’
devise (4.2.0) lib/devise/controllers/store_location.rb:40:in store_location_for' devise (4.2.0) lib/devise/failure_app.rb:233:in store_location!’
devise (4.2.0) lib/devise/failure_app.rb:77:in redirect' devise (4.2.0) lib/devise/failure_app.rb:41:in respond’
actionpack (4.2.7.1) lib/abstract_controller/base.rb:198:in process_action' actionpack (4.2.7.1) lib/abstract_controller/base.rb:137:in process’
actionpack (4.2.7.1) lib/action_controller/metal.rb:196:in dispatch' actionpack (4.2.7.1) lib/action_controller/metal/rack_delegation.rb:13:in dispatch’
actionpack (4.2.7.1) lib/action_controller/metal.rb:237:in block in action' devise (4.2.0) lib/devise/failure_app.rb:21:in call’
warden (1.2.6) lib/warden/manager.rb:142:in call_failure_app' warden (1.2.6) lib/warden/manager.rb:128:in process_unauthenticated’
warden (1.2.6) lib/warden/manager.rb:43:in call' rack-cors (0.4.0) lib/rack/cors.rb:80:in call’
rack-attack (4.4.1) lib/rack/attack.rb:107:in call' rack (1.6.5) lib/rack/etag.rb:24:in call’
rack (1.6.5) lib/rack/conditionalget.rb:25:in call' rack (1.6.5) lib/rack/head.rb:13:in call’
actionpack (4.2.7.1) lib/action_dispatch/middleware/params_parser.rb:27:in call' actionpack (4.2.7.1) lib/action_dispatch/middleware/flash.rb:260:in call’
rack (1.6.5) lib/rack/session/abstract/id.rb:225:in context' rack (1.6.5) lib/rack/session/abstract/id.rb:220:in call’
actionpack (4.2.7.1) lib/action_dispatch/middleware/cookies.rb:560:in call' activerecord (4.2.7.1) lib/active_record/query_cache.rb:36:in call’
activerecord (4.2.7.1) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in call' actionpack (4.2.7.1) lib/action_dispatch/middleware/callbacks.rb:29:in block in call’
activesupport (4.2.7.1) lib/active_support/callbacks.rb:88:in __run_callbacks__' activesupport (4.2.7.1) lib/active_support/callbacks.rb:778:in _run_call_callbacks’
activesupport (4.2.7.1) lib/active_support/callbacks.rb:81:in run_callbacks' actionpack (4.2.7.1) lib/action_dispatch/middleware/callbacks.rb:27:in call’
actionpack (4.2.7.1) lib/action_dispatch/middleware/remote_ip.rb:78:in call' actionpack (4.2.7.1) lib/action_dispatch/middleware/debug_exceptions.rb:17:in call’
actionpack (4.2.7.1) lib/action_dispatch/middleware/show_exceptions.rb:30:in call' railties (4.2.7.1) lib/rails/rack/logger.rb:38:in call_app’
railties (4.2.7.1) lib/rails/rack/logger.rb:20:in block in call' activesupport (4.2.7.1) lib/active_support/tagged_logging.rb:68:in block in tagged’
activesupport (4.2.7.1) lib/active_support/tagged_logging.rb:26:in tagged' activesupport (4.2.7.1) lib/active_support/tagged_logging.rb:68:in tagged’
railties (4.2.7.1) lib/rails/rack/logger.rb:20:in call' request_store (1.3.1) lib/request_store/middleware.rb:9:in call’
actionpack (4.2.7.1) lib/action_dispatch/middleware/request_id.rb:21:in call' rack (1.6.5) lib/rack/methodoverride.rb:22:in call’
rack (1.6.5) lib/rack/runtime.rb:18:in call' rack (1.6.5) lib/rack/lock.rb:17:in call’
rack (1.6.5) lib/rack/sendfile.rb:113:in call' sentry-raven (2.0.2) lib/raven/integrations/rack.rb:50:in call’
railties (4.2.7.1) lib/rails/engine.rb:518:in call' railties (4.2.7.1) lib/rails/application.rb:165:in call’
railties (4.2.7.1) lib/rails/railtie.rb:194:in public_send' railties (4.2.7.1) lib/rails/railtie.rb:194:in method_missing’
rack (1.6.5) lib/rack/urlmap.rb:66:in block in call' rack (1.6.5) lib/rack/urlmap.rb:50:in each’
rack (1.6.5) lib/rack/urlmap.rb:50:in call' unicorn (5.1.0) lib/unicorn/http_server.rb:562:in process_client’
unicorn-worker-killer (0.4.4) lib/unicorn/worker_killer.rb:52:in process_client' unicorn (5.1.0) lib/unicorn/http_server.rb:658:in worker_loop’
unicorn (5.1.0) lib/unicorn/http_server.rb:508:in spawn_missing_workers' unicorn (5.1.0) lib/unicorn/http_server.rb:132:in start’
unicorn (5.1.0) bin/unicorn:126:in <top (required)>' /opt/gitlab/embedded/service/gem/ruby/2.3.0/bin/unicorn:22:in load’
/opt/gitlab/embedded/service/gem/ruby/2.3.0/bin/unicorn:22:in <top (required)>' bundler (1.13.6) lib/bundler/cli/exec.rb:74:in load’
bundler (1.13.6) lib/bundler/cli/exec.rb:74:in kernel_load' bundler (1.13.6) lib/bundler/cli/exec.rb:27:in run’
bundler (1.13.6) lib/bundler/cli.rb:332:in exec' bundler (1.13.6) lib/bundler/vendor/thor/lib/thor/command.rb:27:in run’
bundler (1.13.6) lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in invoke_command' bundler (1.13.6) lib/bundler/vendor/thor/lib/thor.rb:359:in dispatch’
bundler (1.13.6) lib/bundler/cli.rb:20:in dispatch' bundler (1.13.6) lib/bundler/vendor/thor/lib/thor/base.rb:440:in start’
bundler (1.13.6) lib/bundler/cli.rb:11:in start' bundler (1.13.6) exe/bundle:34:in block in <top (required)>’
bundler (1.13.6) lib/bundler/friendly_errors.rb:100:in with_friendly_errors' bundler (1.13.6) exe/bundle:26:in <top (required)>’
/opt/gitlab/embedded/bin/bundle:22:in load' /opt/gitlab/embedded/bin/bundle:22:in

Hello,

I have the same problem but no traces of errors, except below

==> /var/log/gitlab/gitlab-rails/production.log <==
Started GET "/" for 172.18.0.5 at 2017-06-02 14:27:45 +0000
Processing by RootController#index as HTML
Completed 401 Unauthorized in 9ms (ActiveRecord: 1.2ms)

this is the status

root@ccf9cbe72a2b:/etc/gitlab# gitlab-ctl status
run: gitlab-workhorse: (pid 2369) 1151s; run: log: (pid 445) 2561s
run: logrotate: (pid 2379) 1151s; run: log: (pid 447) 2561s
run: nginx: (pid 2385) 1150s; run: log: (pid 438) 2561s
run: postgresql: (pid 2396) 1150s; run: log: (pid 441) 2561s
run: redis: (pid 2408) 1149s; run: log: (pid 436) 2561s
run: sidekiq: (pid 2413) 1148s; run: log: (pid 437) 2561s
run: unicorn: (pid 2430) 1146s; run: log: (pid 442) 2561s

I run Gitlab in a docker container, this morning I tried to upgrade the image gitlab/gitlab-ce:8.15.4-ce.1 to gitlab/gitlab-ce:9.2.2-ce.0 which didnt work then I moved back to old image and started GitLab but I’m getting error 500 page, when I use curl it connect but I get below at the bottom

<html><body>You are being <a href="https://gitlab.kpn.org/users/sign_in">redirected</a>.</body></html>

Please help!

hello guys i have same error ,
can you help me