<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Virgile Dimon on Medium]]></title>
        <description><![CDATA[Stories by Virgile Dimon on Medium]]></description>
        <link>https://medium.com/@virgiledimon?source=rss-df9ed2ba4f69------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*So6uhVIQrFTHeW9znqJ6Vg.png</url>
            <title>Stories by Virgile Dimon on Medium</title>
            <link>https://medium.com/@virgiledimon?source=rss-df9ed2ba4f69------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 18 Nov 2026 17:25:24 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@virgiledimon/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Deploy Laravel App on Mutualized OVH Hosting]]></title>
            <link>https://medium.com/@virgiledimon/deploy-laravel-app-on-mutualize-ovh-hosting-8f57c5cb33fe?source=rss-df9ed2ba4f69------2</link>
            <guid isPermaLink="false">https://medium.com/p/8f57c5cb33fe</guid>
            <category><![CDATA[web-hosting]]></category>
            <category><![CDATA[symbolic-link]]></category>
            <category><![CDATA[ovh]]></category>
            <category><![CDATA[php]]></category>
            <category><![CDATA[laravel]]></category>
            <dc:creator><![CDATA[Virgile Dimon]]></dc:creator>
            <pubDate>Tue, 03 Feb 2026 22:50:23 GMT</pubDate>
            <atom:updated>2026-02-03T22:53:19.335Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/716/1*YeWWd2NYtLZBG_QZfmMtRA.png" /></figure><p>Ce court tutoriel est né d’un problème que j’ai rencontré pour la deuxième fois : le déploiement d’une application Laravel sur un hébergement mutualisé OVH. La première fois, j’ai fini par résoudre le problème, mais je n’ai pris aucune note. Ça m’a rattrapé !!!!!!</p><p>Le contexte est important. Sur ce type d’hébergement, certaines contraintes peuvent rapidement compliquer la tâche, surtout lorsqu’on est habitué à des environnements plus flexibles (VPS, serveurs dédiés, cPanel, etc.). Ici, pas d’accès SSH, donc impossible d’utiliser la ligne de commande, et aucun terminal embarqué comme on peut en trouver sur d’autres panels d’administration.</p><p>Bien entendu, ces limitations ne sont pas des bugs, mais des choix liés au type d’hébergement souscrit par le client.</p><p>En soi, le déploiement d’une application Laravel sur OVH n’est pas particulièrement compliqué. L’hébergeur met à disposition un accès FTP, et avec des outils comme FileZilla, l’envoi des fichiers se fait sans difficulté.</p><p>Le vrai point bloquant apparaît ailleurs : l’exécution de certaines commandes Artisan indispensables au bon fonctionnement de Laravel.<br> La plus problématique, dans mon cas, a été la génération du lien symbolique vers le dossier storage, normalement réalisée via la commande :</p><pre>php artisan storage:link</pre><p>Sans accès à un terminal, cette étape devient rapidement un casse-tête, alors qu’elle est pourtant essentielle pour la gestion des fichiers (uploads, images, cache, etc.).</p><p>Dans ce tutoriel, je vais donc montrer comment contourner cette limitation et déployer proprement une application Laravel sur un hébergement mutualisé OVH, même sans accès SSH.</p><h3>Déploiement via FTP et création du lien symbolique storage</h3><p>On va faire simple.</p><p>Tu te connectes au serveur <strong>via FTP</strong>, avec <strong>FileZilla</strong> par exemple.<br> Au préalable, <strong>en local</strong>, tu prépares ton application Laravel en version <strong>production</strong> (config, cache, .env, dépendances, etc.).</p><p>Ensuite, tu téléverses le code source sur le serveur, sans te poser de questions. Jusque-là, tout va bien.</p><p>Le problème apparaît lorsque ton application stocke des fichiers dans :</p><pre>storage/app/public</pre><p>et que tu as besoin du lien symbolique suivant, indispensable pour Laravel :</p><pre>public/storage -&gt; storage/app/public</pre><h3>La solution : créer le lien symbolique via un script PHP</h3><p>Le script PHP ci-dessous permet de faire exactement le même travail.</p><p>Mais attention, sur ce type d’hébergement, il faut <strong>créer un lien symbolique relatif</strong>, et non absolu. C’est souvent là que ça bloque.</p><h4>Étapes à suivre</h4><ol><li>Crée un fichier PHP (par exemple storage_link.php)</li><li>Colle-y le script</li><li>Téléverse ce fichier dans le dossier public de ton application sur le serveur</li><li>Assure-toi que le pointage du domaine n’a pas encore été modifié (le root doit encore pointer vers le dossier racine du projet)</li><li>Exécute le script via ton navigateur :</li></ol><pre>http://www.domain.com/public/storage_link.php</pre><p>Une fois exécuté, le lien symbolique sera créé.</p><h4>Script PHP</h4><pre>&lt;?php<br><br>$target = &#39;../storage/app/public&#39;;<br>$link = &#39;storage&#39;;<br><br>if (symlink($target, $link)) {<br>    echo &#39;Lien symbolique créé avec succès.&#39;;<br>} else {<br>    echo &#39;Erreur lors de la création du lien symbolique.&#39;;<br>}</pre><p>Après cela, tu peux vérifier que le dossier storageexiste bien dans public et pointe correctement vers storage/app/public.</p><p>Une fois le lien créé, <strong>supprime le script PHP</strong> pour des raisons de sécurité, puis ajuste le <strong>root folder</strong> du domaine vers le dossier public comme recommandé par Laravel.</p><p>See you !!!!!!!!!!!!!!!!!!!!!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8f57c5cb33fe" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to configure Laravel OCI for Oracle connection ?]]></title>
            <link>https://medium.com/@virgiledimon/how-to-configure-laravel-oci-for-oracle-connection-db2f11b36dd9?source=rss-df9ed2ba4f69------2</link>
            <guid isPermaLink="false">https://medium.com/p/db2f11b36dd9</guid>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[datasource]]></category>
            <category><![CDATA[oracle-database]]></category>
            <category><![CDATA[oci8]]></category>
            <category><![CDATA[laravel]]></category>
            <dc:creator><![CDATA[Virgile Dimon]]></dc:creator>
            <pubDate>Tue, 13 May 2025 19:35:54 GMT</pubDate>
            <atom:updated>2025-05-20T13:31:13.588Z</atom:updated>
            <content:encoded><![CDATA[<h3>Connecting a Laravel Project to an Oracle Database on Linux (Debian 12 and Ubuntu 24.04)</h3><p>As part of my daily tasks, I had to set up a client connection to an <strong>Oracle</strong> database within a <strong>Laravel</strong> project running on <strong>Linux</strong>. It was quite a challenge, so I decided to write this technical memo for future reference. I was provided with the <strong>database credentials</strong>, but before establishing the connection, I had to:</p><ul><li>Install and configure the <strong>Oracle Instant Client</strong> on the server.</li><li>Install and enable the <strong>OCI8</strong> extension for PHP.</li><li>Integrate and configure the Laravel package <strong>yajra/laravel-oci8</strong></li></ul><p>This memo is divided into three main sections:</p><ol><li>✅ <strong>Installing System Requirements</strong></li></ol><ul><li>Oracle Instant Client (basic + sdk)</li><li>Environment variables configuration</li><li>Resolving missing dependencies (e.g., libaio)</li></ul><p>2. ✅ <strong>Installing and Configuring the OCI8 PHP Extension</strong></p><ul><li>Installation via pecl</li><li>Checking dependencies with ldd</li><li>Enabling the extension in php.ini and restarting PHP/Apache</li></ul><p>3. ✅ <strong>Laravel Configuration with yajra/laravel-oci8</strong></p><ul><li>Adding the package via Composer</li><li>Setting up config/oracle.php</li><li>Choosing between direct connection (host, port, etc.) or using a TNS name</li></ul><p><strong>⚠️ Warning:</strong> Always adjust the <strong>tool versions</strong> (PHP, Oracle Instant Client, Laravel, etc.) according to your environment.</p><h3>🖥️ Environment Setup</h3><p>During the process, I worked on <strong>two different machines</strong>:</p><ul><li>💻 <strong>Local Machine</strong>: running <strong>Ubuntu 24.04</strong>, used for initial setup and testing.</li><li>🌐 <strong>Web Server</strong>: running <strong>Debian 12</strong>, where I replicated the final configuration for deployment.</li></ul><p>This distinction was important, especially when resolving compatibility issues (e.g., different package names like libaio1t64 on Ubuntu 24.04 vs. libaio1 on Debian 12).</p><p>Make sure to <strong>adapt the commands and package names</strong> according to the operating system you’re working with.</p><h3>Part 1: Requirements installation</h3><ol><li><strong>Update</strong></li></ol><pre>sudo apt update<br>sudo apt upgrade -y</pre><p><strong>2. Install Oracle Client</strong></p><pre>sudo apt-get install -y libaio1 alien<br></pre><p>On Ubuntu 24.04, libaio1 has been replaced by libaio1t64</p><p><strong>3. Create working and destination directory</strong></p><pre>sudo mkdir -p /home/oracle<br>cd /home/oracle</pre><p><strong>4. Download Oracle Instant Client</strong></p><p>Go on <a href="https://www.oracle.com/de/database/technologies/instant-client/linux-x86-64-downloads.html">https://www.oracle.com/de/database/technologies/instant-client/linux-x86-64-downloads.html</a> and download a must adapted version of the package. I thank <a href="https://gist.github.com/phartenfeller">pharten feller</a> for his memo about this installation.</p><pre># Basic<br>wget https://download.oracle.com/otn_software/linux/instantclient/1927000/oracle-instantclient19.27-basic-19.27.0.0.0-1.el8.x86_64.rpm<br># SDK<br>sudo wget https://download.oracle.com/otn_software/linux/instantclient/1927000/oracle-instantclient19.27-devel-19.27.0.0.0-1.x86_64.rpm</pre><p>You can also download the packages from <a href="https://yum.oracle.com/">https://yum.oracle.com</a></p><ul><li>Convert rpm package in other format for installation. deb in our case</li></ul><pre># Install Basic<br>sudo alien -i --scripts oracle-instantclient19.27-basic-19.27.0.0.0-1.el8.x86_64.rpm<br># Install SDK<br>sudo alien -i --scripts oracle-instantclient19.27-devel-19.27.0.0.0-1.x86_64.rpm</pre><p>You can remove the package to free space. After the above command, the package files are deployed in /usr/lib/oracle/19.27/client64/lib</p><ul><li>Check Oracle client SDK installation</li></ul><pre>ls /usr/include/oracle/19.27/client64/oci.h </pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/830/1*jqs_qqTEtvKm9sTWo-ufDg.png" /></figure><p><strong>5. Check if java is installed</strong></p><pre>java --version</pre><p>If java is not installed you will get below response</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/830/1*9ZlTThDkt0NZq-8nPYtcpg.png" /></figure><p><strong>6. Installation of JDK 21 LTS</strong></p><pre># Download and install package<br>sudo wget https://download.oracle.com/java/21/latest/jdk-21_linux-x64_bin.deb<br>sudo apt install libc6-i386 libc6-x32 libxi6 libxtst6 -y<br>sudo dpkg -i dpkg -i jdk-21_linux-x64_bin.deb<br><br># Set the Java variables using the following commands<br>export JAVA_HOME=/usr/lib/jvm/jdk-21.0.7-oracle-x64/<br>export PATH=$PATH:$JAVA_HOME/bin</pre><ul><li>Open the /etc/environment file with your favorite editor and paste the following line at the bottom</li></ul><pre>JAVA_HOME=&quot;/usr/lib/jvm/jdk-21.0.7-oracle-x64&quot;</pre><ul><li>Activate the Java environment variable and finalize java installation</li></ul><pre>source /etc/environment<br>update-alternatives --install /usr/bin/java java /usr/lib/jvm/jdk-21.0.7-oracle-x64/bin/java 1</pre><ul><li>Check installation</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/830/1*-3FDYpSP3CY1VJuNjPO6-w.png" /></figure><p><strong>7. Define environment variables</strong></p><ul><li>Create /etc/profile.d/oracle.sh and paste below code</li></ul><pre>export ORACLE_BASE=/usr/lib/oracle/19.27/client64<br>export ORACLE_HOME=/usr/lib/oracle/19.27/client64<br>export LD_LIBRARY_PATH=$ORACLE_HOME/lib<br>export PATH=$PATH:$ORACLE_HOME:$JAVA_HOME/bin<br>export TNS_ADMIN=/usr/lib/oracle/19.27/client64/network/admin</pre><ul><li>Enable variables</li></ul><pre>source /etc/profile.d/oracle.sh</pre><h3>Part 2 : Installation of oci8</h3><p><strong>Install pecl and php dev to use phpize</strong></p><pre>sudo apt-get install php-pear php-dev gcc</pre><p><strong>Install oci8 for php8.2+</strong></p><pre>sudo pecl install oci8</pre><blockquote>During installation, you will be asked to provide the path to the ORACLE_HOME directory. Enter instantclient,/usr/lib/oracle/19.27/client64/lib</blockquote><p><strong>Find the active php.ini file and add the oci8 extension</strong></p><pre>extension=oci8.so</pre><p><strong>Restart your apache2 server</strong></p><pre>sudo systemctl restart apache2</pre><p><strong>Troubleshooting for the module activation</strong></p><p>I had trouble activating the module. Simply adding it in <em>php.ini</em> didn’t work, so I created a module file in <em>/etc/php/8.3/mods-available</em> in which I added extension=oci8.so:</p><pre>echo &quot;extension=oci8.so&quot; | sudo tee /etc/php/8.3/mods-available/oci8.ini<br>sudo phpenmod oci8<br>sudo systemctl restart apache2</pre><p>Then, especially on my local Ubuntu 24.04 machine, I was confronted with an error with libaio1 which became libaio1t64 . I had to execute the following commands to get the module working.</p><ul><li>The issue i faced</li></ul><pre>PHP Warning:  PHP Startup: Unable to load dynamic library &#39;oci8.so&#39; (tried: /usr/lib/php/20230831/oci8.so (libaio.so.1: cannot open shared object file: No such file or directory), /usr/lib/php/20230831/oci8.so.so (/usr/lib/php/20230831/oci8.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0</pre><ul><li>Solving commands</li></ul><pre># Replace the old package<br>sudo ln -s /usr/lib/x86_64-linux-gnu/libaio.so.1t64 /usr/lib/x86_64-linux-gnu/libaio.so.1<br># Update cache<br>sudo ldconfig<br># check is the system now find ^libaio.so.1<br>ldd /usr/lib/php/20230831/oci8.so | grep libaio</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/873/1*QH8YEXlxERSMPlofFJTEwA.png" /></figure><h3>Part 3: Configuration of the Laravel App</h3><ol><li><strong>Install oci8 plugin with </strong><a href="http://getcomposer.org/doc/00-intro.md"><strong>Composer</strong></a></li></ol><p>Instead of use yajra/laravel-oci8 package, you can use <strong>oci_connect</strong> to create your connection.</p><pre>composer require yajra/laravel-oci8:&quot;^12.0&quot;<br># Use the correct version based on your laravel version</pre><p><strong>2. Open the file </strong><strong>config/app.php and then add following service provider:</strong></p><pre>&#39;providers&#39; =&gt; [<br>    // ...<br>    Yajra\Oci8\Oci8ServiceProvider::class,<br>],</pre><p><strong>3. Publish configuration settings</strong></p><pre>php artisan vendor:publish --tag=oracle</pre><p><strong>4. Go in config/oracle.php to set your data source credentials</strong></p><pre>&lt;?php<br><br>return [<br>    &#39;oracle&#39; =&gt; [<br>        &#39;driver&#39; =&gt; &#39;oracle&#39;,<br>        &#39;tns&#39; =&gt; env(&#39;DB_TNS&#39;, &#39;&#39;),<br>        &#39;host&#39; =&gt; env(&#39;DB_HOST&#39;, &#39;&#39;),<br>        &#39;port&#39; =&gt; env(&#39;DB_PORT&#39;, &#39;1521&#39;),<br>        &#39;database&#39; =&gt; env(&#39;DB_DATABASE&#39;, &#39;&#39;),<br>        &#39;service_name&#39; =&gt; env(&#39;DB_SERVICE_NAME&#39;, &#39;&#39;),<br>        &#39;username&#39; =&gt; env(&#39;DB_USERNAME&#39;, &#39;&#39;),<br>        &#39;password&#39; =&gt; env(&#39;DB_PASSWORD&#39;, &#39;&#39;),<br>        &#39;charset&#39; =&gt; env(&#39;DB_CHARSET&#39;, &#39;AL32UTF8&#39;),<br>        &#39;prefix&#39; =&gt; env(&#39;DB_PREFIX&#39;, &#39;&#39;),<br>        &#39;prefix_schema&#39; =&gt; env(&#39;DB_SCHEMA_PREFIX&#39;, &#39;&#39;),<br>        &#39;edition&#39; =&gt; env(&#39;DB_EDITION&#39;, &#39;ora$base&#39;),<br>        &#39;server_version&#39; =&gt; env(&#39;DB_SERVER_VERSION&#39;, &#39;11g&#39;),<br>        &#39;load_balance&#39; =&gt; env(&#39;DB_LOAD_BALANCE&#39;, &#39;yes&#39;),<br>        &#39;max_name_len&#39; =&gt; env(&#39;ORA_MAX_NAME_LEN&#39;, 30),<br>        &#39;dynamic&#39; =&gt; [],<br>        &#39;sessionVars&#39; =&gt; [<br>            &#39;NLS_TIME_FORMAT&#39; =&gt; &#39;HH24:MI:SS&#39;,<br>            &#39;NLS_DATE_FORMAT&#39; =&gt; &#39;YYYY-MM-DD HH24:MI:SS&#39;,<br>            &#39;NLS_TIMESTAMP_FORMAT&#39; =&gt; &#39;YYYY-MM-DD HH24:MI:SS&#39;,<br>            &#39;NLS_TIMESTAMP_TZ_FORMAT&#39; =&gt; &#39;YYYY-MM-DD HH24:MI:SS TZH:TZM&#39;,<br>            &#39;NLS_NUMERIC_CHARACTERS&#39; =&gt; &#39;.,&#39;,<br>        ],<br>    ],<br>];</pre><p><strong>5. Test your code by querying your database</strong></p><p>We are at the end of this memo.</p><p>Yeah we did it again !!!!!!!!!!!!!!!!!!!!!!!</p><p>Thanks for stopping by this memo during your research. I hope it helped.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=db2f11b36dd9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Jenkins Git cloning error when checking out scm]]></title>
            <link>https://medium.com/@virgiledimon/jenkins-git-cloning-error-when-checking-out-scm-f47af7da54c2?source=rss-df9ed2ba4f69------2</link>
            <guid isPermaLink="false">https://medium.com/p/f47af7da54c2</guid>
            <category><![CDATA[git]]></category>
            <category><![CDATA[linux-server]]></category>
            <category><![CDATA[gitlab]]></category>
            <category><![CDATA[jenkins]]></category>
            <category><![CDATA[laravel]]></category>
            <dc:creator><![CDATA[Virgile Dimon]]></dc:creator>
            <pubDate>Mon, 12 May 2025 10:51:48 GMT</pubDate>
            <atom:updated>2025-05-12T11:12:53.019Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hWCPbRcn-JPpSfJaTYQmCg.png" /></figure><p><strong>Que faire si déjà lors de l’exécution des premières lignes de mon script Jenkins, je rencontre une erreur de clonage dû à un problème avec Git ?</strong></p><pre>node {<br>    <br>    def gitTool = tool name: &#39;GitDefault&#39;, type: &#39;git&#39;<br><br>    stage(&quot;Checkout&quot;) {<br>        echo &quot;Checking out the latest code from GitLab&quot;<br>        // On nettoie le repertoire tout en conservant le dossier .git<br>        sh &#39;find . -mindepth 1 ! -name &quot;.git&quot; -exec rm -rf {} +&#39;<br>        // On fait le checking<br>        checkout scm<br>    }  <br>    <br>    stage(&quot;Build&quot;) {<br>        echo &quot;Building backend app from pipeline&quot;<br>        // Les instructions ici ...<br>    }<br><br>    stage(&quot;Deploy&quot;) {<br>        // Les instructions ici ...<br><br>        // Envoyer une notification par email avec le statut de la construction<br>        emailext (<br>            to: &#39;devops@virgiledimon.com&#39;,<br>            subject: &quot;Deployment Status Notification - Job &#39;Deploy&#39;&quot;,<br>            body: &quot;Hello Boss! The job ${env.JOB_NAME} in its version ${env.BUILD_NUMBER} ${message}.&quot;<br>        )<br>    }<br>}</pre><p>Dans cette publication, j’ai décidé de partager avec vous une <strong>démarche claire et testée</strong> pour résoudre l’erreur suivante rencontrée lors de l’exécution d’un script Jenkins comme le script que j’ai ajouté plus haut :</p><pre>The recommended git tool is: NONE<br>using credential Git-Repo2<br>Cloning the remote Git repository<br>Cloning with configured refspecs honoured and without tags<br>Cloning repository git@gitlab.com:myapp2/myapp_backend.git<br> &gt; git init /var/lib/jenkins/workspace/Backend_MyApp_v2_test # timeout=10<br>ERROR: Error cloning remote repo &#39;origin&#39;<br> at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)<br> at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)<br> at java.base/java.lang.Thread.run(Thread.java:840)<br>Caused by: hudson.plugins.git.GitException: Error performing git command: git init /var/lib/jenkins/workspace/Backend_MyApp_v2_test<br> at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2862)<br> at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2766)<br> at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2761)<br> at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommand(CliGitAPIImpl.java:2051)<br> at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$5.execute(CliGitAPIImpl.java:1071)<br> ... 13 more<br>Caused by: java.io.IOException: Cannot run program &quot;git&quot; (in directory &quot;/var/lib/jenkins/workspace/Backend_MyApp_v2_test&quot;): error=0, Failed to exec spawn helper: pid: 317187, exit value: 1<br> at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1143)<br> at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1073)<br> at hudson.Proc$LocalProc.&lt;init&gt;(Proc.java:252)<br> at hudson.Proc$LocalProc.&lt;init&gt;(Proc.java:221)<br> at hudson.Launcher$LocalLauncher.launch(Launcher.java:994)<br> at hudson.Launcher$ProcStarter.start(Launcher.java:506)<br> at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2839)<br> ... 17 more<br>Caused by: java.io.IOException: error=0, Failed to exec spawn helper: pid: 317187, exit value: 1<br> at java.base/java.lang.ProcessImpl.forkAndExec(Native Method)<br> at java.base/java.lang.ProcessImpl.&lt;init&gt;(ProcessImpl.java:314)<br> at java.base/java.lang.ProcessImpl.start(ProcessImpl.java:244)<br> at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1110)<br> ... 23 more<br>ERROR: Error cloning remote repo &#39;origin&#39;<br>ERROR: Maximum checkout retry attempts reached, aborting<br>Error cloning remote repo &#39;origin&#39; </pre><blockquote>Pour plus de confidentialité j’ai remplacé le nom du projet par MyApp.</blockquote><p>Cette erreur peut apparaître même si Git est installé, lorsque Jenkins n’arrive pas à exécuter des programmes système ou à cause d’un problème de PATH, de droits système, ou de ressources système, etc.</p><h3>Étapes de résolution</h3><p>Durant mes recherches, je suis tombé sur plusieurs approches et comme d’habitude, j’en ai testé plusieurs. En tout, j’ai pris environ une heure à m’énerver, à m’embrouiller, à fouiller, à tester avant de tomber sur la solution miracle pour moi. J’ai d’abord soupçonné l’authentification donc j’ai généré une autre clé <strong>SSH</strong>, mais cette fois-ci avec l’utilisateur jenkins lui-même. J’ai créé un jenkins Tool<strong>GitDefault</strong>, mais le problème persistait. J’ai même pensé que la commande de nettoyage posait problème. Au finish, j’ai résolu le problème en 3 étapes :</p><ol><li><strong>Vérifier que </strong><strong>git est bien installé</strong></li><li><strong>S’assurer que Jenkins a accès à Git</strong></li><li><strong>Redémarrer </strong><strong>jenkins</strong></li></ol><h4><strong>Step 1: Vérifier que </strong><strong>git est bien installé</strong></h4><ul><li>Connectez-vous à votre serveur Jenkins et exécutez :</li></ul><pre>which git<br>git --version </pre><ul><li>Si la commande n’est pas reconnue, installez Git :</li></ul><pre>sudo apt update<br>sudo apt install git -y</pre><p>Dans mon cas <strong>git </strong>était bien installé.</p><h4>Step 2: <strong>S’assurer que Jenkins a accès à Git</strong></h4><ul><li>Testez en tant qu’utilisateur jenkins :</li></ul><pre>sudo -u jenkins which git<br>sudo -u jenkins git --version</pre><ul><li>Si ça ne fonctionne pas, modifiez le fichier /etc/default/jenkins :</li></ul><pre>sudo nano /etc/default/jenkins</pre><ul><li>Et ajoutez ou ajustez la ligne suivante :</li></ul><pre>PATH=/usr/bin:/bin:/usr/local/bin</pre><p>Dans mon cas, cette directive n’existait pas dans mon fichier. Pourtant, mes scripts fonctionnaient bien. Peut-être que des travaux sur le serveur ont réveillé le problème qui dormait à attendre de me compliquer la vie un jour.</p><h4>Step 3: <strong>Redémarrer </strong><strong>jenkins</strong></h4><p>Bon, après la commande suivante, j’ai crié <em>Youpi !!!! </em>car le script est passé comme un lubrifiant de moteur.</p><pre>sudo systemctl restart jenkins</pre><p>Nous sommes à la fin de ce mémo. Merci d’être passé par ici dans tes recherches. On garde le cap pour plusieurs autres mémos sur les complications que l’informatique peut apporter à un jeune innocent passionné.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f47af7da54c2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Intégration d’un serveur de fichier linux distant dans une application Laravel]]></title>
            <link>https://medium.com/@virgiledimon/int%C3%A9gration-dun-serveur-de-fichier-linux-distant-dans-une-application-laravel-1bc501ebe222?source=rss-df9ed2ba4f69------2</link>
            <guid isPermaLink="false">https://medium.com/p/1bc501ebe222</guid>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[file-server]]></category>
            <category><![CDATA[laravel]]></category>
            <category><![CDATA[disk]]></category>
            <dc:creator><![CDATA[Virgile Dimon]]></dc:creator>
            <pubDate>Fri, 21 Feb 2025 11:28:49 GMT</pubDate>
            <atom:updated>2025-02-21T11:28:49.328Z</atom:updated>
            <content:encoded><![CDATA[<img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1bc501ebe222" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Superviser un cluster de serveurs linux avec Prometheus, Node Exporter et Grafana]]></title>
            <link>https://medium.com/@virgiledimon/superviser-un-cluster-de-serveurs-linux-avec-prometheus-node-exporter-et-grafana-c04b5ae4174e?source=rss-df9ed2ba4f69------2</link>
            <guid isPermaLink="false">https://medium.com/p/c04b5ae4174e</guid>
            <category><![CDATA[node-exporter]]></category>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[grafana]]></category>
            <category><![CDATA[prometheus]]></category>
            <category><![CDATA[grafana-prometheus]]></category>
            <dc:creator><![CDATA[Virgile Dimon]]></dc:creator>
            <pubDate>Fri, 21 Feb 2025 10:56:46 GMT</pubDate>
            <atom:updated>2025-02-21T10:56:46.012Z</atom:updated>
            <content:encoded><![CDATA[<h3>Superviser un cluster de serveurs linux avec Prometheus, Node_explorer et Grafana</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wkT7DN19ll9gdPYkL114tg.png" /></figure><h4><strong>Contexte</strong></h4><p>Nous avons mis en place une <strong>supervision avancée</strong> d’un cluster de <strong>quatre serveurs Linux</strong> en utilisant <strong>Prometheus, Node Exporter et Grafana</strong>.</p><p>L’architecture repose sur un serveur central <strong>DevOps-Server</strong>, où sont déployés <strong>Prometheus et Grafana</strong>, et trois serveurs clients sur lesquels <strong>Node Exporter</strong> collecte les métriques essentielles : <strong>charge CPU, mémoire, utilisation disque, trafic réseau, etc.</strong></p><p>Grâce à <strong>Prometheus</strong>, ces données sont stockées et exploitées pour générer des <strong>alertes proactives</strong>, tandis que <strong>Grafana</strong> permet de créer des tableaux de bord dynamiques offrant une visualisation en temps réel de l’état des serveurs. Cette solution garantit une <strong>meilleure réactivité</strong>, facilite le <strong>dépistage des anomalies</strong> et <strong>optimise la gestion des ressources</strong> de l’infrastructure <strong>on-premises</strong>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c04b5ae4174e" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>