Closed webchl closed 2 years ago
Le problème est confirmé.
Je n'ai pas réussi à reproduire le même problème mais en attendant, vous pouvez vérifier que la librairie php-dom est installée :
sudo apt install php-dom
sudo systemctl restart apache2
Avez-vous la dernière version du projet ?
Dans les logs Apache j'ai trouvé cette erreur :
Allowed memory size of 134217728 bytes exhausted
Il faut augmenter la taille maximum allouée à PHP dans /etc/php/8.1/apache2/php.ini
memory_limit = 512M
et redémarer Apache
sudo systemctl restart apache2
Est-ce que le problème se produit en ne sélectionnant que la vue de l'écosystème ? C'est probablement lié à des tags HTML non correctement fermés dans les champs de la table entités ou relations.
Bonjour
Oui cela fait le meme probleme quand on selectionne uniquement ecosysteme
@.***
De : Didier Barzin @.> Envoyé : vendredi 10 juin 2022 07:35 À : dbarzin/mercator @.> Cc : webchl @.>; Author @.> Objet : Re: [dbarzin/mercator] ErrorException DOMDocument::loadXML() (Issue #130)
ATTENTION: Ce courrier provient d’un expéditeur extérieur à l’établissement, Ne cliquez sur aucun lien suspect et n'ouvrez aucune pièce jointe d'un expéditeur ou d’un contenu qui vous parait inhabituel. Ne communiquez pas vos identifiants sur des sites internet ou à la demande d’un interlocuteur. En cas de doute, contactez le Service Informatique '
Est-ce que le problème se produit en ne sélectionnant que la vue de l'écosystème ?
— Reply to this email directly, view it on GitHubhttps://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fdbarzin%2fmercator%2fissues%2f130%23issuecomment%2d1151956877&umid=96e75664-e607-486d-8ef6-a5820f2fa7f4&auth=1a3cb316522a2150df7bc4e6bd0090c1f2656ec1-76a832bad046346d8647421cf52887ab80e9a08c, or unsubscribehttps://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fnotifications%2funsubscribe%2dauth%2fASKA2SK2IRF3WNMUDRU7S6LVOLGTRANCNFSM5YJJA4LA&umid=96e75664-e607-486d-8ef6-a5820f2fa7f4&auth=1a3cb316522a2150df7bc4e6bd0090c1f2656ec1-1333033e2af63ab81de349e5ddd488eb42c1ab86. You are receiving this because you authored the thread.Message ID: @.**@.>>
Donc, c'est très probablement lié à des tags HTML non correctement fermés dans les champs de la table entités ou relations. Tu peux identifier le champ concerné en mettant en commentaire les lignes dans /app/Http/Controllers/Admin/CartographyController.php vers la ligne 175.
Desole mais je ne trouve ce qu’il faut commente. Comment mettre a jour la derniere version de mercator ? quelle commande ou autre ? Cela va peut etre corriger le probleme
merci
De : Didier Barzin @.> Envoyé : vendredi 10 juin 2022 11:57 À : dbarzin/mercator @.> Cc : webchl @.>; Author @.> Objet : Re: [dbarzin/mercator] ErrorException DOMDocument::loadXML() (Issue #130)
ATTENTION: Ce courrier provient d’un expéditeur extérieur à l’établissement, Ne cliquez sur aucun lien suspect et n'ouvrez aucune pièce jointe d'un expéditeur ou d’un contenu qui vous parait inhabituel. Ne communiquez pas vos identifiants sur des sites internet ou à la demande d’un interlocuteur. En cas de doute, contactez le Service Informatique '
Donc, c'est très probablement lié à des tags HTML non correctement fermés dans les champs de la table entités ou relations. Tu peux identifier le champ concerné en mettant en commentaire les lignes dans /app/Http/Controllers/Admin/CartographyController.php vers la ligne 175.
— Reply to this email directly, view it on GitHubhttps://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fdbarzin%2fmercator%2fissues%2f130%23issuecomment%2d1152188692&umid=d42c0c12-407b-4c99-b23d-a4086f65fff6&auth=1a3cb316522a2150df7bc4e6bd0090c1f2656ec1-0a0f8dbe7ed9fb276f6c1a60f681f3996b4468c0, or unsubscribehttps://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fnotifications%2funsubscribe%2dauth%2fASKA2SJVJRW352MWOLKRX6TVOMGNNANCNFSM5YJJA4LA&umid=d42c0c12-407b-4c99-b23d-a4086f65fff6&auth=1a3cb316522a2150df7bc4e6bd0090c1f2656ec1-2112555e90ad6e5d9c62f9397ef10fb10f038686. You are receiving this because you authored the thread.Message ID: @.**@.>>
Les étapes à suivre pour mettre à jour de Mercator sont documentées dans la procédure d'installation.
J’ai des erreurs lors dela mise a jour @.***:/var/www/mercator$ git pull warning: redirecting to https://github.com/dbarzin/mercator.git/ Updating 2af2b4b..791803d error: Your local changes to the following files would be overwritten by merge: .env.example .gitignore CHANGELOG.md Dockerfile INSTALL.md README.md app/AuditLog.php app/Certificate.php app/Console/Commands/CertificateExpiracy.php app/DhcpServer.php app/Dnsserver.php app/Entity.php app/Exceptions/Handler.php app/Gateway.php app/Http/Controllers/Admin/ActivityController.php app/Http/Controllers/Admin/ActorController.php app/Http/Controllers/Admin/AnnuaireController.php app/Http/Controllers/Admin/ApplicationBlockController.php app/Http/Controllers/Admin/ApplicationModuleController.php app/Http/Controllers/Admin/ApplicationServiceController.php app/Http/Controllers/Admin/AuditLogsController.php app/Http/Controllers/Admin/BayController.php app/Http/Controllers/Admin/BuildingController.php app/Http/Controllers/Admin/CartographyController.php app/Http/Controllers/Admin/CertificateController.php app/Http/Controllers/Admin/ConfigurationController.php app/Http/Controllers/Admin/DatabaseController.php app/Http/Controllers/Admin/DhcpServerController.php app/Http/Controllers/Admin/DnsserverController.php app/Http/Controllers/Admin/DomaineAdController.php app/Http/Controllers/Admin/EntityController.php app/Http/Controllers/Admin/ExternalConnectedEntityController.php app/Http/Controllers/Admin/FluxController.php app/Http/Controllers/Admin/ForestAdController.php app/Http/Controllers/Admin/GatewayController.php app/Http/Controllers/Admin/GlobalSearchController.php app/Http/Controllers/Admin/HomeController.php app/Http/Controllers/Admin/InformationController.php app/Http/Controllers/Admin/LanController.php app/Http/Controllers/Admin/LogicalServerController.php app/Http/Controllers/Admin/MApplicationController.php app/Http/Controllers/Admin/MacroProcessusController.php app/Http/Controllers/Admin/ManController.php app/Http/Controllers/Admin/NetworkController.php app/Http/Controllers/Admin/NetworkSwitchController.php app/Http/Controllers/Admin/OperationController.php app/Http/Controllers/Admin/PeripheralController.php app/Http/Controllers/Admin/PermissionsController.php app/Http/Controllers/Admin/PhoneController.php app/Http/Controllers/Admin/PhysicalRouterController.php app/Http/Controllers/Admin/PhysicalSecurityDeviceController.php app/Http/Controllers/Admin/PhysicalServerController.php app/Http/Controllers/Admin/PhysicalSwitchController.php app/Http/Controllers/Admin/ProcessController.php app/Http/Controllers/Admin/RelationController.php app/Http/Controllers/Admin/ReportController.php app/Http/Controllers/Admin/RolesController.php app/Http/Controllers/Admin/RouterController.php app/Http/Controllers/Admin/SecurityDeviceController.php app/Http/Controllers/Admin/SiteController.php app/Http/Controllers/Admin/StorageDeviceController.php app/Http/Controllers/Admin/SubnetworkController.php app/Http/Controllers/Admin/TaskController.php app/Http/Controllers/Admin/VlanController.php app/Http/Controllers/Admin/WanController.php app/Http/Controllers/Admin/WifiTerminalController.php app/Http/Controllers/Admin/WorkstationController.php app/Http/Controllers/Admin/ZoneAdminController.php app/Http/Controllers/Auth/LoginController.php app/Http/Middleware/Authenticate.php app/Http/Middleware/VerifyCsrfToken.php app/Http/Requests/MassDestroyManRequest.php app/Http/Requests/StoreDhcpServerRequest.php app/Http/Requests/StoreDnsserverRequest.php app/Http/Requests/StoreMApplicationRequest.php app/Http/Requests/StoreUserRequest.php app/Http/Requests/UpdateDhcpServerRequest.php app/Http/Requests/UpdateDnsserverRequest.php app/Http/Requests/UpdateMApplicationRequest.php app/Http/Requests/UpdateNetworkSwitchRequest.php app/LogicalServer.php app/MApplication.php app/Providers/AppServiceProvider.php app/Providers/AuthServiceProvider.php app/Providers/EventServiceProvider.php app/Providers/RouteServiceProvider.php app/Relation.php app/Role.php app/Traits/Auditable.php app/User.php composer.json config/app.php config/auth.php database/migrations/2021_05_08_191249_create_m_app error: The following untracked working tree files would be overwritten by merge: resources/views/errors/401.blade.php resources/views/errors/403.blade.php resources/views/errors/404.blade.php resources/views/errors/419.blade.php resources/views/errors/429.blade.php resources/views/errors/500.blade.php resources/views/errors/503.blade.php resources/views/errors/illustrated-layout.blade.php resources/views/errors/layout.blade.php resources/views/errors/minimal.blade.php Please move or remove them before you merge. Aborting
@.**@.>
De : Didier Barzin @.> Envoyé : vendredi 10 juin 2022 12:35 À : dbarzin/mercator @.> Cc : webchl @.>; Author @.> Objet : Re: [dbarzin/mercator] ErrorException DOMDocument::loadXML() (Issue #130)
ATTENTION: Ce courrier provient d’un expéditeur extérieur à l’établissement, Ne cliquez sur aucun lien suspect et n'ouvrez aucune pièce jointe d'un expéditeur ou d’un contenu qui vous parait inhabituel. Ne communiquez pas vos identifiants sur des sites internet ou à la demande d’un interlocuteur. En cas de doute, contactez le Service Informatique '
Les étapes à suivre pour mettre à jour de Mercator sont documentées dans la procédure d'installation.
— Reply to this email directly, view it on GitHubhttps://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fdbarzin%2fmercator%2fissues%2f130%23issuecomment%2d1152222423&umid=2fa8fd0c-3071-4e7c-9ede-6655a174f3bc&auth=1a3cb316522a2150df7bc4e6bd0090c1f2656ec1-93e1ee6f583fe650b5af15bb4da1bae8cd8c5bf5, or unsubscribehttps://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fnotifications%2funsubscribe%2dauth%2fASKA2SJMPRBVSVUZR7DKMHDVOMK57ANCNFSM5YJJA4LA&umid=2fa8fd0c-3071-4e7c-9ede-6655a174f3bc&auth=1a3cb316522a2150df7bc4e6bd0090c1f2656ec1-7d3374a151594dc22e9cf935f0c5666153762707. You are receiving this because you authored the thread.Message ID: @.**@.>>
Etrange, il semble que les fichiers ont été modifiés. Tu peux faire un git pull --force Pense à prendre un snapshot de la VM avant...
Meme probleme avec git pull --force
De : Didier Barzin @.> Envoyé : vendredi 10 juin 2022 13:54 À : dbarzin/mercator @.> Cc : webchl @.>; Author @.> Objet : Re: [dbarzin/mercator] ErrorException DOMDocument::loadXML() (Issue #130)
ATTENTION: Ce courrier provient d’un expéditeur extérieur à l’établissement, Ne cliquez sur aucun lien suspect et n'ouvrez aucune pièce jointe d'un expéditeur ou d’un contenu qui vous parait inhabituel. Ne communiquez pas vos identifiants sur des sites internet ou à la demande d’un interlocuteur. En cas de doute, contactez le Service Informatique '
Etrange, il semble que les fichiers ont été modifiés. Tu peux faire un git pull --force Pense à prendre un snapshot de la VM avant...
— Reply to this email directly, view it on GitHubhttps://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fdbarzin%2fmercator%2fissues%2f130%23issuecomment%2d1152279573&umid=f3805158-0868-44e9-8aab-fe890319a4ff&auth=1a3cb316522a2150df7bc4e6bd0090c1f2656ec1-6f0ca58488e2072ebc4150d81a30485a02d11244, or unsubscribehttps://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fnotifications%2funsubscribe%2dauth%2fASKA2SLOLLXDDSW5EY5BSSLVOMUEBANCNFSM5YJJA4LA&umid=f3805158-0868-44e9-8aab-fe890319a4ff&auth=1a3cb316522a2150df7bc4e6bd0090c1f2656ec1-d4dd00bbac29377e44be7df8d7ae7e6e4b3949fb. You are receiving this because you authored the thread.Message ID: @.**@.>>
git reset --hard git pull
Pareil dsl
Geoffroy Guégan Service Informatique Centre Hospitalier de Loches 0247913370 @.**@.>
De : Didier Barzin @.> Envoyé : vendredi 10 juin 2022 14:17 À : dbarzin/mercator @.> Cc : webchl @.>; Author @.> Objet : Re: [dbarzin/mercator] ErrorException DOMDocument::loadXML() (Issue #130)
ATTENTION: Ce courrier provient d’un expéditeur extérieur à l’établissement, Ne cliquez sur aucun lien suspect et n'ouvrez aucune pièce jointe d'un expéditeur ou d’un contenu qui vous parait inhabituel. Ne communiquez pas vos identifiants sur des sites internet ou à la demande d’un interlocuteur. En cas de doute, contactez le Service Informatique '
git reset --hard git pull
— Reply to this email directly, view it on GitHubhttps://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fdbarzin%2fmercator%2fissues%2f130%23issuecomment%2d1152297172&umid=42815717-3803-4a8d-bffd-c72dce811b53&auth=1a3cb316522a2150df7bc4e6bd0090c1f2656ec1-c0725284846e98811ecaf3c7a2c0790a747b315a, or unsubscribehttps://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fnotifications%2funsubscribe%2dauth%2fASKA2SLCIN2QLXVLXNFG543VOMW2ZANCNFSM5YJJA4LA&umid=42815717-3803-4a8d-bffd-c72dce811b53&auth=1a3cb316522a2150df7bc4e6bd0090c1f2656ec1-b0be5b1f35f902dd973e86844e008e450d058ac5. You are receiving this because you authored the thread.Message ID: @.**@.>>
Tu peux
@.***:/var/www$ git pull github.com/dbarzin/mercator fatal: not a git repository (or any of the parent directories): .git
Geoffroy Guégan Service Informatique Centre Hospitalier de Loches 0247913370 @.**@.>
De : Didier Barzin @.> Envoyé : vendredi 10 juin 2022 14:50 À : dbarzin/mercator @.> Cc : webchl @.>; Author @.> Objet : Re: [dbarzin/mercator] ErrorException DOMDocument::loadXML() (Issue #130)
ATTENTION: Ce courrier provient d’un expéditeur extérieur à l’établissement, Ne cliquez sur aucun lien suspect et n'ouvrez aucune pièce jointe d'un expéditeur ou d’un contenu qui vous parait inhabituel. Ne communiquez pas vos identifiants sur des sites internet ou à la demande d’un interlocuteur. En cas de doute, contactez le Service Informatique '
Tu peux
— Reply to this email directly, view it on GitHubhttps://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fdbarzin%2fmercator%2fissues%2f130%23issuecomment%2d1152325040&umid=a9987cdd-1bb9-4655-9049-13730a6cb7ed&auth=1a3cb316522a2150df7bc4e6bd0090c1f2656ec1-5571618ae1f6907ae393dff64956bdc115492dfa, or unsubscribehttps://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fnotifications%2funsubscribe%2dauth%2fASKA2SJ37DP4K6J72QS4QB3VOM2XXANCNFSM5YJJA4LA&umid=a9987cdd-1bb9-4655-9049-13730a6cb7ed&auth=1a3cb316522a2150df7bc4e6bd0090c1f2656ec1-f9668c7688efa1e53a7a064c1338d7d827640556. You are receiving this because you authored the thread.Message ID: @.**@.>>
git clone https://www.github.com/dbarzin/mercator
Ca avance mais… @.:/var/www/mercator$ git pull fatal: not a git repository (or any of the parent directories): .git @.:/var/www/mercator$ php artisan migrate Could not open input file: artisan
De : Didier Barzin @.> Envoyé : vendredi 10 juin 2022 15:07 À : dbarzin/mercator @.> Cc : webchl @.>; Author @.> Objet : Re: [dbarzin/mercator] ErrorException DOMDocument::loadXML() (Issue #130)
ATTENTION: Ce courrier provient d’un expéditeur extérieur à l’établissement, Ne cliquez sur aucun lien suspect et n'ouvrez aucune pièce jointe d'un expéditeur ou d’un contenu qui vous parait inhabituel. Ne communiquez pas vos identifiants sur des sites internet ou à la demande d’un interlocuteur. En cas de doute, contactez le Service Informatique '
git clone https://www.github.com/dbarzin/mercatorhttps://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2fwww.github.com%2fdbarzin%2fmercator&umid=dc9f7c64-0cad-4023-ae31-c4a8811297b9&auth=1a3cb316522a2150df7bc4e6bd0090c1f2656ec1-377234af79bca684fb154e2c7cd212506fa44393
— Reply to this email directly, view it on GitHubhttps://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fdbarzin%2fmercator%2fissues%2f130%23issuecomment%2d1152340895&umid=dc9f7c64-0cad-4023-ae31-c4a8811297b9&auth=1a3cb316522a2150df7bc4e6bd0090c1f2656ec1-aaec4bfb3f9b355d728f37a84c7adb27f503f3e6, or unsubscribehttps://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fnotifications%2funsubscribe%2dauth%2fASKA2SMTTMFSXYLDC33MA5TVOM4V3ANCNFSM5YJJA4LA&umid=dc9f7c64-0cad-4023-ae31-c4a8811297b9&auth=1a3cb316522a2150df7bc4e6bd0090c1f2656ec1-98f134bdf3f949cdbfe09f2aa07aa521c31aebc3. You are receiving this because you authored the thread.Message ID: @.**@.>>
Je restaure et essaie de réappliquer la maj
De : Didier Barzin @.> Envoyé : vendredi 10 juin 2022 15:07 À : dbarzin/mercator @.> Cc : webchl @.>; Author @.> Objet : Re: [dbarzin/mercator] ErrorException DOMDocument::loadXML() (Issue #130)
ATTENTION: Ce courrier provient d’un expéditeur extérieur à l’établissement, Ne cliquez sur aucun lien suspect et n'ouvrez aucune pièce jointe d'un expéditeur ou d’un contenu qui vous parait inhabituel. Ne communiquez pas vos identifiants sur des sites internet ou à la demande d’un interlocuteur. En cas de doute, contactez le Service Informatique '
git clone https://www.github.com/dbarzin/mercatorhttps://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2fwww.github.com%2fdbarzin%2fmercator&umid=dc9f7c64-0cad-4023-ae31-c4a8811297b9&auth=1a3cb316522a2150df7bc4e6bd0090c1f2656ec1-377234af79bca684fb154e2c7cd212506fa44393
— Reply to this email directly, view it on GitHubhttps://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fdbarzin%2fmercator%2fissues%2f130%23issuecomment%2d1152340895&umid=dc9f7c64-0cad-4023-ae31-c4a8811297b9&auth=1a3cb316522a2150df7bc4e6bd0090c1f2656ec1-aaec4bfb3f9b355d728f37a84c7adb27f503f3e6, or unsubscribehttps://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fnotifications%2funsubscribe%2dauth%2fASKA2SMTTMFSXYLDC33MA5TVOM4V3ANCNFSM5YJJA4LA&umid=dc9f7c64-0cad-4023-ae31-c4a8811297b9&auth=1a3cb316522a2150df7bc4e6bd0090c1f2656ec1-98f134bdf3f949cdbfe09f2aa07aa521c31aebc3. You are receiving this because you authored the thread.Message ID: @.**@.>>
git clone https://www.github.com/dbarzin/mercator
Meme apres restauration je relance la mise a jour et idem
Et quand je supprime le dossier mercator et que je fais ensuite un git clone https://www.github.com/dbarzin/mercatorhttps://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2fwww.github.com%2fdbarzin%2fmercator&umid=d312f2d8-5572-409c-8006-01e7b1d1c0cc&auth=1a3cb316522a2150df7bc4e6bd0090c1f2656ec1-0a5e5239db410a537a242b6f07829e8987634e03 plus rien ne fonctionne Est-ce que je peux récupérer les fichiers php et les ecraser sur la prod ? Est-ce que cela suffira pour la maj ?
De : Didier Barzin @.> Envoyé : vendredi 10 juin 2022 15:47 À : dbarzin/mercator @.> Cc : webchl @.>; Author @.> Objet : Re: [dbarzin/mercator] ErrorException DOMDocument::loadXML() (Issue #130)
ATTENTION: Ce courrier provient d’un expéditeur extérieur à l’établissement, Ne cliquez sur aucun lien suspect et n'ouvrez aucune pièce jointe d'un expéditeur ou d’un contenu qui vous parait inhabituel. Ne communiquez pas vos identifiants sur des sites internet ou à la demande d’un interlocuteur. En cas de doute, contactez le Service Informatique '
git clone https://www.github.com/dbarzin/mercatorhttps://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2fwww.github.com%2fdbarzin%2fmercator&umid=d312f2d8-5572-409c-8006-01e7b1d1c0cc&auth=1a3cb316522a2150df7bc4e6bd0090c1f2656ec1-0a5e5239db410a537a242b6f07829e8987634e03
— Reply to this email directly, view it on GitHubhttps://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fdbarzin%2fmercator%2fissues%2f130%23issuecomment%2d1152381485&umid=d312f2d8-5572-409c-8006-01e7b1d1c0cc&auth=1a3cb316522a2150df7bc4e6bd0090c1f2656ec1-d07172c8fe2c9b30b733d6c6fc4d7d585d3c3d20, or unsubscribehttps://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fnotifications%2funsubscribe%2dauth%2fASKA2SK7DU4VJC2VWSUJT4LVONBN7ANCNFSM5YJJA4LA&umid=d312f2d8-5572-409c-8006-01e7b1d1c0cc&auth=1a3cb316522a2150df7bc4e6bd0090c1f2656ec1-24f6d883a5c6c897608970fb7266129bc38adaec. You are receiving this because you authored the thread.Message ID: @.**@.>>
Oui, tu peux refaire l'installation depuis le début. Ce qui change est qu'avant de migrer la base de données tu dois restaurer le backup de la base de données puis faire "php artisan migrate" sans --seed Le reste de l'installation est identique.
Geoffroy, As-tu réussi à réinstaller Mercator ? Didier
Bonjour,
Désolé du retard ! bcp de travail
Je suis reparti d’une sauvegarde d’avant les essais de mise a jour
Voici ce que je compte faire suivant tes conseils:
mysqldump mercator > mercator_backup.sql sudo apt update && sudo apt upgrade
cd /var/www/
git clone https://www.github.com/dbarzin/mercator
mysql mercator < mercator_backup.sql php artisan migrate composer update php artisan config:clear && php artisan view:clear
Cela te semble jouable ?
Merci
De : Didier Barzin @. Envoyé : lundi 13 juin 2022 23:14 À : dbarzin/mercator @.> Cc : webchl @.>; Author @.> Objet : Re: [dbarzin/mercator] ErrorException DOMDocument::loadXML() (Issue #130)
ATTENTION: Ce courrier provient d’un expéditeur extérieur à l’établissement, Ne cliquez sur aucun lien suspect et n'ouvrez aucune pièce jointe d'un expéditeur ou d’un contenu qui vous parait inhabituel. Ne communiquez pas vos identifiants sur des sites internet ou à la demande d’un interlocuteur. En cas de doute, contactez le Service Informatique '
Geoffroy, As-tu réussi à réinstaller Mercator ? Didier
— Reply to this email directly, view it on GitHubhttps://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fdbarzin%2fmercator%2fissues%2f130%23issuecomment%2d1154445463&umid=101eee51-54a7-45d9-9011-033add0cff41&auth=1a3cb316522a2150df7bc4e6bd0090c1f2656ec1-50207f82b79230fea4c04e6fb51f58998639ec13, or unsubscribehttps://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fnotifications%2funsubscribe%2dauth%2fASKA2SMMRA5KD5XG4TVUW7TVO6QBVANCNFSM5YJJA4LA&umid=101eee51-54a7-45d9-9011-033add0cff41&auth=1a3cb316522a2150df7bc4e6bd0090c1f2656ec1-b08fd5a323771babdd809fb6707b45bee6c7f07e. You are receiving this because you authored the thread.Message ID: @.**@.>>
Le backup et la restauration de la db n'est pas nécessaire. Voici ma proposition :
sudo apt update && sudo apt upgrade
cp /var/www/mercator/.env /tmp rm -rf /var/www/mercator
cd /var/www/ git clone https://www.github.com/dbarzin/mercator
cd mercator mv /tmp/.env .
php artisan migrate
composer update php artisan vendor:publish --all
sudo chown -R www-data:www-data /var/www/mercator sudo chmod -R 775 /var/www/mercator/storage
Tout se passe bien jusqu’à :
sudo php artisan migrate PHP Warning: require(/var/www/mercator/vendor/autoload.php): failed to open stream: No such file or directory in /var/www/mercator/artisan on line 18 PHP Stack trace: PHP 1. {main}() /var/www/mercator/artisan:0 PHP Fatal error: require(): Failed opening required '/var/www/mercator/vendor/autoload.php' (include_path='.:/usr/share/php') in /var/www/mercator/artisan on line 18 PHP Stack trace: PHP 1. {main}() /var/www/mercator/artisan:0 @.***:/var/www/mercator$
De : Didier Barzin @. Envoyé : mercredi 15 juin 2022 13:34 À : dbarzin/mercator @.> Cc : webchl @.>; Author @.> Objet : Re: [dbarzin/mercator] ErrorException DOMDocument::loadXML() (Issue #130)
ATTENTION: Ce courrier provient d’un expéditeur extérieur à l’établissement, Ne cliquez sur aucun lien suspect et n'ouvrez aucune pièce jointe d'un expéditeur ou d’un contenu qui vous parait inhabituel. Ne communiquez pas vos identifiants sur des sites internet ou à la demande d’un interlocuteur. En cas de doute, contactez le Service Informatique '
Le backup et la restauration de la db n'est pas nécessaire. Voici ma proposition :
sudo apt update && sudo apt upgrade
cp /var/www/mercator/.env /tmp rm -rf /var/www/mercator
cd /var/www/ git clone https://www.github.com/dbarzin/mercatorhttps://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2fwww.github.com%2fdbarzin%2fmercator&umid=22732367-b012-49ed-922f-1b7d3ad27d3e&auth=1a3cb316522a2150df7bc4e6bd0090c1f2656ec1-3524ac302697375c05ce65d14bd9033299c5fe68
cd mercator mv /tmp/.env .
php artisan migrate
composer update php artisan vendor:publish --all
sudo chown -R www-data:www-data /var/www/mercator sudo chmod -R 775 /var/www/mercator/storage
— Reply to this email directly, view it on GitHubhttps://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fdbarzin%2fmercator%2fissues%2f130%23issuecomment%2d1156358781&umid=22732367-b012-49ed-922f-1b7d3ad27d3e&auth=1a3cb316522a2150df7bc4e6bd0090c1f2656ec1-132e090ad832771d1420cd9a8cf051ab6ded5808, or unsubscribehttps://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fnotifications%2funsubscribe%2dauth%2fASKA2SJ44N3HTK2WACXXO23VPG5TLANCNFSM5YJJA4LA&umid=22732367-b012-49ed-922f-1b7d3ad27d3e&auth=1a3cb316522a2150df7bc4e6bd0090c1f2656ec1-1a6afc453ac7129d01977d8a5bbf06ed17b166bf. You are receiving this because you authored the thread.Message ID: @.**@.>>
Nous avons oublié de faire "composer update" juste avant.
Bonjour toujours des problemes de mise a jour voici les étapes effectuées:
sudo apt update && sudo apt upgrade cp /var/www/mercator/.env /tmp rm -rf /var/www/mercator cd /var/www/ sudo git clone https://www.github.com/dbarzin/mercator cd mercator sudo mv /tmp/.env . sudo composer update
a partir d'ici j'ai ce message ne semblant pas bloquant: _Do not run Composer as root/super user! See https://getcomposer.org/root for details Continue as root/super user [yes]? yes Loading composer repositories with package information Info from https://repo.packagist.org: #StandWithUkraine Updating dependencies Your requirements could not be resolved to an installable set of packages.
Problem 1
poursuite des étapes:
sudo php artisan migrate
et là, nouveau message d'erreur: _PHP Warning: require(/var/www/mercator/vendor/autoload.php): failed to open stream: No such file or directory in /var/www/mercator/artisan on line 18 PHP Stack trace: PHP 1. {main}() /var/www/mercator/artisan:0 PHP Fatal error: require(): Failed opening required '/var/www/mercator/vendor/autoload.php' (includepath='.:/usr/share/php') in /var/www/mercator/artisan on line 18 PHP Stack trace: PHP 1. {main}() /var/www/mercator/artisan:0
que dois je faire? merci
La nouvelle version de Laravel nécessite l'installation de PHP 8
sudo apt update
sudo apt install php8.0 libapache2-mod-php8.0
Puis les librairies :
sudo apt install php8.0-zip php8.0-curl php8.0-mbstring php8.0-dom php8.0-ldap php8.0-soap php8.0-xdebug php8.0-mysql php8.0-gd
Erreur lors de l’instalaltion de la mise a jour php
sudo apt update && sudo apt upgrade
Hit:1 http://fr.archive.ubuntu.com/ubuntu focal InRelease Get:2 http://fr.archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB] Get:3 http://fr.archive.ubuntu.com/ubuntu focal-backports InRelease [108 kB] Get:4 http://fr.archive.ubuntu.com/ubuntu focal-security InRelease [114 kB] Fetched 336 kB in 2s (204 kB/s) Reading package lists... Done Building dependency tree Reading state information... Done 4 packages can be upgraded. Run 'apt list --upgradable' to see them. Reading package lists... Done Building dependency tree Reading state information... Done Calculating upgrade... Done The following package was automatically installed and is no longer required: libfwupdplugin1 Use 'sudo apt autoremove' to remove it. The following packages will be upgraded: apt apt-utils cloud-init libapt-pkg6.0 4 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Need to get 2840 kB of archives. After this operation, 0 B of additional disk space will be used. Do you want to continue? [Y/n] Y Get:1 http://fr.archive.ubuntu.com/ubuntu focal-updates/main amd64 libapt-pkg6.0 amd64 2.0.9 [839 kB] Get:2 http://fr.archive.ubuntu.com/ubuntu focal-updates/main amd64 apt amd64 2.0.9 [1294 kB] Get:3 http://fr.archive.ubuntu.com/ubuntu focal-updates/main amd64 apt-utils amd64 2.0.9 [213 kB] Get:4 http://fr.archive.ubuntu.com/ubuntu focal-updates/main amd64 cloud-init all 22.2-0ubuntu1~20.04.2 [494 kB] Fetched 2840 kB in 29s (99.3 kB/s) Preconfiguring packages ... (Reading database ... 110576 files and directories currently installed.) Preparing to unpack .../libapt-pkg6.0_2.0.9_amd64.deb ... Unpacking libapt-pkg6.0:amd64 (2.0.9) over (2.0.8) ... Setting up libapt-pkg6.0:amd64 (2.0.9) ... (Reading database ... 110576 files and directories currently installed.) Preparing to unpack .../archives/apt_2.0.9_amd64.deb ... Unpacking apt (2.0.9) over (2.0.8) ... Setting up apt (2.0.9) ... (Reading database ... 110576 files and directories currently installed.) Preparing to unpack .../apt-utils_2.0.9_amd64.deb ... Unpacking apt-utils (2.0.9) over (2.0.8) ... Preparing to unpack .../cloud-init_22.2-0ubuntu1~20.04.2_all.deb ... Unpacking cloud-init (22.2-0ubuntu1~20.04.2) over (22.2-0ubuntu1~20.04.1) ... Setting up cloud-init (22.2-0ubuntu1~20.04.2) ... Setting up apt-utils (2.0.9) ... Processing triggers for rsyslog (8.2001.0-1ubuntu1.3) ... Processing triggers for man-db (2.9.1-1) ... Processing triggers for libc-bin (2.31-0ubuntu9.9) ...
sudo apt install php8.0 libapache2-mod-php8.0 Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package php8.0 E: Couldn't find any package by glob 'php8.0' E: Unable to locate package libapache2-mod-php8.0 E: Couldn't find any package by glob 'libapache2-mod-php8.0'
sudo apt install php8.0-zip php8.0-curl php8.0-mbstring php8.0-dom php8.0-ldap php8.0-soap php8.0-xdebug php8.0-mysql php8.0-gd Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package php8.0-zip E: Couldn't find any package by glob 'php8.0-zip' E: Unable to locate package php8.0-curl E: Couldn't find any package by glob 'php8.0-curl' E: Unable to locate package php8.0-mbstring E: Couldn't find any package by glob 'php8.0-mbstring' E: Unable to locate package php8.0-dom E: Couldn't find any package by glob 'php8.0-dom' E: Unable to locate package php8.0-ldap E: Couldn't find any package by glob 'php8.0-ldap' E: Unable to locate package php8.0-soap E: Couldn't find any package by glob 'php8.0-soap' E: Unable to locate package php8.0-xdebug E: Couldn't find any package by glob 'php8.0-xdebug' E: Unable to locate package php8.0-mysql E: Couldn't find any package by glob 'php8.0-mysql' E: Unable to locate package php8.0-gd E: Couldn't find any package by glob 'php8.0-gd'
De : Didier Barzin @.> Envoyé : lundi 20 juin 2022 14:40 À : dbarzin/mercator @.> Cc : webchl @.>; Author @.> Objet : Re: [dbarzin/mercator] ErrorException DOMDocument::loadXML() (Issue #130)
ATTENTION: Ce courrier provient d’un expéditeur extérieur à l’établissement, Ne cliquez sur aucun lien suspect et n'ouvrez aucune pièce jointe d'un expéditeur ou d’un contenu qui vous parait inhabituel. Ne communiquez pas vos identifiants sur des sites internet ou à la demande d’un interlocuteur. En cas de doute, contactez le Service Informatique '
La nouvelle version de Laravel nécessite l'installation de PHP 8
sudo apt update
sudo apt install php8.0 libapache2-mod-php8.0
Puis les librairies :
sudo apt install php8.0-zip php8.0-curl php8.0-mbstring php8.0-dom php8.0-ldap php8.0-soap php8.0-xdebug php8.0-mysql php8.0-gd
— Reply to this email directly, view it on GitHubhttps://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fdbarzin%2fmercator%2fissues%2f130%23issuecomment%2d1160399004&umid=148e0370-7de6-4a89-b253-455b14354bd4&auth=1a3cb316522a2150df7bc4e6bd0090c1f2656ec1-b54620145f56f26f88a378b871e7a009dcd1ea45, or unsubscribehttps://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fnotifications%2funsubscribe%2dauth%2fASKA2SNZMK64Y2KBLHFFS6LVQBRB5ANCNFSM5YJJA4LA&umid=148e0370-7de6-4a89-b253-455b14354bd4&auth=1a3cb316522a2150df7bc4e6bd0090c1f2656ec1-dac692db2bea44fab771659cc62a3e63f9b2106c. You are receiving this because you authored the thread.Message ID: @.**@.>>
A ce point, je te propose de réinstaller Mercator avec la derrière version d'Ubuntu 22.04 LTS en suivant la procédure d'installation fournie sur le github. A la fin de l'installation, tu peux restaurer le backup de la DB et faire un "php artisan migrate".
Bonjour,
Je repars donc vers une nouvelle install et suis a la lettre la procedure mais…
sudo apt install apache2 mod_php git graphviz composer Lecture des listes de paquets... Fait Construction de l'arbre des dépendances... Fait Lecture des informations d'état... Fait E: Impossible de trouver le paquet mod_php
De : Didier Barzin @.> Envoyé : mardi 21 juin 2022 13:52 À : dbarzin/mercator @.> Cc : webchl @.>; Author @.> Objet : Re: [dbarzin/mercator] ErrorException DOMDocument::loadXML() (Issue #130)
ATTENTION: Ce courrier provient d’un expéditeur extérieur à l’établissement, Ne cliquez sur aucun lien suspect et n'ouvrez aucune pièce jointe d'un expéditeur ou d’un contenu qui vous parait inhabituel. Ne communiquez pas vos identifiants sur des sites internet ou à la demande d’un interlocuteur. En cas de doute, contactez le Service Informatique '
A ce point, je te propose de réinstaller Mercator avec la derrière version d'Ubuntu 22.04 LTS en suivant la procédure d'installation fournie sur le github. A la fin de l'installation, tu peux restaurer le backup de la DB et faire un "php artisan migrate".
— Reply to this email directly, view it on GitHubhttps://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fdbarzin%2fmercator%2fissues%2f130%23issuecomment%2d1161643399&umid=9ecba9cd-4980-40bd-a757-747a7b2fba9d&auth=1a3cb316522a2150df7bc4e6bd0090c1f2656ec1-903baba23fca3b092761bf04ea2669bb75f7474a, or unsubscribehttps://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fnotifications%2funsubscribe%2dauth%2fASKA2SLYFJW4GK6NYE6LVVLVQGUFDANCNFSM5YJJA4LA&umid=9ecba9cd-4980-40bd-a757-747a7b2fba9d&auth=1a3cb316522a2150df7bc4e6bd0090c1f2656ec1-e224c6b9e9784397b4abb2c32929cf3262e1a1d2. You are receiving this because you authored the thread.Message ID: @.**@.>>
OK, mod_php n'existe plus et est intégré à Apache2.
HTML conversion exceptions are now trapped and does not generate exceptions but an error in logs.
On a oublié "composer update"
Le mer. 15 juin 2022 à 11:46, webchl @.***> a écrit :
Bonjour,
Désolé du retard ! bcp de travail
Je suis reparti d’une sauvegarde d’avant les essais de mise a jour
Voici ce que je compte faire suivant tes conseils:
mysqldump mercator > mercator_backup.sql sudo apt update && sudo apt upgrade
cd /var/www/
git clone https://www.github.com/dbarzin/mercator
mysql mercator < mercator_backup.sql php artisan migrate composer update php artisan config:clear && php artisan view:clear
Cela te semble jouable ?
Merci
De : Didier Barzin @. Envoyé : lundi 13 juin 2022 23:14 À : dbarzin/mercator @.> Cc : webchl @.>; Author @.> Objet : Re: [dbarzin/mercator] ErrorException DOMDocument::loadXML() (Issue #130)
ATTENTION: Ce courrier provient d’un expéditeur extérieur à l’établissement, Ne cliquez sur aucun lien suspect et n'ouvrez aucune pièce jointe d'un expéditeur ou d’un contenu qui vous parait inhabituel. Ne communiquez pas vos identifiants sur des sites internet ou à la demande d’un interlocuteur. En cas de doute, contactez le Service Informatique '
Geoffroy, As-tu réussi à réinstaller Mercator ? Didier
— Reply to this email directly, view it on GitHub< https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fdbarzin%2fmercator%2fissues%2f130%23issuecomment%2d1154445463&umid=101eee51-54a7-45d9-9011-033add0cff41&auth=1a3cb316522a2150df7bc4e6bd0090c1f2656ec1-50207f82b79230fea4c04e6fb51f58998639ec13>, or unsubscribe< https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fnotifications%2funsubscribe%2dauth%2fASKA2SMMRA5KD5XG4TVUW7TVO6QBVANCNFSM5YJJA4LA&umid=101eee51-54a7-45d9-9011-033add0cff41&auth=1a3cb316522a2150df7bc4e6bd0090c1f2656ec1-b08fd5a323771babdd809fb6707b45bee6c7f07e>.
You are receiving this because you authored the thread.Message ID: @.**@.>>
— Reply to this email directly, view it on GitHub https://github.com/dbarzin/mercator/issues/130#issuecomment-1156249248, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKJU4KAD34DZKNC2L2B2GHDVPGRAXANCNFSM5YJJA4LA . You are receiving this because you were assigned.Message ID: @.***>
git reset --hard HEAD is now at 2af2b4b lien processus applications @.***:/var/www/mercator$ git pull --force warning: redirecting to https://github.com/dbarzin/mercator.git/ Updating 2af2b4b..791803d error: The following untracked working tree files would be overwritten by merge: resources/views/errors/401.blade.php resources/views/errors/403.blade.php resources/views/errors/404.blade.php resources/views/errors/419.blade.php resources/views/errors/429.blade.php resources/views/errors/500.blade.php resources/views/errors/503.blade.php resources/views/errors/illustrated-layout.blade.php resources/views/errors/layout.blade.php resources/views/errors/minimal.blade.php Please move or remove them before you merge. Aborting
Geoffroy Guégan Service Informatique Centre Hospitalier de Loches 0247913370 @.**@.>
De : webchl @.> Envoyé : vendredi 10 juin 2022 14:34 À : dbarzin/mercator @.>; dbarzin/mercator @.> Cc : webchl @.>; Author @.***> Objet : RE: [dbarzin/mercator] ErrorException DOMDocument::loadXML() (Issue #130)
Pareil dsl
Geoffroy Guégan Service Informatique Centre Hospitalier de Loches 0247913370 @.**@.>
De : Didier Barzin @.**@.>> Envoyé : vendredi 10 juin 2022 14:17 À : dbarzin/mercator @.**@.>> Cc : webchl @.**@.>>; Author @.**@.>> Objet : Re: [dbarzin/mercator] ErrorException DOMDocument::loadXML() (Issue #130)
ATTENTION: Ce courrier provient d’un expéditeur extérieur à l’établissement, Ne cliquez sur aucun lien suspect et n'ouvrez aucune pièce jointe d'un expéditeur ou d’un contenu qui vous parait inhabituel. Ne communiquez pas vos identifiants sur des sites internet ou à la demande d’un interlocuteur. En cas de doute, contactez le Service Informatique '
git reset --hard git pull
— Reply to this email directly, view it on GitHubhttps://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fdbarzin%2fmercator%2fissues%2f130%23issuecomment%2d1152297172&umid=42815717-3803-4a8d-bffd-c72dce811b53&auth=1a3cb316522a2150df7bc4e6bd0090c1f2656ec1-c0725284846e98811ecaf3c7a2c0790a747b315a, or unsubscribehttps://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2fnotifications%2funsubscribe%2dauth%2fASKA2SLCIN2QLXVLXNFG543VOMW2ZANCNFSM5YJJA4LA&umid=42815717-3803-4a8d-bffd-c72dce811b53&auth=1a3cb316522a2150df7bc4e6bd0090c1f2656ec1-b0be5b1f35f902dd973e86844e008e450d058ac5. You are receiving this because you authored the thread.Message ID: @.**@.>>
Bonjour, lors de la génération d'un rapport (depuis le menu documentation) j'ai une erreur: ErrorException DOMDocument::loadXML(): Opening and ending tag mismatch: img line 1 and figure in Entity, line: 1 http://X.X.X.X:8000/admin/report/cartography J'ai remarqué que cela se produit lorsque j'ajoute dans les vues "Ecosysteme" (je n'ai pas testé plusieurs cas) Cela génère pourtant bien un rapport quand j'enlevé cette vue du rapport une idée? merci