Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

404 sur api/exports après l'installation #120

Closed
gildeluermoz opened this issue Jan 23, 2023 · 2 comments
Closed

404 sur api/exports après l'installation #120

gildeluermoz opened this issue Jan 23, 2023 · 2 comments

Comments

@gildeluermoz
Copy link
Contributor

GN 2.11.2 gn_module_export 1.3.0
après l'installation, lorsque j'accède au module, j'ai un message d'erreur rouge avec une 404 sur l'url https://geonature.mondomaine.fr/api/exports et aucun export n'est listé.
Voici la console d'installation du module, tout à l'air ok.
En base, j'ai bien une ligne pour le module dans gn_commons.t_modules

|id_module|module_code|module_label|module_picto|module_desc|module_group|module_path|module_external_url|module_target|module_comment|active_frontend|active_backend|module_doc_url|module_order|type|meta_create_date|meta_update_date|ng_module|
|---------|-----------|------------|------------|-----------|------------|-----------|-------------------|-------------|--------------|---------------|--------------|--------------|------------|----|----------------|----------------|---------|
|9|EXPORTS|Exports||||exports||_self||true|true||||2023-01-23 16:44:23.807||exports|

est-ce que qq'un aurai une idée de la cause de cette 404.

geonature install-gn-module ~/gn_module_export EXPORTS
Installation du backend…
Obtaining file:///home/geonatureadmin/gn_module_export
  Preparing metadata (setup.py) ... done
