Failed to construct 'URL': Invalid URL (getting this error trying to deploy my portfolio site to Netlify) - deployment

Trying to deploy my React portfolio site to Netlify. Installed Netlify with npm i netlify-cli.
Then, ran npx netlify init to get logged into Netlify and answer some of the setup questions within the terminal.
Next, the terminal question is now: "Netlify CLI needs access to your GitHub account to configure Webhooks and Deploy Keys. What would you like to do?"
When I select "Authorize with GitHub through app.netlify.com", I'm taken to a "Sign in to Netlify CLI" page on Netlify's website and the following error is on the page so I cannot move forward with the process:
Failed to construct 'URL': Invalid URL
Here is a picture of the error, for clarity.
Another piece of info is that earlier on I ran a build command which built me what I believe is a production build. The stuff from that is located in a build folder in my project directory.
Anyone know why I'm getting this error or a good way to get around it?

Related

why is my GitHub pages not working after installing vite?

Working on a 3d globe using threejs, I have the deployment running on GitHub pages, I had to install vite.js to facilitate the use of importing .glsl files for 3d stuff, after installing vite and trying to run GitHub pages I get the error "Canceling since a higher priority waiting request for 'pages build and deployment # main' exists" and every git push I have made after that has resulted in the error "docker pull failed with exit code 1" what does this mean?
the first screenshot is the list of failed deployments to GitHub pages.
the middle screenshot is the initial error.
the last screenshot is the error I've been getting ever since the initial one.
I have even made a new repository and still getting the same error which makes me think not has nothing to do with vite but something is wrong with GitHub.
Any advice would be appreciated.

"Site has not yet been deployed" after netlify deployment

I already tried a million times and not able to figure out where I am going wrong. I tried simple static website repo. I even added parcel bundler. I just get same error message.
I even forked netlify's own demo repo. And I got same message. Why I am not able to deploy the site?
I looked at forums, blogs and even answer in this forum and I am not finding clue to this exact message. I didn't have netlify.toml file. I added that file too and I don't see any change in deployment status.
Initially I was trying to just create site online by connecting to GitHub repo. When I tried Netlify-CLI I could see some deploy action happen. But server was not render. Found a guide here: https://github.com/Tanu-N-Prabhu/Multiplication-Table-App
Followed last 3 steps under Deployment section:
Go to your Netlify Dashboard to the project. Click on Site has not yet been Deployed. Again click on Deploy Preview this will unlock the Preview Deploy which is a temporary URL.
After viewing the Preview, click on Publish deploy option to deploy your project.
Now your project is live and deployed on the internet.
These steps worked. But Javascript files were not rendering. I wonder why the whole process is so cumbersome when they advertise everything is taken care by Netlify automatically? There is no document for Site has not yet been deployed on their site and google search only leads me to Page not found forum page.
You must add the --prod.
The command should look like this: netlify deploy --prod.
This fixed it for me.

How to deploy Publish site to GitHub Pages

I'm developing a static site using John Sundell's Publish framework. I've got the site mostly working, and I want to deploy it to my GitHub Pages repo. Publish includes a publishing step called .deploy(using: .gitHub("githubusername/githubusername.github.io", useSSH: false)) (to be clear, I did use my actual username). However, when I ran it the first time I received a pop-up authentication window, which I entered and it said incorrect password. Since then, whenever I run it, it just shows an error and doesn't offer any password window:
publish deploy
Fatal error: Error raised at top level: Publish encountered an error:
[step] Deploy using Git (https://github.com/githubusername/githubusername.github.io.git)
[path] GitDeploy
[info] Failed to create folder: file /AppleInternal/BuildRoot/Library/Caches/com.apple.xbs/Sources/swiftlang/swiftlang-1103.8.25.8/swift/stdlib/public/core/ErrorType.swift, line 200
/bin/bash: line 1: 9577 Illegal instruction: 4 swift run RyanBudishSite --deploy
❌ ShellOut encountered an error
Status code: 132
Message: "Fatal error: Error raised at top level: Publish encountered an error:
[step] Deploy using Git (https://github.com/githubusername/githubusername.github.io.git)
[path] GitDeploy
[info] Failed to create folder: file /AppleInternal/BuildRoot/Library/Caches/com.apple.xbs/Sources/swiftlang/swiftlang-1103.8.25.8/swift/stdlib/public/core/ErrorType.swift, line 200
/bin/bash: line 1: 9577 Illegal instruction: 4 swift run RyanBudishSite --deploy"
Output: ""
Does anyone have any experience getting Publish to deploy to GitHub Pages? Any tips/ideas/suggestions would be very useful
I have deployed my site in GutHub Pages using the built in .gitHub publishing step.
To deploy to GitHub Pages, Publish clones your githubusername/githubusername.github.io project into <YourProjcet>/.publish/GitDeploy. I am new to Swift and Publish, but by the looks of your error, it was unable to create the GitDeploy folder or clone your pages project there.
Run deploy once, after it fails go to the above location and see what is wrong. If there's some issue with pushing/fetching the GitHub Pages repo, resolve it manually and try running the publish deploy again.
If GitDeploy folder is not created, maybe creating one manually will fix it.

I am unable to deploy my website to Netlify

I have been creating this website for a few weeks now (I am fairly new to web-dev) and have just recently made a repo (on Github) for it.
Link:
https://github.com/Lathryx/TopShelf-Recipes
I want to deploy with Netlify however I am unable to. Netlify continuously gives a 404 error on the site(s) that I create. I think it has something to do with the publish directory but I'm not sure. I want it to open to landing.html.
The few times I have tried to deploy now I have tried:
No build command/publish directory.
No build command and the publish directory set to TopShelf Recipes
(have also tried /TopShelf Recipes).
No build command and the publish directory set to TopShelf Recipes/landing.html.
No build command and the publish directory set to /TopShelf Recipes/landing.
Image of Error:
I really don't know what to do. Does anybody know why this is happening?
The netlify/my-first-netlify-deploys demo project shows files with a netlify.toml to adtually generates the files.
Result: https://playwith.netlify.app/
But if there are no generation involved, then said files should be directly at the root folder of the repository, not in a subfolder.
The landing page of your site must be titled index.html (as I’ve found), this fixed it for me. Mine (originally) was titled landing.html.
I will keep this in mind in the future.

Can't create project or add ssh key on Gitlab

I just created a CentOS 6.3 VM and followed these instructions for the gitlab install: http://howto.basjes.nl/linux/installing-gitlab-on-centos-6
I've tried this installation with both gitlab v3.01 and v2.91.
Here is what is working for me:
I can complete the gitlab install without problem
From the command-line, I can use passwordless authentication from the the gitlab service account to the gitolite service account
From the command-line, I can clone the gitolite-admin repo, make changes, and pushes the changes back to the remote repo
I can start the rails web app
I can login the web management site
I can create new accounts and login with the new accounts
Here's what I can't do:
I can't create projects (Repos)
I can't add ssh keys
I always get the same error:
GitLab was unable to access your Gitolite system.
In the githost.log log file, I get a less than useful error:
ERROR -> Timeout::Error execution expired
I've double checked permissions
Reviewed the gitlab.yml config file
Ran through the four suggested troubleshooting tips from the web page
Tried different versions of gitlab, but no matter what I do, I keep getting the same error.
I'm stuck because the logs don't tell me anything and I am able to access the gitolite repositories with the gitlab service account without issue. Anybody have any success with the most recent versions of CentOS/Gitlab/Gitolite? Any help would be much appreciated, thanks!
I know this is kind of late - but for completeness.
I've run into the same problem doing installation on recent Debian version.
It is, or was for me, caused by an old version of redis-server.