Bug#915053: gitlab: Err 500 when go to the project page(any project)

2018-12-12 Thread Dragos Jarca



Maby is a good idea to add a check task to see if /var/lib/gems is 
incompatible wit gitlab.


Dragos Jarca

On 12.12.2018 13:09, Dragos Jarca wrote:

Ok...after a lot of research of my problem, solved it!

Th problem was /var/lib/gems/2.5.0 that have multiple vesrsions of 
same gem. I renamed this dir and reconfigured gitlab. Now all is ok!


Just wait to next varsion(11.5.3) in experimental. The last version in 
experimental I think is a goog option.


Dragos Jarca

On 09.12.2018 11:36, Dragos Jarca wrote:

Hi

Updated to 11.4.9, but the problem exists.

Seems tat gitlab API not work in all forms described in documentation.

root@omv:/etc/gitlab# curl --header 'PRIVATE-TOKEN: ***' 
https://gitlab.dynamicpuzzle.ro/api/v4/projects/14/repository/files/db%2Fupd%2Esql/raw?ref=master
alter table ws add column if not exists isactive TINYINT not null 
default 0;

alter table ws add column if not exists apikey varchar(128);
root@omv:/etc/gitlab# curl 
https://gitlab.dynamicpuzzle.ro/api/v4/projects/14/repository/files/db%2Fupd%2Esql/raw?ref=master?private_token=***

{"message":"404 Project Not Found"}
root@omv:/etc/gitlab# curl --header '_gitlab_session=*' 
https://gitlab.dynamicpuzzle.ro/api/v4/projects/14/repository/files/db%2Fupd%2Esql/raw?ref=master

{"message":"404 Project Not Found"}

In web interface _gitlab_session is responsable, and seems not no work.
Strange is that:

https://gitlab.dynamicpuzzle.ro/meteo/meteo/blob/master/db/upd.sql
not work and return ERR 500

and

https://gitlab.dynamicpuzzle.ro/api/v4/projects/14/repository/files/db%2Fupd.sql/raw?ref=master 



work and return content of file.

I can work in external git clients, but cannot see thhe project files 
and commits in the web interface.


Dragos Jarca

On 06.12.2018 10:00, Pirate Praveen wrote:

On 12/4/18 10:03 PM, Dragos Jarca wrote:

Yes, tried on different browsers, different os, different browsers on
moile phones, smart tb browser, etc.

I have just uploaded gitlab 11.4.9 to experimental. See if that fixes
the issues.





Bug#915053: gitlab: Err 500 when go to the project page(any project)

2018-12-12 Thread Dragos Jarca

Ok...after a lot of research of my problem, solved it!

Th problem was /var/lib/gems/2.5.0 that have multiple vesrsions of same 
gem. I renamed this dir and reconfigured gitlab. Now all is ok!


Just wait to next varsion(11.5.3) in experimental. The last version in 
experimental I think is a goog option.


Dragos Jarca

On 09.12.2018 11:36, Dragos Jarca wrote:

Hi

Updated to 11.4.9, but the problem exists.

Seems tat gitlab API not work in all forms described in documentation.

root@omv:/etc/gitlab# curl --header 'PRIVATE-TOKEN: ***' 
https://gitlab.dynamicpuzzle.ro/api/v4/projects/14/repository/files/db%2Fupd%2Esql/raw?ref=master
alter table ws add column if not exists isactive TINYINT not null 
default 0;

alter table ws add column if not exists apikey varchar(128);
root@omv:/etc/gitlab# curl 
https://gitlab.dynamicpuzzle.ro/api/v4/projects/14/repository/files/db%2Fupd%2Esql/raw?ref=master?private_token=***

{"message":"404 Project Not Found"}
root@omv:/etc/gitlab# curl --header '_gitlab_session=*' 
https://gitlab.dynamicpuzzle.ro/api/v4/projects/14/repository/files/db%2Fupd%2Esql/raw?ref=master

{"message":"404 Project Not Found"}

In web interface _gitlab_session is responsable, and seems not no work.
Strange is that:

https://gitlab.dynamicpuzzle.ro/meteo/meteo/blob/master/db/upd.sql
not work and return ERR 500

and

https://gitlab.dynamicpuzzle.ro/api/v4/projects/14/repository/files/db%2Fupd.sql/raw?ref=master 



work and return content of file.

I can work in external git clients, but cannot see thhe project files 
and commits in the web interface.


Dragos Jarca

On 06.12.2018 10:00, Pirate Praveen wrote:

On 12/4/18 10:03 PM, Dragos Jarca wrote:

Yes, tried on different browsers, different os, different browsers on
moile phones, smart tb browser, etc.

I have just uploaded gitlab 11.4.9 to experimental. See if that fixes
the issues.





Bug#915053: gitlab: Err 500 when go to the project page(any project)

2018-12-09 Thread Dragos Jarca

Hi

Updated to 11.4.9, but the problem exists.

Seems tat gitlab API not work in all forms described in documentation.

root@omv:/etc/gitlab# curl --header 'PRIVATE-TOKEN: ***' 
https://gitlab.dynamicpuzzle.ro/api/v4/projects/14/repository/files/db%2Fupd%2Esql/raw?ref=master

alter table ws add column if not exists isactive TINYINT not null default 0;
alter table ws add column if not exists apikey varchar(128);
root@omv:/etc/gitlab# curl 
https://gitlab.dynamicpuzzle.ro/api/v4/projects/14/repository/files/db%2Fupd%2Esql/raw?ref=master?private_token=***

{"message":"404 Project Not Found"}
root@omv:/etc/gitlab# curl --header '_gitlab_session=*' 
https://gitlab.dynamicpuzzle.ro/api/v4/projects/14/repository/files/db%2Fupd%2Esql/raw?ref=master

{"message":"404 Project Not Found"}

In web interface _gitlab_session is responsable, and seems not no work.
Strange is that:

https://gitlab.dynamicpuzzle.ro/meteo/meteo/blob/master/db/upd.sql
not work and return ERR 500

and

https://gitlab.dynamicpuzzle.ro/api/v4/projects/14/repository/files/db%2Fupd.sql/raw?ref=master

work and return content of file.

I can work in external git clients, but cannot see thhe project files 
and commits in the web interface.


Dragos Jarca

On 06.12.2018 10:00, Pirate Praveen wrote:

On 12/4/18 10:03 PM, Dragos Jarca wrote:

Yes, tried on different browsers, different os, different browsers on
moile phones, smart tb browser, etc.

I have just uploaded gitlab 11.4.9 to experimental. See if that fixes
the issues.





Bug#915053: gitlab: Err 500 when go to the project page(any project)

2018-12-06 Thread Pirate Praveen
On 12/4/18 10:03 PM, Dragos Jarca wrote:
> 
> Yes, tried on different browsers, different os, different browsers on
> moile phones, smart tb browser, etc.

I have just uploaded gitlab 11.4.9 to experimental. See if that fixes
the issues.



signature.asc
Description: OpenPGP digital signature


Bug#915053: gitlab: Err 500 when go to the project page(any project)

2018-12-05 Thread Dragos Jarca


I think there is a problem in
  lib/gitlab/i18n.rb:53:in `with_locale'
  lib/gitlab/i18n.rb:59:in `with_user_locale'

    def with_locale(locale_string)
  original_locale = locale

  self.locale = locale_string
  yield
    ensure
  self.locale = original_locale
    end

    def with_user_locale(user, )
*with_locale(user&.preferred_language, )*
    end


*with_locale(user&.preferred_language, ) with 2 param, but *
*def with_locale(locale_string) has only one param.
*
*
*
On 04.12.2018 18:33, Dragos Jarca wrote:


Yes, tried on different browsers, different os, different browsers on 
moile phones, smart tb browser, etc.



On 04.12.2018 18:19, Pirate Praveen wrote:



On 2018, ഡിസംബർ 4 9:10:17 PM IST, Dragos Jarca 
 wrote:

I observed that on LabCoat app on android I can see project details and

commits, etc.

I can push and pull files from the repo with remote git client and see
diffs, etc.

I can use python-gitlab also.

seems that only in web interface cannot see details of projects, commit

details, etc. But I can see issues and other info related to one
project
if I acces direct link. Cannot see Repository related pages.

I observed that in app/views/projects/commits/_commit.html.haml there
is
a warning...

-#-
   WARNING: Please keep changes up-to-date with the following files:
   - `assets/javascripts/diffs/components/commit_item.vue`
-#-

but  assets/javascripts/diffs/components/commit_item.vue does not
exists.

I can give more info if u help me to clarify the problem.
Did you try on different browsers (or control + f5) ? It could be a 
local cache issue. Just thinking about possible scenarios. I was not 
able to reproduce it locally.


Bug#915053: gitlab: Err 500 when go to the project page(any project)

2018-12-04 Thread Dragos Jarca



Yes, tried on different browsers, different os, different browsers on 
moile phones, smart tb browser, etc.



On 04.12.2018 18:19, Pirate Praveen wrote:



On 2018, ഡിസംബർ 4 9:10:17 PM IST, Dragos Jarca  
wrote:

I observed that on LabCoat app on android I can see project details and

commits, etc.

I can push and pull files from the repo with remote git client and see
diffs, etc.

I can use python-gitlab also.

seems that only in web interface cannot see details of projects, commit

details, etc. But I can see issues and other info related to one
project
if I acces direct link. Cannot see Repository related pages.

I observed that in app/views/projects/commits/_commit.html.haml there
is
a warning...

-#-
   WARNING: Please keep changes up-to-date with the following files:
   - `assets/javascripts/diffs/components/commit_item.vue`
-#-

but  assets/javascripts/diffs/components/commit_item.vue does not
exists.

I can give more info if u help me to clarify the problem.

Did you try on different browsers (or control + f5) ? It could be a local cache 
issue. Just thinking about possible scenarios. I was not able to reproduce it 
locally.




Bug#915053: gitlab: Err 500 when go to the project page(any project)

2018-12-04 Thread Pirate Praveen



On 2018, ഡിസംബർ 4 9:10:17 PM IST, Dragos Jarca  
wrote:
>I observed that on LabCoat app on android I can see project details and
>
>commits, etc.
>
>I can push and pull files from the repo with remote git client and see 
>diffs, etc.
>
>I can use python-gitlab also.
>
>seems that only in web interface cannot see details of projects, commit
>
>details, etc. But I can see issues and other info related to one
>project 
>if I acces direct link. Cannot see Repository related pages.
>
>I observed that in app/views/projects/commits/_commit.html.haml there
>is 
>a warning...
>
>-#-
>   WARNING: Please keep changes up-to-date with the following files:
>   - `assets/javascripts/diffs/components/commit_item.vue`
>-#-
>
>but  assets/javascripts/diffs/components/commit_item.vue does not
>exists.
>
>I can give more info if u help me to clarify the problem.

Did you try on different browsers (or control + f5) ? It could be a local cache 
issue. Just thinking about possible scenarios. I was not able to reproduce it 
locally.
-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.



Bug#915053: gitlab: Err 500 when go to the project page(any project)

2018-12-04 Thread Dragos Jarca
I observed that on LabCoat app on android I can see project details and 
commits, etc.


I can push and pull files from the repo with remote git client and see 
diffs, etc.


I can use python-gitlab also.

seems that only in web interface cannot see details of projects, commit 
details, etc. But I can see issues and other info related to one project 
if I acces direct link. Cannot see Repository related pages.


I observed that in app/views/projects/commits/_commit.html.haml there is 
a warning...


-#-
  WARNING: Please keep changes up-to-date with the following files:
  - `assets/javascripts/diffs/components/commit_item.vue`
-#-

but  assets/javascripts/diffs/components/commit_item.vue does not exists.

I can give more info if u help me to clarify the problem.


On Fri, 30 Nov 2018 12:58:23 +0200 Dragos Jarca 
 wrote:


> Updated to 11.3.11+dfsg-1 and the same behavior.
>
> On 30.11.2018 11:02, Pirate Praveen wrote:
>
> >
> > On 2018, നവംബർ 30 11:34:03 AM IST, Dragos Jarca 
 wrote:

> >> Yes, I restarted services; restarted the system to for other resons.
> >> The
> >> same error.
> >>
> > Just try 11.3.11+dfsg-1 as well. I did not get this error when 
testing it locally. I will try to reproduce it again.

>
>
--
Cu respect,
Dragos Jarca
Owner
Dynamic Puzzle S.R.L.
www.dynamicpuzzle.ro



Bug#915053: gitlab: Err 500 when go to the project page(any project)

2018-11-30 Thread Dragos Jarca

Updated to 11.3.11+dfsg-1 and the same behavior.

On 30.11.2018 11:02, Pirate Praveen wrote:



On 2018, നവംബർ 30 11:34:03 AM IST, Dragos Jarca  
wrote:

Yes, I restarted services; restarted the system to for other resons.
The
same error.


Just try 11.3.11+dfsg-1 as well. I did not get this error when testing it 
locally. I will try to reproduce it again.




Bug#915053: gitlab: Err 500 when go to the project page(any project)

2018-11-30 Thread Pirate Praveen



On 2018, നവംബർ 30 11:34:03 AM IST, Dragos Jarca  
wrote:
>Yes, I restarted services; restarted the system to for other resons.
>The 
>same error.
>

Just try 11.3.11+dfsg-1 as well. I did not get this error when testing it 
locally. I will try to reproduce it again.
-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.



Bug#915053: gitlab: Err 500 when go to the project page(any project)

2018-11-29 Thread Dragos Jarca
Yes, I restarted services; restarted the system to for other resons. The 
same error.


On 30.11.2018 07:12, Pirate Praveen wrote:
On Thu, 29 Nov 2018 22:19:14 +0200 Dragos Jarca 
 wrote:

> Dear Maintainer,
>
> When go to any project receive Err 500:

Did you try restarting gitlab and gitaly services?

--
Sent from my Android device with K-9 Mail. Please excuse my brevity.

 
	Virus-free. www.avg.com 
 



<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>


Bug#915053: gitlab: Err 500 when go to the project page(any project)

2018-11-29 Thread Pirate Praveen
Control: severity -1 important

On Thu, 29 Nov 2018 22:19:14 +0200 Dragos Jarca  
wrote:
> Package: gitlab
> Version: 11.3.10+dfsg-2
> Severity: grave
> Justification: renders package unusable

I have seen such transient failures go away after a restart of gitlab and 
gitaly services. So downgrading severity as work around exist, but change it 
back if the error persists after a restart of services.
-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.

Bug#915053: gitlab: Err 500 when go to the project page(any project)

2018-11-29 Thread Pirate Praveen
On Thu, 29 Nov 2018 22:19:14 +0200 Dragos Jarca  
wrote:
> Dear Maintainer,
> 
> When go to any project receive Err 500:

Did you try restarting gitlab and gitaly services?

-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.

Bug#915053: gitlab: Err 500 when go to the project page(any project)

2018-11-29 Thread Dragos Jarca
Package: gitlab
Version: 11.3.10+dfsg-2
Severity: grave
Justification: renders package unusable

Dear Maintainer,

When go to any project receive Err 500:

Started GET "/meteo/meteo" for 192.168.3.1 at 2018-11-29 21:43:55 +0200
Processing by ProjectsController#show as HTML
  Parameters: {"namespace_id"=>"meteo", "id"=>"meteo"}
Read fragment 
views/meteo/meteo/master/e34a8d6d6e4ae0c037caaf297bcf3f92877c76f5/application_settings/1-20181024143448558017000/false/false/success/en/9fe84ac8dd39e3a1ffb63dffbd2d29da
 (1.3ms)
Completed 500 Internal Server Error in 4925ms (ActiveRecord: 253.8ms)

ActionView::Template::Error (wrong number of arguments (given 1, expected 2)):
38: = sprite_icon('ellipsis_h', size: 12)
39:
40: .commiter
41:   - commit_author_link = commit_author_link(commit, avatar: 
false, size: 24)
42:   - commit_timeago = 
time_ago_with_tooltip(commit.authored_date, placement: 'bottom')
43:   - commit_text =  _('%{commit_author_link} authored 
%{commit_timeago}') % { commit_author_link: commit_author_link, commit_timeago: 
commit_timeago }
44:   #{ commit_text.html_safe }
  app/helpers/commits_helper.rb:210:in `clean'
  app/helpers/commits_helper.rb:136:in `commit_person_link'
  app/helpers/commits_helper.rb:10:in `commit_author_link'
  app/views/projects/commits/_commit.html.haml:41:in `block in 
_app_views_projects_commits__commit_html_haml__4510560646380060465_47275137929220'
  app/views/projects/commits/_commit.html.haml:18:in 
`_app_views_projects_commits__commit_html_haml__4510560646380060465_47275137929220'
  app/views/shared/_commit_well.html.haml:4:in 
`_app_views_shared__commit_well_html_haml__116673998689084462_47275138176200'
  app/views/projects/_files.html.haml:11:in 
`_app_views_projects__files_html_haml___338566813562587368_47275142850220'
  app/views/projects/show.html.haml:44:in 
`_app_views_projects_show_html_haml___1738900495709899687_47275132961580'
  lib/gitlab/i18n.rb:53:in `with_locale'
  lib/gitlab/i18n.rb:59:in `with_user_locale'
  app/controllers/application_controller.rb:412:in `set_locale'
  lib/gitlab/middleware/multipart.rb:101:in `call'
  lib/gitlab/request_profiler/middleware.rb:14:in `call'
  lib/gitlab/middleware/go.rb:17:in `call'
  lib/gitlab/etag_caching/middleware.rb:11:in `call'
  lib/gitlab/middleware/read_only/controller.rb:38:in `call'
  lib/gitlab/middleware/read_only.rb:16:in `call'
  lib/gitlab/middleware/basic_health_check.rb:25:in `call'
  lib/gitlab/request_context.rb:18:in `call'
  lib/gitlab/metrics/requests_rack_middleware.rb:27:in `call'
  lib/gitlab/middleware/release_env.rb:10:in `call'

I cannot see details about projects, activity, etc.

Expect to see the project page.

-- System Information:
Debian Release: buster/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.18.0-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US:en (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages gitlab depends on:
ii  asciidoctor   1.5.7.1-1
ii  bc1.07.1-2+b1
ii  bundler   1.16.1-3
ii  bzip2 1.0.6-9
ii  dbconfig-pgsql2.0.10
ii  debconf [debconf-2.0] 1.5.69
ii  gitlab-common 11.3.10+dfsg-2
ii  gitlab-shell  8.3.3+dfsg-1
ii  gitlab-workhorse  6.1.1+debian-3
ii  lsb-base  9.20170808
ii  nginx 1.14.1-1
ii  nginx-full [nginx]1.14.1-1
ii  nodejs8.11.2~dfsg-1
ii  npm   5.8.0+ds6-2
ii  openssh-client1:7.9p1-4
ii  postfix [mail-transport-agent]3.3.1-1+b1
ii  postgresql-client 11+197
ii  postgresql-client-10 [postgresql-client]  10.5-1
ii  postgresql-client-11 [postgresql-client]  11.1-1+b2
ii  postgresql-contrib11+197
ii  rake  12.3.1-3
ii  redis-server  5:5.0.2-1
ii  ruby  1:2.5.1
ii  ruby-ace-rails-ap 4.1.1-1
ii  ruby-acts-as-taggable-on  5.0.0-2
ii  ruby-addressable  2.5.2-1
ii  ruby-akismet  2.0.0-1
ii  ruby-arel 6.0.4-1
ii  ruby-asana0.6.0-1
ii  ruby-asciidoctor-plantuml 0.0.8-1
ii  ruby-asset-sync   2.4.0-1
ii  ruby-attr-encrypted   3.1.0-1
ii  ruby-babosa