Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitb991111

Browse files
authored
Proj one troubleshooting (#290)
* Update requirements.md (#265)* Update requirements.mdAdded new webhook service sample* Update requirements.mdRemoved duplicated sections* Update with title change (#266)* Update with title changeChanged ingress-less to tunnel-based* Update architecture.md* Update applications-dashboard.md* Update user-settings.md* Update codefresh-classic.md (#267)* Update codefresh-classic.mdReplaced pipeline example with new one containing the complete pipeline* Update codefresh-classic.mdReplaced JIRA with ISSUE_TRACKING* Minor updates (#269)* Update monitor-manage-runtimes.md* Update installation.md* Update manage monitor topics (#270)* Update manage monitor topicsContent edits for git token update* Update monitor-manage-runtimes.md* Cf november release notes (#268)* Update whats-new.md* Update what's new with screenshotsAdded pics for new features* Update whats-new.mdAdded prelim list of bug fixes* Update whats-new.md* Update whats-new.md* Update whats-new.md* Update whats-new.md* Update whats-new.md* Cf report jira info (#271)* Update Jira integration and issue trackingUpdate Jira integration content with new arguments, screenshots* Minor updates* Update jira and issue-trackingUpdated content to reflect integration type selection with new screeshots* Update jira.mdFixed type* Update Jira with writeback and imagesAdded images for enrichment and deployment* Update jira.md* Update jira.md* Remove extra slashRemoved extra slash from path* Update installation.md (#272)* Update installation.mdAdded new ingress-less and Git provider flags* Update installation.md* Update installation.md* Update requirements.md* Update architecture.md* Update installation.md* Update manage runtimeAdded new CLI upgrade options* Update monitor-manage-runtimes.md* Update with cli banner screenshot* Update clients with new upgradeReplaced upgrade section in clients with new upgrade* Updates* Updates* Remove ingress-less term from tunnel-based (#273)* Fix x-refs (#274)* Fix x-refsFixed paths in x-refs* Update images.md* Add troubleshooting topics to ProjectOnePorted troubleshooting topics from Classic and added to nav yaml* Update personal-git-deprecation.md* Deleted unused topics from branch* Update home-content.yml* Update home-content.yml* Update troubleshooting topicsAdded screenshots* Update
1 parent3c95f40 commitb991111

File tree

55 files changed

+1629
-19
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+1629
-19
lines changed

‎_data/home-content.yml‎

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -83,24 +83,24 @@
8383
icon:images/home-icons/pipeline.svg
8484
url:''
8585
links:
86-
-title:Introduction to Pipelines
87-
localurl:/docs/pipelines/introduction-to-codefresh-pipelines/
88-
-title:Creating Pipelines
89-
localurl:/docs/pipelines/pipelines/
90-
-title:Pipeline triggers
91-
localurl:/docs/pipelines/triggers/
92-
-title:Monitoring pipelines
93-
localurl:/docs/pipelines/monitoring-pipelines/
94-
-title:Shared Configuration
95-
localurl:/docs/pipelines/shared-configuration/
96-
-title:Using secrets
97-
localurl:/docs/pipelines/secrets-store/
98-
-title:Pipeline caching
99-
localurl:/docs/pipelines/pipeline-caching/
100-
-title:Running pipelines locally
101-
localurl:/docs/pipelines/running-pipelines-locally/
102-
-title:Debugging pipelines
103-
localurl:/docs/pipelines/debugging-pipelines/
86+
-title:Introduction to Pipelines
87+
localurl:/docs/pipelines/introduction-to-codefresh-pipelines/
88+
-title:Creating Pipelines
89+
localurl:/docs/pipelines/pipelines/
90+
-title:Pipeline triggers
91+
localurl:/docs/pipelines/triggers/
92+
-title:Monitoring pipelines
93+
localurl:/docs/pipelines/monitoring-pipelines/
94+
-title:Shared Configuration
95+
localurl:/docs/pipelines/shared-configuration/
96+
-title:Using secrets
97+
localurl:/docs/pipelines/secrets-store/
98+
-title:Pipeline caching
99+
localurl:/docs/pipelines/pipeline-caching/
100+
-title:Running pipelines locally
101+
localurl:/docs/pipelines/running-pipelines-locally/
102+
-title:Debugging pipelines
103+
localurl:/docs/pipelines/debugging-pipelines/
104104

105105

106106
-title:Workflows

‎_data/nav.yml‎

Lines changed: 53 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,59 @@
406406
url:"/shared-configuration"
407407

408408

409-
409+
-title:Troubleshooting
410+
url:"/troubleshooting"
411+
pages:
412+
-title:Common Issues
413+
url:"/common-issues"
414+
sub-pages:
415+
-title:Can't find your organization repositories
416+
url:"/cant-find-your-organization-repositories"
417+
-title:Can’t find your private repositories
418+
url:"/cant-find-your-private-repositories"
419+
-title:'Clone step failed: Command [git checkout $REVISION] exited with code [1]'
420+
url:"/git-clone-step-issue"
421+
-title:Handling commit messages with a quote character
422+
url:"/handling-commit-messages-with-quotes"
423+
-title:Docker image does not exist or no pull access
424+
url:"/the-docker-image-does-not-exist-or-no-pull-access"
425+
-title:'Build step: No such file or directory'
426+
url:"/build-step-no-such-file-or-directory"
427+
-title:No Dockerfile found
428+
url:"/no-dockerfile-found"
429+
-title:Failed to tag image
430+
url:"/could-not-tag-image"
431+
-title:Error Code 137
432+
url:"/error-code-137"
433+
-title:Too many requests
434+
url:"/dockerhub-rate-limit"
435+
-title:Restoring data from pre-existing image hangs on
436+
url:"/restoring-data-from-pre-existing-image-hangs-on"
437+
-title:Disabling codefresh caching mechanisms
438+
url:"/disabling-codefresh-caching-mechanisms"
439+
-title:Pinning codefresh.yml for multi-git triggers
440+
url:"/multi-git-triggers"
441+
-title:Workflow terminated by the system
442+
url:"/workflow-terminated-by-system"
443+
-title:cf_export limitations
444+
url:"/cf-export-limitations"
445+
-title:Validation port warnings
446+
url:"/validation-port-warnings"
447+
-title:Forbidden Kubernetes resources
448+
url:"/forbidden-cluster-resources"
449+
-title:How to use SSH keys in freestyle steps
450+
url:"using-ssh-keys"
451+
-title:Failed to get accounts clusters during workflow
452+
url:"/failed-to-get-accounts-clusters-during-workflow"
453+
-title:Paging issues for builds and images
454+
url:"/paging-issues-builds-images"
455+
-title:Git step migration
456+
url:"/git-step-migration"
457+
-title:Personal Git Deprecation
458+
url:"/personal-git-deprecation"
459+
-title:GitOPs runtimes
460+
url:"/runtime-issues"
461+
410462

411463
-title:Terms and Privacy Policy
412464
url:"/terms-and-privacy-policy"

‎_docs/git-step-migration.md‎

Lines changed: 152 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,152 @@
1+
---
2+
title:"Projects require git clone steps"
3+
description:"Migrating from implicit to explicit git clone steps"
4+
group:troubleshooting
5+
toc:true
6+
---
7+
8+
9+
On May 2019, Codefresh introduced**Projects** as a way to group pipelines, instead of using*Repositories*. If you create a Codefresh account after this date, then you only get access to Projects and all the pipelines you create are under projects.
10+
11+
If, however, you have an existing Codefresh account, you will still get access to both dashboards (Projects and repositories) and you can work create/edit pipelines using both methods.
12+
13+
14+
##Git steps are now required
15+
16+
If you visit any existing pipeline you will see a warning message about git-clone steps.
17+
18+
{% include image.html
19+
lightbox="true"
20+
file="/images/troubleshooting/migration/clone-warning.png"
21+
url="/images/troubleshooting/migration/clone-warning.png"
22+
alt="Git clone warning on existing pipeline"
23+
caption="Git clone warning on existing pipeline"
24+
max-width="80%"
25+
%}
26+
27+
First of all, we need to make clear that**your pipeline will still work as before, without any changes**. The migration to projects is a gradual one and Codefresh does not force you to do anything in order to make things work.
28+
29+
The warning message explains how new pipelines need a git-clone step. Codefresh pipelines based on repositories automatically cloned the source code for you.
30+
31+
{% include image.html
32+
lightbox="true"
33+
file="/images/troubleshooting/migration/automatic-git-clone.png"
34+
url="/images/troubleshooting/migration/automatic-git-clone.png"
35+
alt="Automatic git clone step in repository based pipelines"
36+
caption="Automatic git clone step in repository based pipelines"
37+
max-width="60%"
38+
%}
39+
40+
This means that the repository-based pipelines used to check out the code automatically, and all subsequent pipeline steps could start work with it right away.
41+
42+
`codefresh.yml` (old syntax)
43+
{% highlight yaml %}
44+
{% raw %}
45+
version: '1.0'
46+
steps:
47+
#Code is already checked out. All files are visible
48+
PrintFileList:
49+
title: 'Listing files'
50+
image: alpine:latest
51+
commands:
52+
- 'ls -l'
53+
{% endraw %}
54+
{% endhighlight %}
55+
56+
For new pipelines this is no longer true. You need to add an[explicit clone step]({{site.baseurl}}/docs/codefresh-yaml/steps/git-clone/). The step should be named`main_clone`.
57+
58+
Here is the same pipeline in a project. The only thing you need to do is to add the`main_clone` segment before other steps:
59+
60+
`codefresh.yml` (new syntax)
61+
{% highlight yaml %}
62+
{% raw %}
63+
version: '1.0'
64+
steps:
65+
main_clone:
66+
title: 'Cloning main repository...'
67+
type: git-clone
68+
repo: '${{CF_REPO_OWNER}}/${{CF_REPO_NAME}}'
69+
revision: '${{CF_REVISION}}'
70+
git: my-git-provider
71+
PrintFileList:
72+
title: 'Listing files'
73+
image: alpine:latest
74+
commands:
75+
- 'ls -l'
76+
{% endraw %}
77+
{% endhighlight %}
78+
79+
The values for`CF_REPO_OWNER`,`CF_REPO_NAME`,`CF_REVISION` will automatically be filled by Codefresh according to the trigger the pipeline has. Make sure to replace the`my-git-provider` value with your own git provider as defined in[git integrations]({{site.baseurl}}/docs/integrations/git-providers/).
80+
81+
{% include image.html
82+
lightbox="true"
83+
file="/images/troubleshooting/migration/pipeline-triggers.png"
84+
url="/images/troubleshooting/migration/pipeline-triggers.png"
85+
alt="Triggers connected to pipeline"
86+
caption="Triggers connected to pipeline"
87+
max-width="60%"
88+
%}
89+
90+
When you run your pipeline, you can select the trigger that will be used to fill in the values of all the Codefresh variables.
91+
92+
93+
{% include image.html
94+
lightbox="true"
95+
file="/images/troubleshooting/migration/trigger-simulate.png"
96+
url="/images/troubleshooting/migration/trigger-simulate.png"
97+
alt="Use trigger to fill in CF values"
98+
caption="Use trigger to fill in CF values"
99+
max-width="60%"
100+
%}
101+
102+
103+
104+
##Why projects are better
105+
106+
Git clone steps are now required because pipelines are no longer bound to specific git repositories. Creating pipelines in the old way was restricting in the sense that all pipelines had to be connected to a specific git repository.
107+
108+
{% include image.html
109+
lightbox="true"
110+
file="/images/troubleshooting/migration/monolithic-pipelines.png"
111+
url="/images/troubleshooting/migration/monolithic-pipelines.png"
112+
alt="Pipeline limited to a single GIT repository"
113+
caption="Pipeline limited to a single GIT repository"
114+
max-width="50%"
115+
%}
116+
117+
This made pipeline re-use very difficult. With the new project grouping the pipeline is not linked to specific repository. Instead it gets all information from triggers.
118+
119+
{% include image.html
120+
lightbox="true"
121+
file="/images/troubleshooting/migration/add-new-microservice.png"
122+
url="/images/troubleshooting/migration/add-new-microservice.png"
123+
alt="Reusing pipelines for microservices"
124+
caption="Reusing pipelines for microservices"
125+
max-width="50%"
126+
%}
127+
128+
This means that you can easily re-use a single pipeline among different microservices by just adding more triggers.
129+
130+
If for some reason you still want a pipeline that always works against a specific git repository regardless of the trigger, then you can hard-code the details in the git clone step like below:
131+
132+
133+
`codefresh.yml`
134+
{% highlight yaml %}
135+
{% raw %}
136+
version: '1.0'
137+
steps:
138+
main_clone:
139+
title: 'Cloning main repository...'
140+
type: git-clone
141+
repo: 'my-github-username/foo'
142+
revision: 'master'
143+
git: my-github-integration
144+
PrintFileList:
145+
title: 'Listing files'
146+
image: alpine:latest
147+
commands:
148+
- 'ls -l'
149+
{% endraw %}
150+
{% endhighlight %}
151+
152+
The pipeline above will always checkout project`foo` regardless of the trigger that was used in order to launch it.
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
---
2+
title:"Common issues"
3+
description:""
4+
group:troubleshooting
5+
redirect_from:
6+
-/docs/common-issues/
7+
-/docs/troubleshooting/
8+
toc:true
9+
---
10+
In this section, we offer helpful information about issues you may encounter and questions you might have.
11+
12+
13+
##Repository issues
14+
15+
-[Can't find your organization repositories]({{site.baseurl}}/docs/troubleshooting/common-issues/cant-find-your-organization-repositories/)
16+
-[Can't find your private repositories]({{site.baseurl}}/docs/troubleshooting/common-issues/cant-find-your-private-repositories/)
17+
-[Clone step failed]({{site.baseurl}}/docs/troubleshooting/common-issues/git-clone-step-issue/)
18+
-[Handling commit messages with quotes]({{site.baseurl}}/docs/troubleshooting/common-issues/handling-commit-messages-with-quotes/)
19+
20+
##Docker issues
21+
22+
-[The docker image does not exist or no pull access]({{site.baseurl}}/docs/troubleshooting/common-issues/the-docker-image-does-not-exist-or-no-pull-access/)
23+
-[Build step: No such file or directory]({{site.baseurl}}/docs/troubleshooting/common-issues/build-step-no-such-file-or-directory/)
24+
-[No Dockerfile found]({{site.baseurl}}/docs/troubleshooting/common-issues/no-dockerfile-found/)
25+
-[Could not tag image](could-not-tag-image)
26+
-[Failed to build image: non-zero code 137](error-code-137/)
27+
-[Error pulling image configuration: toomanyrequests](dockerhub-rate-limit/)
28+
29+
##Build/pipeline issues
30+
31+
-[Restoring data from pre-existing image hangs on]({{site.baseurl}}/docs/troubleshooting/common-issues/restoring-data-from-pre-existing-image-hangs-on/)
32+
-[Disabling codefresh caching mechanisms]({{site.baseurl}}/docs/troubleshooting/common-issues/disabling-codefresh-caching-mechanisms/)
33+
-[Pinning codefresh.yml for multi-git triggers]({{site.baseurl}}/docs/troubleshooting/common-issues/multi-git-triggers/)
34+
-[Workflow process terminated by the system]({{site.baseurl}}/docs/troubleshooting/common-issues/workflow-terminated-by-system/)
35+
-[Multi-line variable gets truncated with cf_export](cf-export-limitations)
36+
37+
##Dynamic environment issues
38+
39+
-[Validation Port warnings]({{site.baseurl}}/docs/troubleshooting/common-issues/validation-port-warnings/)
40+
41+
##Deployment issues
42+
43+
-[Forbidden Cluster Resources]({{site.baseurl}}/docs/troubleshooting/common-issues/forbidden-cluster-resources/)
44+
-[Failed to get accounts clusters during workflow]({{site.baseurl}}/docs/troubleshooting/common-issues/failed-to-get-accounts-clusters-during-workflow/)
45+
46+
##API/CLI issues
47+
48+
-[Paging does not work for images and builds]({{site.baseurl}}/docs/troubleshooting/common-issues/paging-issues-builds-images/)
49+
50+
51+
52+
53+
54+
55+
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
---
2+
title:"Build step: No such file or directory"
3+
description:""
4+
group:troubleshooting
5+
sub_group:common-issues
6+
permalink:/:collection/troubleshooting/common-issues/build-step-no-such-file-or-directory/
7+
redirect_from:
8+
-/docs/build-step-no-such-file-or-directory/
9+
toc:true
10+
---
11+
12+
##Issue
13+
14+
Following error in the logs of the build step:
15+
16+
`Text`
17+
{% highlight text %}
18+
Step 3/6 : COPY /output /app
19+
lstat output: no such file or directory
20+
{% endhighlight %}
21+
22+
##Possible cause
23+
This issue generally occurs if you use an incorrect path to the Dockerfile or to the Build context.
24+
25+
##Solution
26+
Recheck, and use the correct path to Dockerfile and Build context
27+
28+
{:start="1"}
29+
1. The path to Dockerfile.
30+
31+
{:start="2"}
32+
2. The path to Build context.
33+
**Build context** is where we can find your Dockerfile as well as running commands. Your Dockerfile must be relative to this directory.
34+
35+
{% include
36+
image.html
37+
lightbox="true"
38+
file="/images/troubleshooting/no_such_file_directory.png"
39+
url="/images/troubleshooting/no_such_file_directory.png"
40+
alt="codefresh_no_such_file_directory.png"
41+
max-width="40%"
42+
%}
43+
44+
{{site.data.callout.callout_info}}
45+
In case with codefresh.yml, to specify the path to build context you need to use`working_directory`
46+
{{site.data.callout.end}}
47+
48+
`build step`
49+
{% highlight yaml %}
50+
step_name:
51+
type: build
52+
title: Step Title
53+
description: Free text description
54+
working_directory: path/to/buildcontext
55+
dockerfile: path/to/Dockerfile
56+
image_name: owner/new-image-name
57+
tag: develop
58+
{% endhighlight %}
59+
60+
##Related articles
61+
[Troubleshooting common issues]({{site.baseurl}}/docs/troubleshooting/common-issues)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp