{"id":9040,"date":"2024-01-11T15:32:00","date_gmt":"2024-01-11T15:32:00","guid":{"rendered":"https:\/\/www.wegneronline.com\/blog\/2024\/01\/11\/fehler-in-composer-cloning-failed\/"},"modified":"2024-02-22T08:39:42","modified_gmt":"2024-02-22T07:39:42","slug":"fehler-in-composer-cloning-failed","status":"publish","type":"post","link":"https:\/\/www.wegneronline.com\/blog\/2024\/01\/11\/fehler-in-composer-cloning-failed\/","title":{"rendered":"Fehler in composer: &#8222;Cloning failed&#8220;"},"content":{"rendered":"\n<p>Wer mit einer PHP-Webanwendung arbeitet kommt manchmal nicht am Composer vorbei. Im Regelfall ist das auch kein Problem, aber ich bin neulich auf folgende Fehlermeldung gesto\u00dfen:<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>Installing dependencies from lock file<br>\nVerifying lock file contents can be installed on current platform.<br>\nPackage operations: 169 installs, 0 updates, 0 removals<br>\n&nbsp; &#8211; Syncing symfony\/deprecation-contracts (v2.5.2) into cache<br>\nCloning failed using an ssh key for authentication, enter your GitHub credentials to access private repos<\/p>\n<\/blockquote>\n\n\n\n<p>Ein sehr merkw\u00fcrdiger Fehler.<\/p>\n\n\n\n<!--more-->\n\n\n\n<p>Aufgefordert wurde ich im weiteren Verlauf einen Access Token bei GitHub anzulegen.<\/p>\n\n\n\n<p>Aber auch die Angabe eines Tokens hat nicht geholfen, es kam dann eine Fehlermeldung, dass auth.json nicht existiert:<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>In JsonConfigSource.php line 245:<\/p>\n\n\n\n<p>&nbsp; file_put_contents(\/var\/www\/.config\/composer\/auth.json): Failed to open stream: No such file or directory<\/p>\n<\/blockquote>\n\n\n\n<p>Die L\u00f6sung ist: Das Verzeichnis &#8222;\/var\/www&#8220; war f\u00fcr den User www-data nicht schreibbar. Die Fehlermeldung &#8222;Cloning failed&#8220; bezieht sich also nicht auf den Download von GitHab (und der Vorschlag von Composer ist damit eine falsche F\u00e4hrte), sondern auf die nicht m\u00f6gliche Speicherung im angegebenen Pfad.<\/p>\n\n\n\n<p>Darauf muss man erstmal kommen \ud83d\ude42&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Wer mit einer PHP-Webanwendung arbeitet kommt manchmal nicht am Composer vorbei. Im Regelfall ist das auch kein Problem, aber ich bin neulich auf folgende Fehlermeldung gesto\u00dfen: Installing dependencies from lock file Verifying lock file contents can be installed on current platform. Package operations: 169 installs, 0 updates, 0 removals &nbsp; &#8211; Syncing symfony\/deprecation-contracts (v2.5.2) into &hellip; <a href=\"https:\/\/www.wegneronline.com\/blog\/2024\/01\/11\/fehler-in-composer-cloning-failed\/\" class=\"more-link\"><span class=\"screen-reader-text\">Fehler in composer: &#8222;Cloning failed&#8220;<\/span> weiterlesen<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"class_list":["post-9040","post","type-post","status-publish","format-standard","hentry","category-5-informatik"],"_links":{"self":[{"href":"https:\/\/www.wegneronline.com\/blog\/wp-json\/wp\/v2\/posts\/9040","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wegneronline.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wegneronline.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wegneronline.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wegneronline.com\/blog\/wp-json\/wp\/v2\/comments?post=9040"}],"version-history":[{"count":2,"href":"https:\/\/www.wegneronline.com\/blog\/wp-json\/wp\/v2\/posts\/9040\/revisions"}],"predecessor-version":[{"id":9138,"href":"https:\/\/www.wegneronline.com\/blog\/wp-json\/wp\/v2\/posts\/9040\/revisions\/9138"}],"wp:attachment":[{"href":"https:\/\/www.wegneronline.com\/blog\/wp-json\/wp\/v2\/media?parent=9040"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wegneronline.com\/blog\/wp-json\/wp\/v2\/categories?post=9040"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wegneronline.com\/blog\/wp-json\/wp\/v2\/tags?post=9040"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}