Giter Club home page Giter Club logo

opencapture's Introduction

Logo Open-Capture

Open-Capture Deployement OpenCapture

Link to the full documentation : https://kutt.it/DocumentationV2

Open-Capture is a free and Open Source software under GNU General Public License v3.0.

The functionnalities of Open-Capture are :

  • Fully web interface for videocoding : No installation needed on user's workstation
  • OCR On Fly. Draw a rectangle on the image, get the text directly in your input and save positions
  • The core works on Linux (tested on Debian)
  • Complex machine learning algorithms used to predict information locations from one invoice to another
  • Find suppliers into a document using VAT Number, EMAIL, DUNS, BIC, SIRET, SIREN or IBAN
  • Find VAT Rate, no taxes amount and total taxes amount using powerful algorithm.
  • Wrote fully in Python for the backend, using Flask micro framework. Angular & Tailwind for the front
  • Already set to use fra or eng locales. Other locales could be added easily
  • SIRET/SIREN & VAT number verification (Only FR for now, could be disabled in form settings)
  • Complex locale REGEX used. Easy to improve and modify

Launch Python unit tests

Make sure you have a test custom installed using the following commands :

cd /var/www/html/opencapture/install/
sudo ./create_custom.sh -c test -t systemd

Then, go the the tests folder and launch the following commands

cd /var/www/html/opencapture/
python3 -m unittest discover src/backend/tests/

LICENSE

Open-Capture is released under the GPL v3.

opencapture's People

Contributors

brich40 avatar nathan30 avatar nch01-edissyum avatar nch01edissyum avatar necen avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

opencapture's Issues

again the 500 errer internal servor

i installed open capture on another device and i tried to configuret the code of duplicated mask as you asked me on the new device
def duplicate_positions_mask(position_mask_id):
positions_masks_info, error = positions_masks.get_positions_mask_by_id({'position_mask_id': position_mask_id})
if error is None:
new_label = gettext('COPY_OF') + ' ' + positions_masks_info['label']
args = {
'label': new_label,
'supplier_id': positions_masks_info['supplier_id'],
'pages': json.dumps(positions_masks_info['pages']),
'regex': json.dumps(positions_masks_info['regex']),
'width': positions_masks_info['width'],
'form_id': positions_masks_info['form_id'],
'nb_pages': positions_masks_info['nb_pages'],
'filename': positions_masks_info['filename'],
'supplier_id': positions_masks_info['supplier_id'],
'pages': json.dumps(positions_masks_info['pages']),
'regex': json.dumps(positions_masks_info['regex']),
'positions': json.dumps(positions_masks_info['positions'])

    }
    _, error = positions_masks.add_positions_mask(args)
    if error is None:
        return '', 200
    else:
        response = {
            "errors": gettext('DUPLICATE_POSITIONS_MASKS_ERROR'),
            "message": gettext(error)
        }
        return response, 400
else:
    response = {
        "errors": gettext('DUPLICATE_POSITIONS_MASKS_ERROR'),
        "message": gettext(error)
    }
    return response, 400

but it's not workng
thelog:
(opencapture) jeanmarc@debian:~$ sudo tail -f /var/log/apache2/error.log
[sudo] Mot de passe de jeanmarc :
[Tue Feb 27 15:40:54.581975 2024] [wsgi:error] [pid 1330] [remote 127.0.0.1:48528] File "/var/www/html/opencapture/src/backend/rest/positions_masks.py", line 145, in duplicate_positions_mask
[Tue Feb 27 15:40:54.581982 2024] [wsgi:error] [pid 1330] [remote 127.0.0.1:48528] res = positions_masks.duplicate_positions_mask(position_mask_id)
[Tue Feb 27 15:40:54.581988 2024] [wsgi:error] [pid 1330] [remote 127.0.0.1:48528] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[Tue Feb 27 15:40:54.582009 2024] [wsgi:error] [pid 1330] [remote 127.0.0.1:48528] File "/var/www/html/opencapture/src/backend/controllers/positions_masks.py", line 178, in duplicate_positions_mask
[Tue Feb 27 15:40:54.582016 2024] [wsgi:error] [pid 1330] [remote 127.0.0.1:48528] 'pages': json.dumps(positions_masks_info['pages']),
[Tue Feb 27 15:40:54.582023 2024] [wsgi:error] [pid 1330] [remote 127.0.0.1:48528] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[Tue Feb 27 15:40:54.582030 2024] [wsgi:error] [pid 1330] [remote 127.0.0.1:48528] File "/var/www/html/opencapture/src/backend/models/positions_masks.py", line 131, in add_positions_mask
[Tue Feb 27 15:40:54.582066 2024] [wsgi:error] [pid 1330] [remote 127.0.0.1:48528] 'form_id': args['form_id'],
[Tue Feb 27 15:40:54.582073 2024] [wsgi:error] [pid 1330] [remote 127.0.0.1:48528] ~~~~^^^^^^^^^^^
[Tue Feb 27 15:40:54.582080 2024] [wsgi:error] [pid 1330] [remote 127.0.0.1:48528] KeyError: 'form_id'

for the version opencapture whi i am using it s opencapture 3.1.2

vat_number pour un supplier

Bonjour,

Malgré le set du vat_number en non requis, ou même de la suppression du champ dans un formulaire, la création d'un supplier depuis la page de validation d'un document renvoie systématiquement une erreur :
Les données obligatoires sont manquantes ou incorrectes : vat_number

J'ai modifié src/backend/rest/accounts.py:261
de {'id': 'vat_number', 'type': str, 'mandatory': True},
à {'id': 'vat_number', 'type': str, 'mandatory': False},

Cordialement

PS : impossible de s'inscrire sur votre forum, je n'ai jamais reçu l'email de validation du compte.

Erreur lors de la configuration du SMTP

Bonjour,

Lorsque je tente de valider ma configuration SMTP, j'ai une erreur qui me dit
"Erreur de requête : Les données obligatoires sont manquantes ou incorrectes : 'value' n'est pas de type 'string'"

Et cela que je remplisse les 3 premiers champs ou l'ensemble des champs.

Les logs du fichier OpenCapture.log ne se remplissent pas sur cette action.
Je ne suis pas administratrice du serveur où il est installé, je n'ai pas accès aux logs Apache.
Je les aient demandées.

Erro 500 when validate an invoice

Hi,

I built a simple form.
In "Verification" modul, when I validate an invoice, I've got an "Error 500".
Nothing in OCforInvoices.log but in /var/log/apache2/error.log I get :

[Mon May 09 18:49:18.470790 2022] [wsgi:error] [pid 536:tid 139816381544192] [remote 192.168.42.10:2237] [2022-05-09 18:49:18,470] ERROR in app: Exception on /ws/verifier/invoices/1/export_xml [POST]
[Mon May 09 18:49:18.470819 2022] [wsgi:error] [pid 536:tid 139816381544192] [remote 192.168.42.10:2237] Traceback (most recent call last):
[Mon May 09 18:49:18.470826 2022] [wsgi:error] [pid 536:tid 139816381544192] [remote 192.168.42.10:2237]   File "/usr/local/lib/python3.9/dist-packages/flask/app.py", line 2077, in wsgi_app
[Mon May 09 18:49:18.470831 2022] [wsgi:error] [pid 536:tid 139816381544192] [remote 192.168.42.10:2237]     response = self.full_dispatch_request()
[Mon May 09 18:49:18.470836 2022] [wsgi:error] [pid 536:tid 139816381544192] [remote 192.168.42.10:2237]   File "/usr/local/lib/python3.9/dist-packages/flask/app.py", line 1525, in full_dispatch_request
[Mon May 09 18:49:18.470842 2022] [wsgi:error] [pid 536:tid 139816381544192] [remote 192.168.42.10:2237]     rv = self.handle_user_exception(e)
[Mon May 09 18:49:18.470846 2022] [wsgi:error] [pid 536:tid 139816381544192] [remote 192.168.42.10:2237]   File "/usr/local/lib/python3.9/dist-packages/flask_cors/extension.py", line 165, in wrapped_function
[Mon May 09 18:49:18.470851 2022] [wsgi:error] [pid 536:tid 139816381544192] [remote 192.168.42.10:2237]     return cors_after_request(app.make_response(f(*args, **kwargs)))
[Mon May 09 18:49:18.470856 2022] [wsgi:error] [pid 536:tid 139816381544192] [remote 192.168.42.10:2237]   File "/usr/local/lib/python3.9/dist-packages/flask/app.py", line 1523, in full_dispatch_request
[Mon May 09 18:49:18.470860 2022] [wsgi:error] [pid 536:tid 139816381544192] [remote 192.168.42.10:2237]     rv = self.dispatch_request()
[Mon May 09 18:49:18.470865 2022] [wsgi:error] [pid 536:tid 139816381544192] [remote 192.168.42.10:2237]   File "/usr/local/lib/python3.9/dist-packages/flask/app.py", line 1509, in dispatch_request
[Mon May 09 18:49:18.470870 2022] [wsgi:error] [pid 536:tid 139816381544192] [remote 192.168.42.10:2237]     return self.ensure_sync(self.view_functions[rule.endpoint])(**req.view_args)
[Mon May 09 18:49:18.470874 2022] [wsgi:error] [pid 536:tid 139816381544192] [remote 192.168.42.10:2237]   File "/var/www/html/opencaptureforinvoices/src/backend/controllers/auth.py", line 106, in wrapped_view
[Mon May 09 18:49:18.470879 2022] [wsgi:error] [pid 536:tid 139816381544192] [remote 192.168.42.10:2237]     return view(**kwargs)
[Mon May 09 18:49:18.470884 2022] [wsgi:error] [pid 536:tid 139816381544192] [remote 192.168.42.10:2237]   File "/var/www/html/opencaptureforinvoices/src/backend/rest/verifier.py", line 90, in export_xml
[Mon May 09 18:49:18.470889 2022] [wsgi:error] [pid 536:tid 139816381544192] [remote 192.168.42.10:2237]     res = verifier.export_xml(invoice_id, data)
[Mon May 09 18:49:18.470894 2022] [wsgi:error] [pid 536:tid 139816381544192] [remote 192.168.42.10:2237]   File "/var/www/html/opencaptureforinvoices/src/backend/controllers/verifier.py", line 545, in export_xml
[Mon May 09 18:49:18.470898 2022] [wsgi:error] [pid 536:tid 139816381544192] [remote 192.168.42.10:2237]     xml_file.write(xml_root)
[Mon May 09 18:49:18.470903 2022] [wsgi:error] [pid 536:tid 139816381544192] [remote 192.168.42.10:2237] UnicodeEncodeError: 'ascii' codec can't encode character '\\xe9' in position 415: ordinal not in range(128)

I think it's because I have a "é" in the name of supplier. ( \xe9 = é )
I my form, supplier is "Alphanumeric extended with accent".
Even if I remove the "é", I continue to get an error 500

How to start AI

Hello everyone,
We just installed version 2.9.0 of Open-Capture. Is there any way of how to start the AI in it? I don't have any opinion to upload documents, so how to do it? I tried to search it in the GitBook, but the Franche language is not so familiar to me.

image

Thanks for help

error server 500

hey when i am using opencapture on the web i tried to use the fonction duplicate when i do that i have this error
http://localhost/backend_oc/edissyum/ws/positions_masks/duplicate/1.
500: Internal Server Error.

Capture d'écran 2024-02-27 112358
/var/www/html/opencapture/data/log/OpenCapture.log no file of this type

sudo tail -f /var/log/apache2/error.log;

ian:/var/www/html/opencapture/data/log# sudo adduser rayan sudo
adduser : L'utilisateur « rayan » appartient déjà au groupe « sudo ».
root@debian:/var/www/html/opencapture/data/log# sudo tail -f /var/log/apache2/error.log
[Tue Feb 27 11:27:54.896753 2024] [wsgi:error] [pid 18301] [remote 127.0.0.1:36878] File "/var/www/html/opencapture/src/backend/rest/positions_masks.py", line 145, in duplicate_positions_mask
[Tue Feb 27 11:27:54.896756 2024] [wsgi:error] [pid 18301] [remote 127.0.0.1:36878] res = positions_masks.duplicate_positions_mask(position_mask_id)
[Tue Feb 27 11:27:54.896758 2024] [wsgi:error] [pid 18301] [remote 127.0.0.1:36878] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[Tue Feb 27 11:27:54.896761 2024] [wsgi:error] [pid 18301] [remote 127.0.0.1:36878] File "/var/www/html/opencapture/src/backend/controllers/positions_masks.py", line 178, in duplicate_positions_mask
[Tue Feb 27 11:27:54.896763 2024] [wsgi:error] [pid 18301] [remote 127.0.0.1:36878] _, error = positions_masks.add_positions_mask(args)
[Tue Feb 27 11:27:54.896766 2024] [wsgi:error] [pid 18301] [remote 127.0.0.1:36878] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[Tue Feb 27 11:27:54.896768 2024] [wsgi:error] [pid 18301] [remote 127.0.0.1:36878] File "/var/www/html/opencapture/src/backend/models/positions_masks.py", line 131, in add_positions_mask
[Tue Feb 27 11:27:54.896771 2024] [wsgi:error] [pid 18301] [remote 127.0.0.1:36878] 'form_id': args['form_id'],
[Tue Feb 27 11:27:54.896773 2024] [wsgi:error] [pid 18301] [remote 127.0.0.1:36878] ~~~~^^^^^^^^^^^
[Tue Feb 27 11:27:54.896775 2024] [wsgi:error] [pid 18301] [remote 127.0.0.1:36878] KeyError: 'form_id'

please help me and is the problem come from my configuration or not
i want to mention that when i installed the product i used this tutorial
https://edissyum.gitbook.io/open-capture/technique/installation

and i made id = edissyum
user the name of my user
and its password and all the other paramters are default

thank you so much foir answering me

[BUG] 502 Bad Gateway

Hello,

Describe the bug
When I upload a file, I have the error "502 Bad Gatway"

To Reproduce
I followed the readme but I had a problem for the installation. I had to modify the requierement for the python3 line (I removed the version)

** Installation informations (please complete the following information):**

  • OS: Ubuntu 20.04 on Proxmox

How can I solve the problem?
Thanks

Erreur lors de l'affichage de la liste des comptes clients dans le Vérifier

Bonjour,

La liste des comptes clients tourne en boucle sans jamais s'afficher, dans les requêtes du navigateur, je constate cette erreur :
image

et j'ai l'erreur suivante qui s'affiche sur l'interface :
"Erreur de requête : Les données obligatoires sont manquantes ou incorrectes : 'total' n'est pas de type 'boolean'"

Merci pour votre aide (version 3.0.6)

move files anbd settings

hey,
we were working an open capture and we created a supplier a client masks ...ext in device and we want to move them to another device we tried to find the folders and files of these settings to copy them to the other device but we couldn't find these files and we want to know is to possible thank you for answering us

path problem with gunicorn

Hello,
When i finished the installation i got this problem:
/etc/systemd/system/OCForInvoices-web.service:8: Executable "gunicorn" not found in path "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
What path should i add for it to work ?

Regards.

position mask

the second problem which i have is that i have created position mask with 3 data:
date which is already in the formulair
and there s the name of the client and customer but when i do the process it doesn t get these data except the date

Installation problem

Hello, we try to install OpenCapture for Invoices but at the end we have a problem.
During install everything is ok. But at the end, on the login page, before i enter any thing i have :

http://XXX.XXX.XXX.XXX/backend_oc/ws/auth/getEnabledLoginMethod 500 : Internal Server Error

I try to installa the 2.2.4 version but same thing. At the end i have a login page and when i try to login as admin / admin i have the message:

http://XXX.XXX.XXX.XXX/backend_oc/ws/auth/login Erreur lors de la connexion à la basae de donnée: invalid dsn; invalid connection option""

both serveur are on ProxMoxVe 7.1-12 with 2GB ram, 2 vcpu, virtio SCSI 20G hdd and Ubuntu 22

Is it possible to detect custom values ?

Hi again,
I have a question which is not related to a bug.
I'm working with a customer who is processing health data.
They got "invoices" like this one :
pullrequest2
Is it possible to detect the values in the columns like 'Patient' or 'Numéro SS' with Opencaptureforinvoices ?
I saw we can target certains fields with regex, but because I got peculiar invoices I think I need to position a mask, but I did not find anything relevant to my situation in the README.

So, is it possible to achieve this ?
Regards

Brand new installation failed

Bonjour à Tous,

I had some difficulties while installing the application. So I started again from a brand new installation, a disposable debian 11 instance.
I launched the installation procedure by following the documentation line by line from there : installation
I have an error regarding the database connection information.

Capture d’écran du 2022-11-12 11-30-23
install_error.log
install_info.log

After investigating, I have the impression that these lines of the install.sh file execute incorrectly because the password would be registered incorrectly when creating the roles earlier in the installation file.
`####################

Create database using custom_id

echo "Create database and fill it with default data....."
databaseName="opencapture_$customId"
if [[ "$customId" = "opencapture_" ]]; then
databaseName="$customId"
fi
export PGPASSWORD=$databasePassword && psql -U"$databaseUsername" -h"$hostname" -p"$port" -c "CREATE DATABASE $databaseName WITH template=template0 encoding='UTF8'" postgres >>$INFOLOG_PATH 2>>$ERRORLOG_PATH
export PGPASSWORD=$databasePassword && psql -U"$databaseUsername" -h"$hostname" -p"$port" -c "\i $defaultPath/instance/sql/structure.sql" "$databaseName" >>$INFOLOG_PATH 2>>$ERRORLOG_PATH
export PGPASSWORD=$databasePassword && psql -U"$databaseUsername" -h"$hostname" -p"$port" -c "\i $defaultPath/instance/sql/global.sql" "$databaseName" >>$INFOLOG_PATH 2>>$ERRORLOG_PATH
export PGPASSWORD=$databasePassword && psql -U"$databaseUsername" -h"$hostname" -p"$port" -c "\i $defaultPath/instance/sql/data_fr.sql" "$databaseName" >>$INFOLOG_PATH 2>>$ERRORLOG_PATH

echo ""
echo "######################################################################################################################"
echo ""

docserverDefaultPath="/var/docservers/opencapture/"

export PGPASSWORD=$databasePassword && psql -U"$databaseUsername" -h"$hostname" -p"$port" -c "UPDATE docservers SET path=REPLACE(path, '$docserverDefaultPath' , '/$docserverDefaultPath/$customId/')" "$databaseName" >>$INFOLOG_PATH 2>>$ERRORLOG_PATH
export PGPASSWORD=$databasePassword && psql -U"$databaseUsername" -h"$hostname" -p"$port" -c "UPDATE docservers SET path='$customPath/bin/scripts/' WHERE docserver_id = 'SCRIPTS_PATH'" "$databaseName" >>$INFOLOG_PATH 2>>$ERRORLOG_PATH
export PGPASSWORD=$databasePassword && psql -U"$databaseUsername" -h"$hostname" -p"$port" -c "UPDATE docservers SET path='$customPath/bin/data/tmp/' WHERE docserver_id = 'TMP_PATH'" "$databaseName" >>$INFOLOG_PATH 2>>$ERRORLOG_PATH
export PGPASSWORD=$databasePassword && psql -U"$databaseUsername" -h"$hostname" -p"$port" -c "UPDATE docservers SET path='$customPath/bin/data/exported_pdfa/' WHERE docserver_id = 'SEPARATOR_OUTPUT_PDFA'" "$databaseName" >>$INFOLOG_PATH 2>>$ERRORLOG_PATH
export PGPASSWORD=$databasePassword && psql -U"$databaseUsername" -h"$hostname" -p"$port" -c "UPDATE docservers SET path='$customPath/bin/data/exported_pdf/' WHERE docserver_id = 'SEPARATOR_OUTPUT_PDF'" "$databaseName" >>$INFOLOG_PATH 2>>$ERRORLOG_PATH
export PGPASSWORD=$databasePassword && psql -U"$databaseUsername" -h"$hostname" -p"$port" -c "UPDATE docservers SET path='$customPath/instance/referencial/' WHERE docserver_id = 'REFERENTIALS_PATH'" "$databaseName" >>$INFOLOG_PATH 2>>$ERRORLOG_PATH
export PGPASSWORD=$databasePassword && psql -U"$databaseUsername" -h"$hostname" -p"$port" -c "UPDATE inputs SET input_folder=REPLACE(input_folder, '/var/share/' , '/var/share/$customId/')" "$databaseName" >>$INFOLOG_PATH 2>>$ERRORLOG_PATH
export PGPASSWORD=$databasePassword && psql -U"$databaseUsername" -h"$hostname" -p"$port" -c "UPDATE outputs SET data = jsonb_set(data, '{options, parameters, 0, value}', '"/var/share/$customId/export/verifier/"') WHERE data #>>'{options,parameters, 0, id}' = 'folder_out' AND module = 'verifier';" "$databaseName" >>$INFOLOG_PATH 2>>$ERRORLOG_PATH
export PGPASSWORD=$databasePassword && psql -U"$databaseUsername" -h"$hostname" -p"$port" -c "UPDATE outputs SET data = jsonb_set(data, '{options, parameters, 0, value}', '"/var/share/$customId/entrant/verifier/"') WHERE data #>>'{options,parameters, 0, id}' = 'folder_out' AND module = 'splitter' AND output_type_id = 'export_pdf';" "$databaseName" >>$INFOLOG_PATH 2>>$ERRORLOG_PATH
export PGPASSWORD=$databasePassword && psql -U"$databaseUsername" -h"$hostname" -p"$port" -c "UPDATE outputs SET data = jsonb_set(data, '{options, parameters, 0, value}', '"/var/share/$customId/export/splitter/"') WHERE data #>>'{options,parameters, 0, id}' = 'folder_out' AND module = 'splitter' AND output_type_id = 'export_xml';" "$databaseName" >>$INFOLOG_PATH 2>>$ERRORLOG_PATH
export PGPASSWORD=$databasePassword && psql -U"$databaseUsername" -h"$hostname" -p"$port" -c "UPDATE configurations SET data = jsonb_set(data, '{value, batchPath}', '"$customPath/bin/data/MailCollect/"') WHERE label = 'mailCollectGeneral';" "$databaseName" >>$INFOLOG_PATH 2>>$ERRORLOG_PATH
`

I have given you as much information as possible. I remain at your disposal for any further information.

Congratulations for this work !
Cordialement
Denis

Error 500 control panel

Hello,

I have a problem, when i modify settings in the control panel, and i click the button modify, i have an error 500.
I saw there was a problem quite similar but not the same unfortunately.
i will put the same log you ask for the previous problem:

tail -f /opt/OpenCaptureForInvoices/bin/data/log/OCForInvoices.log

~$ tail -f /opt/OpenCaptureForInvoices/bin/data/log/OCforInvoices.log
[Open-Capture ] 16-03-2021 22:39:12 ERROR (401) getUsers : {"errors":"Authentication Failed"}
[Open-Capture ] 16-03-2021 22:45:19 ERROR (401) getUsers : {"errors":"Authentication Failed"}
[Open-Capture ] 16-03-2021 22:51:06 ERROR (401) getUsers : {"errors":"Authentication Failed"}
[Open-Capture ] 16-03-2021 22:53:05 ERROR (401) getUsers : {"errors":"Authentication Failed"}
[Open-Capture ] 16-03-2021 22:53:59 ERROR (401) getUsers : {"errors":"Authentication Failed"}
[Open-Capture ] 16-03-2021 22:54:40 ERROR (401) getUsers : {"errors":"Authentication Failed"}
[Open-Capture ] 16-03-2021 22:57:45 ERROR (401) getUsers : {"errors":"Authentication Failed"}
[Open-Capture ] 16-03-2021 22:58:17 ERROR (401) getUsers : {"errors":"Authentication Failed"}
[Open-Capture ] 16-03-2021 23:09:52 ERROR (401) getUsers : {"errors":"Authentication Failed"}
[Open-Capture ] 16-03-2021 23:12:45 ERROR (401) getUsers : {"errors":"Authentication Failed"}

sudo systemctl status OCForInvoices-web:

$ sudo systemctl status OCForInvoices-web
● OCForInvoices-web.service - Gunicorn instance to Open-Capture For Invoices
Loaded: loaded (/etc/systemd/system/OCForInvoices-web.service; enabled; vendor preset: enabled)
Active: active (running) since Tue 2021-03-16 23:12:36 CET; 1 months 12 days ago
Main PID: 11516 (gunicorn)
Tasks: 5 (limit: 4915)
Memory: 228.5M
CGroup: /system.slice/OCForInvoices-web.service
├─11516 /usr/bin/python3 /usr/local/bin/gunicorn --timeout 300000 --workers 3 --bind unix:OCForInvoices.sock -m 007 w
├─11519 /usr/bin/python3 /usr/local/bin/gunicorn --timeout 300000 --workers 3 --bind unix:OCForInvoices.sock -m 007 w
├─11520 /usr/bin/python3 /usr/local/bin/gunicorn --timeout 300000 --workers 3 --bind unix:OCForInvoices.sock -m 007 w
└─11521 /usr/bin/python3 /usr/local/bin/gunicorn --timeout 300000 --workers 3 --bind unix:OCForInvoices.sock -m 007 w

avril 29 09:56:57 testged gunicorn[11516]: return view(**kwargs)
avril 29 09:56:57 testged gunicorn[11516]: File "/opt/OpenCaptureForInvoices/webApp/ws.py", line 77, in update_config
avril 29 09:56:57 testged gunicorn[11516]: if dashboard.modify_config(request.form):
avril 29 09:56:57 testged gunicorn[11516]: File "/opt/OpenCaptureForInvoices/webApp/dashboard.py", line 181, in modify_config
avril 29 09:56:57 testged gunicorn[11516]: parser.set(section, field, data[info])
avril 29 09:56:57 testged gunicorn[11516]: File "/usr/lib/python3.7/configparser.py", line 1198, in set
avril 29 09:56:57 testged gunicorn[11516]: super().set(section, option, value)
avril 29 09:56:57 testged gunicorn[11516]: File "/usr/lib/python3.7/configparser.py", line 900, in set
avril 29 09:56:57 testged gunicorn[11516]: raise NoSectionError(section) from None
avril 29 09:56:57 testged gunicorn[11516]: configparser.NoSectionError: No section: 'REMOVEBLANKPAGES

$ sudo systemctl status OCForInvoices-worker

● OCForInvoices-worker.service - Daemon for Open-Capture for Invoices
Loaded: loaded (/etc/systemd/system/OCForInvoices-worker.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Thu 2021-04-29 10:06:59 CEST; 1s ago
Process: 25852 ExecStart=/opt/OpenCaptureForInvoices//bin/scripts/service_workerOC.sh (code=exited, status=216/GROUP)
Main PID: 25852 (code=exited, status=216/GROUP)

avril 29 10:06:59 testged systemd[1]: OCForInvoices-worker.service: Service RestartSec=100ms expired, scheduling restart.
avril 29 10:06:59 testged systemd[1]: OCForInvoices-worker.service: Scheduled restart job, restart counter is at 5.
avril 29 10:06:59 testged systemd[1]: Stopped Daemon for Open-Capture for Invoices.
avril 29 10:06:59 testged systemd[1]: OCForInvoices-worker.service: Start request repeated too quickly.
avril 29 10:06:59 testged systemd[1]: OCForInvoices-worker.service: Failed with result 'exit-code'.
avril 29 10:06:59 testged systemd[1]: Failed to start Daemon for Open-Capture for Invoices.

i will add an extra log from cmd $ sudo journalctl -xe
-- The unit OCForInvoices-worker.service has entered the 'failed' state with result 'exit-code'.
avril 29 10:06:59 testged systemd[1]: OCForInvoices-worker.service: Service RestartSec=100ms expired, scheduling restart.
avril 29 10:06:59 testged systemd[1]: OCForInvoices-worker.service: Scheduled restart job, restart counter is at 5.
-- Subject: Le redémarrage automatique d'une unité (unit) a été planifié
-- Defined-By: systemd
-- Support: https://www.debian.org/support

-- Le redémarrage automatique de l'unité (unit) OCForInvoices-worker.service a été planifié, en
-- raison de sa configuration avec le paramètre Restart=.
avril 29 10:06:59 testged systemd[1]: Stopped Daemon for Open-Capture for Invoices.
-- Subject: L'unité (unit) OCForInvoices-worker.service a terminé son arrêt
-- Defined-By: systemd
-- Support: https://www.debian.org/support

-- L'unité (unit) OCForInvoices-worker.service a terminé son arrêt.
avril 29 10:06:59 testged systemd[1]: OCForInvoices-worker.service: Start request repeated too quickly.
avril 29 10:06:59 testged systemd[1]: OCForInvoices-worker.service: Failed with result 'exit-code'.
-- Subject: Unit failed
-- Defined-By: systemd
-- Support: https://www.debian.org/support

-- The unit OCForInvoices-worker.service has entered the 'failed' state with result 'exit-code'.
avril 29 10:06:59 testged systemd[1]: Failed to start Daemon for Open-Capture for Invoices.
-- Subject: L'unité (unit) OCForInvoices-worker.service a échoué
-- Defined-By: systemd
-- Support: https://www.debian.org/support

-- L'unité (unit) OCForInvoices-worker.service a échoué, avec le résultat failed.
avril 29 10:07:01 testged sudo[25853]: aconte : TTY=pts/1 ; PWD=/opt/OpenCaptureForInvoices/bin/data/log/Supervisor ; USER=roo
avril 29 10:07:01 testged sudo[25853]: pam_unix(sudo:session): session opened for user root by aconte(uid=0)
avril 29 10:07:01 testged sudo[25853]: pam_unix(sudo:session): session closed for user root
avril 29 10:07:26 testged sudo[25864]: aconte : TTY=pts/1 ; PWD=/opt/OpenCaptureForInvoices/bin/data/log/Supervisor ; USER=roo
avril 29 10:07:26 testged sudo[25864]: pam_unix(sudo:session): session opened for user root by aconte(uid=0)

My regards, Aconte.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.