Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Cong Chen
    @genctys_gitlab
    After i updated gitlab codebase and run rspec it always failed, before that everything works well.
    4 replies
    Cong Chen
    @genctys_gitlab
    I install GDK in my OS directly.
    Dan Bode
    @bodepd
    I'm trying to debug authorization for API calls, I have gdk setup and can start the rails app via "thin", but I'm not sure where I can drop "binding.pry" in order to be able to walk a debbugger through API authentication. Any tips of a good place to drop a breakpoint where I can walk through API calls?
    The Gitter Badger
    @gitter-badger
    [Lee Tickett, GitLab] If it's authentication it's a bit smoke and mirrors. There's a good article about debugging policies and you could drop byebug or binding.pry in the relevant controller
    5 replies
    [Lee Tickett, GitLab] What's the API call you want to debug?
    The Gitter Badger
    @gitter-badger
    [Lee Tickett, GitLab] Ah gotcha so you want more to know how it determines the user rather than the permissions let me see if I can find it :)
    [Lee Tickett, GitLab] maybe in lib/api/api_guard.rb ?
    Zamir Martins Filho
    @zmartins_gitlab
    For the internal API endpoints you might want to look into lib/api/internal/base.rb
    The Gitter Badger
    @gitter-badger
    [Lee Tickett, GitLab] can you use JWT? i've not looked into that before, we generate personal access tokens
    Dan Bode
    @bodepd
    it is mentioned in the docs as possible, but it's not clear if it only works if you are using Gitlab as the IDP
    there is a link there to using gitlab as an IDP, which makes me think it might only work for that use case
    The Gitter Badger
    @gitter-badger
    [Lee Tickett, GitLab] yeah i think that would be my expectation to be honest
    Dan Bode
    @bodepd
    I'd like to poke that code a bit, which goes back to the breakpoint that I'm looking for (I'm super new to the GL code and struggling a bit between what methods get invoked as a part of app init and as a part of the request)
    Dan Bode
    @bodepd
    nice! I got a breakpoint hit on the api guard, that is more than enough to get me started. thanks so much!
    The Gitter Badger
    @gitter-badger
    [Lee Tickett, GitLab] Amazing- great guess work on my part. I've never into that part but i've found grep is my friend... so if you're interested I just searched the codebase for authorize in /lib/api/*.rb
    [Lee Tickett, GitLab] and bam that was one of the first results
    Dan Bode
    @bodepd
    I figured it out: basically, this line of code: https://gitlab.com/gitlab-org/gitlab/-/blob/master/lib/gitlab/auth/auth_finders.rb#L228 , when API calls have a bearer token specified, it checks them against the database (and I'm assuming that doorkeeper puts tokens into a database), it looks like it doesn't even try to resolve api tokens against omniauth
    Karthik Sivadas
    @karthik.sivadas_gitlab
    Hi, can some please guide me to which issue to pick for a beginner to this repo? I have experience with Rails but would also love to learn Vue. Can someone please help?
    Tsegaselassie Tadesse
    @tsega_gitlab
    @karthik.sivadas_gitlab the best place to start is by filtering the issues by the tag good for new contributors; here is the link https://gitlab.com/gitlab-org/gitlab/-/issues?scope=all&utf8=%E2%9C%93&state=opened&label_name[]=good%20for%20new%20contributors
    Once you find something that you would like to contirbute to there would be a lot of folks here who would be able to help you. Including me :D
    Karthik Sivadas
    @karthik.sivadas_gitlab
    @tsega_gitlab Thank you very much
    Tsegaselassie Tadesse
    @tsega_gitlab
    :+1:
    Vladislav Boldakov
    @boldakov.vladislav_gitlab

    Hello, everyone
    I have some problem with installation asdf, on manjaro(arch linux)
    I make all steps and set /opt/asdf-vm/asdf.sh in ~/.bashrc as stated in pinned comment.
    But when i start bash i get:
    bash: /opt/asdf-vm/asdf.sh: Permission denied

    Typing asdf, and get:
    bash: asdf: command not found

    May someone had same issue, thanks.

    1 reply
    Simon
    @tsim0_twitter
    Hey @boldakov.vladislav_gitlab, seems like your current user is not allowed to execute /opt/asdf-vm/asdf.sh. You may want to set the exec bit using sudo chmod +x /opt/asdf-vm/asdf.sh :)
    1 reply
    The other error just means that the command asdf is not in your path, because you probably just have asdf.sh (you could try that after setting the exec bit)
    Bui Duong
    @iblack_gitlab
    Hello, everyone
    i need develop some feature for gitlab-raise on-premise, can some please guide me how to debug gitlab-rails on ubuntu?
    Vladislav Boldakov
    @boldakov.vladislav_gitlab

    Hi, everyone!
    I have installed gdk, chosen issue, created branch and now i try push my new (uncommitted)branch with commits but i get 403 error :((
    I try add ssh, but it doesn't solve my problem.

    // push my brach
    git push --set-upstream origin 217166-vladislav-use-template-button-keyboard
    
    Username for 'https://gitlab.com': // passing my credentionals
    Password for: // passing my credentionals
    
    // get 
    remote: You are not allowed to push code to this project.
    fatal: unable to access 'https://gitlab.com/gitlab-org/gitlab.git/': The requested URL returned error: 403

    Thank you in advance

    Zamir Martins Filho
    @zmartins_gitlab
    @boldakov.vladislav_gitlab it seems that there is a mismatch there. with GDK you have your local environment which will have a different address from your repository within GitLab(in case you have one).
    did you have a chance to go through https://gitlab.com/gitlab-org/gitlab-development-kit/-/blob/master/doc/index.md for your gdk setup?
    Zamir Martins Filho
    @zmartins_gitlab
    as an example, if I am cloning a repository from my local environment that's what I get in terms of repository:
    $ git remote -v
    origin    http://local.dev:3000/root/agent_project.git (fetch)
    origin    http://local.dev:3000/root/agent_project.git (push)
    5 replies
    The Gitter Badger
    @gitter-badger
    6 replies
    Samayan Bhattacharya
    @Samsy12_gitlab
    Can anyone plz say when the swags for January Hackathon will start shipping?
    David Planella
    @dpm:matrix.org
    [m]
    @cbacharakis_gitlab: could you help @Samsy12_gitlab with the question?
    Christos Bacharakis
    @cbacharakis_gitlab
    Thanks @dpm:matrix.org . Gi @Samsy12_gitlab ! We had some issues with the metrics, but expect to receive an email about swag by the end of this week.
    Samayan Bhattacharya
    @Samsy12_gitlab
    @dpm:matrix.org @cbacharakis_gitlab Ok. Thank you!
    Karthik Sivadas
    @karthik.sivadas_gitlab
    I am trying to setup Gitlab fork in my local system. After initial login and changing the password. I am getting an error. 2:accessor call: route repository accessor: get synced node: get shard for "default": primary is not healthy. debug_error_string:{"created":"@1614864631.721117000","description":"Error received from peer unix:/Users/karthiksivadas/Development/oss/gitlab/gitlab-development-kit/praefect.socket","file":"src/core/lib/surface/call.cc","file_line":1055,"grpc_message":"accessor call: route repository accessor: get synced node: get shard for "default": primary is not healthy","grpc_status":2}
    After looking at gdk doctor it say down: ./services/praefect-gitaly-0: 1s, want up; run: log: (pid 36164) 4923s. Can someone please tell me what I am doing wrong?
    Simon
    @tsim0_twitter
    Could you try to stop the GDK, run bundle exec rails db:migrate RAILS_ENV=development and start it again afterwards?
    Karthik Sivadas
    @karthik.sivadas_gitlab
    @tsim0_twitter gdk stop also stops the postgre so the migration is not working so tried migration in the running state. But the error still persists.
    Simon
    @tsim0_twitter
    And you did a restart after the migrations, right?
    I also had this problem some months ago, but I'm not sure how I fixed it... You could try a clean install to a different directory with gdk install gitlab_repo=..., that's probably the easiest option :D
    Karthik Sivadas
    @karthik.sivadas_gitlab
    Yes I tried that its not working should I delete the gdk repo inside my fork before installation. Little more information on the installation process:
    I am on MacOS Big Sur. I cloned the forked repo then I did a gdk init inside the repo followed by gdk install inside gdk directory.
    Simon
    @tsim0_twitter
    You don't have to manually clone your fork :)
    Just run gdk init from any directory, which will clone the GDK itself into a subdirectory called gitlab-development-kit. You can then cd to this directory and run gdk install gitlab_repo=git@gitlab.com:gitlab-org/gitlab.git from there, replacing gitlab-org/gitlab.git with your fork.
    That will clone all necessary repositories (including your fork) into corresponding subdirectories. The main GitLab project will be inside the subdirectory gitlab, which is where your fork will be installed and where you can make changes and commit them :)
    Karthik Sivadas
    @karthik.sivadas_gitlab
    Thanks for the info it was really helpful. Have setup the repo based on your suggestion. But gdk doctor after the password change shows the same error
    GDK Status
    --------------------------------------------------------------------------------
    The following services are not running but should be:
    
    down: ./services/praefect-gitaly-0: 0s, want up; run: log: (pid 38415) 3238s
    Simon
    @tsim0_twitter
    Does gdk update complete without errors?
    1 reply
    Feel free to PM me for further questions or to start a thread here, that way we could keep the main stream cleaner :)
    Rajendra kadam
    @raju249_gitlab
    @karthik.sivadas_gitlab - Can you do a gdk start && gdk tail and paste some output here? The error you have pasted above doesn't give a better picture. :pray:
    Karthik Sivadas
    @karthik.sivadas_gitlab
    Screenshot 2021-03-05 at 9.26.37 PM.png
    @raju249_gitlab This is the tail. praefect gitaly seems to fails