Collecting rdflib
  Downloading rdflib-6.2.0-py3-none-any.whl (500 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 500.3/500.3 kB 12.7 MB/s eta 0:00:00
Requirement already satisfied: setuptools in ./geonature/backend/venv/lib/python3.9/site-packages (from rdflib->gn-module-export==1.3.0) (44.1.1)
Requirement already satisfied: pyparsing in ./geonature/backend/venv/lib/python3.9/site-packages (from rdflib->gn-module-export==1.3.0) (3.0.9)
Collecting isodate
  Downloading isodate-0.6.1-py2.py3-none-any.whl (41 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 41.7/41.7 kB 8.3 MB/s eta 0:00:00
Requirement already satisfied: six in ./geonature/backend/venv/lib/python3.9/site-packages (from isodate->rdflib->gn-module-export==1.3.0) (1.16.0)
Installing collected packages: isodate, rdflib, gn-module-export
  Running setup.py develop for gn-module-export
Successfully installed gn-module-export-1.3.0 isodate-0.6.1 rdflib-6.2.0
Création du lien symbolique /home/geonatureadmin/geonature/frontend/external_modules/exports → /home/geonatureadmin/gn_module_export/frontend
Installation des dépendances frontend…
Running node v16.19.0 (npm v8.19.3)
npm WARN ancient lockfile 
npm WARN ancient lockfile The package-lock.json file was created with an old version of npm,
npm WARN ancient lockfile so supplemental metadata must be fetched from the registry.
npm WARN ancient lockfile 
npm WARN ancient lockfile This is a one-time fix-up, please be patient...
npm WARN ancient lockfile 

up to date, audited 1 package in 320ms

found 0 vulnerabilities
Création de la configuration frontend…
Rebuild du frontend …
Found '/home/geonatureadmin/geonature/frontend/.nvmrc' with version <lts/gallium>
Running node v16.19.0 (npm v8.19.3)

> geonature@0.0.0 build
> ng build

Warning: Support was requested for IE 11 in the project's browserslist configuration. IE 11 support is deprecated since Angular v12.
For more information, see https://angular.io/guide/browser-support
✔ Browser application bundle generation complete.
✔ ES5 bundle generation complete.
✔ Copying assets complete.
⠋ Generating index html...10 rules skipped due to selector errors:
  0% -> Unmatched selector: %
  0% -> Unmatched selector: %
  0% -> Unmatched selector: %
  0% -> Unmatched selector: %
  .custom-file-input:lang(en)~.custom-file-label -> unmatched pseudo-class :lang
  0% -> Unmatched selector: %
  0% -> Unmatched selector: %
  50% -> Unmatched selector: %
  0% -> Unmatched selector: %
  0% -> Unmatched selector: %
✔ Index html generation complete.

Initial Chunk Files                      | Names                |      Size
main-es5.66df61758aac05c90e65.js         | main                 |   2.97 MB
main-es2015.66df61758aac05c90e65.js      | main                 |   2.73 MB
scripts.10626f119eb2f26cb009.js          | scripts              | 568.99 kB
styles.ccb58d29e6374d08f2ec.css          | styles               | 434.35 kB
polyfills-es5.8482d00ad9fec09d9f7f.js    | polyfills-es5        | 159.65 kB
polyfills-es2015.fdb08a210e7b367e9683.js | polyfills            |  64.56 kB
runtime-es2015.0e241625080317e12e43.js   | runtime              |   3.51 kB
runtime-es5.0e241625080317e12e43.js      | runtime              |   3.51 kB

                                         | Initial ES5 Total    |   4.11 MB
                                         | Initial ES2015 Total |   3.78 MB

Lazy Chunk Files                         | Names                |      Size
427-es5.9df9a53eb41d31e0667a.js          | -                    | 314.92 kB
427-es2015.9df9a53eb41d31e0667a.js       | -                    | 303.58 kB
97-es5.dcf6d9f94370152f0889.js           | -                    | 196.51 kB
97-es2015.dcf6d9f94370152f0889.js        | -                    | 187.78 kB
metadata-es5.d2ffc38ccfb3388fd035.js     | metadata             | 182.44 kB
metadata-es2015.d2ffc38ccfb3388fd035.js  | metadata             | 173.40 kB
550-es5.47b53ac2366c2f9ed349.js          | -                    | 149.91 kB
953-es5.7cd634aad1b3e6cde95e.js          | -                    | 148.11 kB
550-es2015.47b53ac2366c2f9ed349.js       | -                    | 146.05 kB
953-es2015.7cd634aad1b3e6cde95e.js       | -                    | 143.42 kB
214-es5.59612abbecc0fdd8402f.js          | -                    |  93.80 kB
214-es2015.59612abbecc0fdd8402f.js       | -                    |  90.16 kB
366-es5.4ccdb0331199d127f0c7.js          | -                    |  78.10 kB
366-es2015.4ccdb0331199d127f0c7.js       | -                    |  72.82 kB
synthese-es5.9eacc6803ac91b2544e6.js     | synthese             |  34.40 kB
synthese-es2015.9eacc6803ac91b2544e6.js  | synthese             |  33.09 kB
579-es5.e7000cc71be5a82d60d0.js          | -                    |  18.76 kB
579-es2015.e7000cc71be5a82d60d0.js       | -                    |  16.81 kB
user-es5.dd77d46c68d00466d234.js         | user                 |  13.90 kB
user-es2015.dd77d46c68d00466d234.js      | user                 |  13.11 kB
424-es5.c9d3b57e7105d3649f94.js          | -                    |  12.57 kB
424-es2015.c9d3b57e7105d3649f94.js       | -                    |  11.82 kB
common-es5.0b15432a5164842a1b6b.js       | common               |   3.98 kB
admin-es5.19e9fc19e30404b3025f.js        | admin                |   3.92 kB
admin-es2015.19e9fc19e30404b3025f.js     | admin                |   3.49 kB
common-es2015.0b15432a5164842a1b6b.js    | common               |   3.42 kB

Build at: 2023-01-23T15:44:23.520Z - Hash: 5530797780bec741a8a1 - Time: 452231ms

Warning: /home/geonatureadmin/geonature/frontend/src/app/GN2CommonModule/form/autocomplete/autocomplete.component.ts depends on 'rxjs/observable/of'. CommonJS or AMD dependencies can cause optimization bailouts.
For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies

Warning: /home/geonatureadmin/geonature/frontend/src/app/GN2CommonModule/map/filelayer/filelayer.component.ts depends on '@geonature/utils/filelayer'. CommonJS or AMD dependencies can cause optimization bailouts.
For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies

Warning: /home/geonatureadmin/geonature/frontend/src/app/app.module.ts depends on 'angular2-chartjs'. CommonJS or AMD dependencies can cause optimization bailouts.
For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies

Warning: /home/geonatureadmin/geonature/frontend/src/app/app.module.ts depends on 'ng2-cookies'. CommonJS or AMD dependencies can cause optimization bailouts.
For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies

Warning: /home/geonatureadmin/geonature/frontend/src/app/metadataModule/services/metadata-search-form.service.ts is part of the TypeScript compilation but it's unused.
Add only entry points to the 'files' or 'include' properties in your tsconfig.

Warning: /home/geonatureadmin/geonature/frontend/src/app/syntheseModule/services/form.service.ts is part of the TypeScript compilation but it's unused.
Add only entry points to the 'files' or 'include' properties in your tsconfig.

Warning: /home/geonatureadmin/geonature/frontend/src/app/syntheseModule/synthese-results/synthese-list/synthese-info-obs/modal-info-obs.component.ts is part of the TypeScript compilation but it's unused.
Add only entry points to the 'files' or 'include' properties in your tsconfig.

Warning: 9m/home/geonatureadmin/geonature/frontend/src/environments/environment.prod.ts is part of the TypeScript compilation but it's unused.
Add only entry points to the 'files' or 'include' properties in your tsconfig.


Rebuild du frontend terminé.
Installation / mise à jour de la base de données…
INFO  [alembic.runtime.migration] Context impl PostgresqlImpl.
INFO  [alembic.runtime.migration] Will assume transactional DDL.
INFO  [alembic.runtime.migration] Running upgrade  -> c2d02e345a06, create export schema
@camillemonchicourt
Copy link
Member

Apres l'installation du module, il faut faire "sudo systemctl restart geonature".
Tu l'as fait ?

L'installation est OK en effet.

Sinon des erreurs dans les logs de GeoNature ?

@gildeluermoz
Copy link
Contributor Author

A priori c'est le restart qui manquait effectivement.
J'avais cru comprendre qu'un rebuild se terminait désormais par un restart du service geonature.
Merci. je ferme le ticket

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants