We have a small non-profit and the website that was put together several years ago needs to be updated. The coders/web designers that were involved initially are no longer available. While we are looking to engage a new web designer, we are trying to fix the deployment error on our own - with the help of this forum. We have very limited knowledge, so any feedback that is offered is appreciated, especially if it can be provided in step-by-step fashion in laymanβs terms.
The site is www.cc4es.org. Within the Netlify log-in, it is just labeled as cc4es-website. The site data is in Github. It appears that there is an issue getting Github and Netlify to properly communicate with the deployment. There is an error on the deployment that refers to a folder that doesnβt exist. It is unclear how that can be resolved. I posted the issue on the Github forum but the answers there suggested coming to the Netlify forum.
I tried to put the full deployment log here but the system limits how much I can add. This is the bottom portion showing the errors.
6:03:20 AM: Build failed due to a user error: Build script returned non-zero exit code: 2
6:03:20 AM: Creating deploy upload records
6:03:20 AM: Failing build: Failed to build site
6:03:20 AM: Failed during stage βbuilding siteβ: Build script returned non-zero exit code: 2 (Search results for '"non-zero exit code: 2"' - Netlify Support Forums)
6:03:20 AM: Finished processing build request in 3m50.934283302s
I donβt know what is meant by framework as none of the examples you provide are familiar based upon what I see in Github. Here is a snippet of the folders/files on the Github site if that may answer that question:
Based on the build command in your netlify.toml file in the image, it seems your site is using middleman to build the website.
Make a backup of your current netlify.toml file before you make any changes just in case.
For middleman set all the publish values to β/buildβ
Also set all the command values to βmiddleman buildβ
Alternatively you can visit the link below (scroll to Connecting to Netlify section) on how to host Middleman sites on Netlify using the Netlify Browser UI.
If the problem persists, try to follow the steps from the beginning to see if it helps.
Let me know the outcome when you try the steps above.
Hello @dsgorelick , Glad to know you were able to fix the problem by following the suggested solution.
Kindly mark the suggested solution as solved in order to help others in the future who might also experience a similar problem.
Hiccup this morning. Hopefully the fix is straightforward - but I cannot see what to do.
The only changes I made were (1) data folder - about_us.yml file - I added a team member and shifted others around by simply doing free text, copy/paste within the yml file. I kept all of the same formatting. (2) Source folder - images folder - I uploaded two pictures and used the names of those pictures within the about_us.yml file. (3) source folder βabout-us.html.erbβ file - I edited two small areas of text without changing any formatting of the file.
I did not change the netlify.toml file or the deploy settings.
@dsgorelick The website design depends on what the organization wants. On that note I do not have any reference. However you can get local developers in your area. Or if you prefer remote developers you can get one on websites like Upwork. You can discuss with the Human Resource manager in your organization.
I noticed your github repo is public and it turns out there is some formatting issues in your about_us.yml file. Normally we do not debug code if it is not directly related to our services, however I also understand that yaml is a pain to deal with as @clarnx mentioned the following.
Making changes to yml files can be very tricky. The format could be the same but even a space or a tab could cause problems.
I found this site called https://yamlchecker.com/ where you could copy and paste the contents of your about_us.yml file and you will be able to know what is wrong.
Specifically you have an extra space on line 173 for Melissa Guillet and line 241 for Doug Victor