Gitlab clone showing an error: The project you were looking for could not be found - gitlab

I have installed the GitLab community edition on my centos 7 server. When I try to clone a repository it shows remote: The project you were looking for could not be found. Please help with this.
Thanks in advance

Possible reasons:
you have entered wrong credentials, try using ssh clone by adding your key in gitlab settings
you do not have required authorization to access that repo, try accessing it via the browser first
that repository don't exists, create it

Maybe a domain name resolution issue? A network issue?
Is there a software firewall installed that forbids the terminal from making network call?
Possible network issues
My first hunch is a network issue or domain name resolution issue.
If you can connect at all to the repository, you should at least get a username and password challenge. If it was a credentials issue, you would at least get to that point.
Can you ping the URL? What if you use the IP address instead of the domain name? Just two things to try.
Dig into the porcelin
GitLab does provide a porcelin rake command that allows you to check connectivity. You might want to give this a try as part of your troubleshooting routines.
sudo gitlab-rake gitlab:tcp_check[ibm.com,80]

Related

Log in to Github via Fedora Server 37

I am using Mac OS as my main operating system. I installed fedora 37 server edition in a VMware workstation as part of my course in college. I am trying to customize my prompt using this repo https://github.com/andresgongora/synth-shell.
I have installed git already. I also have power line-fonts installed. The issue I am having comes with this command: git clone --recursive https://github.com/andresgongora/synth-shell.git
When typed and executed I get a prompt asking me for a GitHub username and password. I enter my credentials and I get an error stating "Authentication Failed for https://github.com/andresgongora/synth-shell.git" even though my credentials are correct.
I have tried putting my username and password (both combinations separately) and I get an event error. I configured a global username and that doesn't work either.
Am I supposed to log in to my GitHub before cloning this repo? Does anyone else experience this or have a workaround?
I have tried putting my username and password (both combinations separately) and I get an event error. I configured a global git username and that doesn't work either.
Sites used:
Can't clone a github repo on Linux via HTTPS
https://docs.github.com/en/get-started/getting-started-with-git/setting-your-username-in-git
https://documentation.red-gate.com/soco/troubleshooting/authentication-failed-when-cloning-from-github
Edit: I have also tried setting up a token to log in with. The only issue I am having is my linux distro does not support copy and paste so I am having to type everything out. When the password prompt comes up everything is blank to hide your password so I can't even check for spelling errors.
As of mid 2021, github the company is now enforcing git HTTPS authentication to use an access token rather than username+password. See this stackoverflow answer for full information.
One way forward is to generate an SSH key, and upload the public portion to github.
It warrants mentioning that this change is specific to Github Inc., the Microsoft subsidiary. There have not been any changes to git, the distributed version control system. Other, similar repository hosting services may not necessarily bar you from authenticating via username+password. Gitlab is one example.
I managed to fix my issue by using cockpit in my web browser. Doing this allowed my to copy and paste my information and everything worked first try.
Beginner problem.

Forgerock - emb.creatingfamsuffix.failure Error when creating the Default Configuration

I did install AM-5.1.1 and embed it on apache-tomcat-8.5.15 port:9595… looks good. I can start it.
The issue I face is regarding the Configuration Options –> Create Default Configuration.
After entering different passwords for the default OpenAM administrator, and default Policy Agent users, I get the following error:
emb.creatingfamsuffix.failure, refer to install.log under /Users/myUserName/openam for more information.
The install.log file didn’t help that much. Any idea how to solve this?
I got this error message and it was due to the iptables service not allowing the connection. Try turning off the iptables service (if you are running Linux) quickly and trying to run the configurator again. If this solves the problem, turn them back on and add a rule to allow your openam traffic.
Fixed... I had to do with OpenDj which was not installed. Did install and works fine now.
For anyone else that may come across this issue, I received this error because I had XAMPP running. Once I quit XAMPP everything was fine.

Can't access redmine from other PC

I followed this link http://www.codeproject.com/Articles/310678/Installing-Redmine-on-Windows-in-production to install redmine webapp (redmine.org) so I can use it for IIS.
I tried to access to the link from another PC but it gave me 404 error.
I am assuming that the problem is related to a configuration problem.
I don't know if I'm missing any step.
Any help!?
Thanks
I just reintall everything plus installing ruby project (Manual installation).
I followed these instruction http://www.helicontech.com/articles/installing-redmine-on-windows-in-production/
and it worked I don't know how!
Now I can access redmine from any other device inside the same network that the remine was installed in or by using VPN from outside the network.

Problems with _netrc, still getting clone failed

I've followed this tutorial on setting up git-gui so I can get access to google code git repositories but I am still getting clone failed. I really don't understand the problem. I have made a _netrc file and I have created a HOME environmental variable yet the problem is still there.
Is there anyone out there who could shed some light on this situation? It would be much appreciated. Thanks.
You can debug the process with a:
set GIT_CURL_VERBOSE=1
git clone https://code.google.com/p/yourProject
Your environment variable %HOME% should reference an existing directory (not necessarily C:\HOME as in the tutorial, but any path you want), where _netrc has been created.
Then, make sure your %HOME%\_netrc file does contain:
machine code.google.com
login (your Gmail login, which is usually your email address)
password (your Gmail password)

Hgweb "Push" in IIS returning 502 (bad gateway)

I've got hgweb up and running on II7 7 (on windows server 2008). The web interface works, and I can view, pull, and clone the repositories there. But I cannot push, doing so gives me a 502 error right after "searching for changes". Using --debug shows the last few lines as:
sending unbundle command
sending 622 bytes
HTTP Error: 502 (Bad Gateway)
I am using TortoiseHG to push, but the result is the same when using the mercurial command line.
I had followed the tutorial here: http://www.sjmdev.com/blog/post/2011/03/30/setting-mercurial-18-server-iis7-windows-server-2008-r2.aspx to setup hgweb.
Looks like an old question but someone is bound to come across it again. I was close to drawing a black circle on a wall and ... anyhow the issue for us was the way central repository was created. We cloned it from BitBucket while being Remote connected to the machine as local administrator.
The issue was in [Repository].hg folder. You need to set correct permissions on it. Try it with adding Everyone -> Full permissions for test purpose. Please make sure you change this to a dedicated network login or appropriate local account afterwards.
I was seeing the exact same behaviour - even push worked fine with exception of getting a Bad Gateway after all the time. After correct permissions were set the issue was gone.
Thinking about it now, probably the best solution is to add each network login that uses the repo to machine users and then set up access permissions to .hg folder to local users.
Hope it helps someone.
Try using the ISAPI module method instead of the CGI that executes phython.exe as documented here. There's also another related, and possibly duplicate question here as well.
Take a look at the 'Push_ssl' setting in your hgweb.config file.
I was getting the same error (had mine set to '*'), and was able to resolve it by removing the line entirely. Granted, this makes Mercurial somewhat less secure, but it lets me get by the configuration issue (for now) while I investigate properly configuring SSL on the server.
You may also have to review the 'Allow_push' setting in order to get past further errors (or take another look at your authorization).
NOTE: At least in my case, having 'push_ssl = false' wasn't enough as that resulted in further errors (authorization failed).
(Again this is simply a temporary solution until the server can be properly secured.)
It could happen by different reasons, to get more details about the error run
hg push --config ui.usehttp2=true --config ui.http2debuglevel=info
For example, problem may occur because of proxy server or just in case when the Mercurial Web Server "forgets" about repositories it needs to serve: in case if you are using TortoiseHg workbench go to Workbench UI, Repository -> Start Web Server, make sure that your repository is in the list of the served repos.
Try use https instead http in .hg/hgrc, I have resolve this problem for code.google.com.
I had this issue, and the problem ended up being the server running out of disk space.

Resources