Everything posted by Tuetenk0pp
-
[Support] Paperless-ngx Docker
@Zeze21 you got confused with two different settings: you enabled document splitting but not the ASN assignment. From the official documentation: So there is actually two different settings for the two different functionalities. They are explained in the configuration documentation: You need to enable both settings for them to a) split documents and b) assign ASN with the same barcode. PAPERLESS_CONSUMER_ENABLE_BARCODES=true PAPERLESS_CONSUMER_ENABLE_ASN_BARCODE=true
-
[Support] Paperless-ngx Docker
Do you mean ASN Barcodes as in https://docs.paperless-ngx.com/advanced_usage/#archive-serial-number-assignment? Just set `PAPERLESS_CONSUMER_ENABLE_ASN_BARCODE=TRUE` in your Docker .env file or compose file. You will have to use a supported barcode type (listed here: https://docs.paperless-ngx.com/advanced_usage/#barcodes). I wrote a script to generate some barcodes that I could print on a piece of avery labels (see here: https://github.com/tuetenk0pp/asn-barcodes) and while it works, I am not particularly proud of it
-
[Support] Paperless-ngx Docker
You probably have to set the `PAPERLESS_CORS_ALLOWED_HOSTS` variable to the Hostname or IP of your swag container.
-
[Support] Paperless-ngx Docker
@Mika@MobileDude I have a working setup: PAPERLESS_APPS=allauth.socialaccount.providers.openid_connect PAPERLESS_SOCIALACCOUNT_PROVIDERS='{"openid_connect": {"APPS": [{"provider_id": "authentik", "name": "Authentik", "client_id": "YOUR_CLIENT_ID", "secret": "YOUR_CLIENT_SECRET", "settings":{ "server_url": "https://auth.domain.tld/application/o/paperless/.well-known/openid-configuration"}}], "OAUTH_PKCE_ENABLED": "True"}}' Be sure to name the Authentik Outpost "paperless". In addition, you can set the following variables, once the basics work: # hide the default login form PAPERLESS_DISABLE_REGULAR_LOGIN=true # sign up new users from authentik automatically PAPERLESS_SOCIAL_AUTO_SIGNUP=true # redirect to authentik after logout PAPERLESS_LOGOUT_REDIRECT_URL=https://auth.domain.tld/application/o/paperless/end-session/logout # trust authentik to provide valid email addresses PAPERLESS_ACCOUNT_EMAIL_VERIFICATION=none I hope this helps
-
VM/libvirt service fails to start
Actually not, BUT: Since the measured Powerdraw from the wall was lower with the VM on than off, I leave it running all the time. And I never had the issue again. Obviously, this does not work if you use the same HW in different VMs and you need to switch them on and off.
-
[Support] Paperless-ngx Docker
Have you checked the permissions on this file? Use `ls -l /mnt/user/share_paperless_ngx/scripts/`for that. It should look like this: -rw-rw-rw- I have had these kinds of errors in the past and was able to fix it with LF line endings. pikepdf comes installed in the paperless image so no need to worry about that.
-
[Support] Paperless-ngx Docker
it depends: if the package is already installed in the paperless container, import is the only thing you need. If its not installed, python would give an error like this: Traceback (most recent call last): File "<stdin>", line 1, in <module> ModuleNotFoundError: No module named 'pikepdf'
-
[Support] Paperless-ngx Docker
Did some german youtuber recently do a video on paperless? The amount of posts in this topic is kinda suspicious
-
[Support] Paperless-ngx Docker
How did you save the script? Maybe it's the line endings.
-
[Support] Paperless-ngx Docker
Is it the only thing you changed? Yes! Did you also change the TZ setting? Possible.
-
[Support] Paperless-ngx Docker
Timezone should be 'Europe/Berlin' You could try that
-
[Support] Paperless-ngx Docker
Can we have a look at the logs? Both paperless and redis. Also, did you create the paperless folders over smb like shown in the video? This could have messed up the file permissions. Better to let unraid create those folders on container creation.
-
[Support] Paperless-ngx Docker
Maybe something to do with the file format (line endings) or perhaps missing shebang? I'm curious, what do you want to achieve with a pre-consumption script? I was always aware of that functionality but found no use for it.
-
VM/libvirt service fails to start
I have a problem with my VM setup. Every now and then, my previously working VM fails to start. When I try to solve the issue with a restart of libvirt via the VM Manager, libvirt fails to start. Once I fully reboot the server, everything works fine until a few days later, the problem reoccurs. How can I solve that issue? I attached two diagnostics: one before I tried to restart libvirt and the other one just after it in case some log gets overwritten. I noticed these issues in the libvirt log: virNetSocketReadWire:1791 : End of file while reading data: Input/output error this appears every 10 minutes qemuDomainGetBlockInfo:11099 : invalid argument: invalid path Endeavouros_Cassini_Nova-03-2023_R2.iso not assigned to domain this appears every now and then and is related to a VM that I never started. I will remove the VM and see if that changes anything warning : qemuDomainObjBeginJobInternal:858 : Cannot start job (query, none, none) in API remoteDispatchDomainGetBlockInfo for domain Windows 11; current job is (modify, none, none) owned by (15916 remoteDispatchDomainAttachDevice, 0 <null>, 0 <null> (flags=0x0)) for (1777s, 0s, 0s) error : qemuDomainObjBeginJobInternal:893 : Timed out during operation: cannot acquire state change lock (held by monitor=remoteDispatchDomainAttachDevice) this is probably the most relevant section because it is related to the VM I am trying to start. error : qemuMonitorIORead:423 : Unable to read from monitor: Connection reset by peer and this is the first line in the libvirt log after I tried to restart the libvirt service. The VMs Tab reads 'Libvirt Service failed to start.' I will now restart the server and hope for somebody to help me unraid-server-diagnostics-20230829-0859.zip unraid-server-diagnostics-20230829-0920.zip
-
[Support] Paperless-ngx Docker
My bad, paperless uses an SQLite database by default, although not recommended. So your setup should work. Did you create a superuser with this command? docker run --rm PAPERLESS_CONTAINER_NAME createsuperuser
-
[Support] Paperless-ngx Docker
Redis is only in ram
-
[Support] Paperless-ngx Docker
Have a look at this: https://github.com/paperless-ngx/paperless-ngx/tree/main/docker/compose Also, the paperless-ngx template from community apps in Unraid should have some guidelines for you to follow.
-
[Support] Paperless-ngx Docker
You also need a database server eg Postgres.
-
[Support] Paperless-ngx Docker
Can you supply your config, logs etc? What Browser are you using?
-
[Support] Paperless-ngx Docker
Try the management utility: https://docs.paperless-ngx.com/administration/#management-commands
-
[Support] Paperless-ngx Docker
Hello, I have a very serious problem with my paperless-ngx install. In short: when paperless consumes a (fairly large) document, the consumtion fails but instead, the docker image starts to fill up rapidly to a point, where containers fail and I had to delete the entire image to get everything back up and running. Here is the paperless log message: [2023-05-02 20:48:38,906] [INFO] [paperless.management.consumer] Received SIGINT, stopping inotify [2023-05-02 20:48:38,911] [DEBUG] [paperless.management.consumer] Consumer exiting. [2023-05-02 20:48:39,483] [ERROR] [paperless.handlers] Updating PaperlessTask failed Traceback (most recent call last): File "/usr/local/lib/python3.9/site-packages/celery/app/trace.py", line 451, in trace_task R = retval = fun(*args, **kwargs) File "/usr/local/lib/python3.9/site-packages/celery/app/trace.py", line 734, in __protected_call__ return self.run(*args, **kwargs) File "/usr/src/paperless/src/documents/tasks.py", line 99, in consume_file doc_barcode_info = barcodes.scan_file_for_barcodes( File "/usr/src/paperless/src/documents/barcodes.py", line 181, in scan_file_for_barcodes barcodes = _pdf2image_barcode_scan(pdf_filepath) File "/usr/src/paperless/src/documents/barcodes.py", line 158, in _pdf2image_barcode_scan pages_from_path = convert_from_path( File "/usr/local/lib/python3.9/site-packages/pdf2image/pdf2image.py", line 250, in convert_from_path data, err = proc.communicate(timeout=timeout) File "/usr/local/lib/python3.9/subprocess.py", line 1134, in communicate stdout, stderr = self._communicate(input, endtime, timeout) File "/usr/local/lib/python3.9/subprocess.py", line 1979, in _communicate ready = selector.select(timeout) File "/usr/local/lib/python3.9/selectors.py", line 416, in select fd_event_list = self._selector.poll(timeout) File "/usr/local/lib/python3.9/site-packages/billiard/common.py", line 119, in _shutdown_cleanup sys.exit(-(256 - signum)) File "/usr/local/lib/python3.9/site-packages/billiard/pool.py", line 283, in exit return _exit(status) SystemExit: -241 During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/lib/python3.9/site-packages/django/db/backends/utils.py", line 89, in _execute return self.cursor.execute(sql, params) File "/usr/local/lib/python3.9/site-packages/django/db/backends/sqlite3/base.py", line 357, in execute return Database.Cursor.execute(self, query, params) sqlite3.IntegrityError: NOT NULL constraint failed: documents_paperlesstask.status The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/usr/src/paperless/src/documents/signals/handlers.py", line 594, in task_postrun_handler task_instance.save() File "/usr/local/lib/python3.9/site-packages/django/db/models/base.py", line 812, in save self.save_base( File "/usr/local/lib/python3.9/site-packages/django/db/models/base.py", line 863, in save_base updated = self._save_table( File "/usr/local/lib/python3.9/site-packages/django/db/models/base.py", line 976, in _save_table updated = self._do_update( File "/usr/local/lib/python3.9/site-packages/django/db/models/base.py", line 1040, in _do_update return filtered._update(values) > 0 File "/usr/local/lib/python3.9/site-packages/django/db/models/query.py", line 1216, in _update return query.get_compiler(self.db).execute_sql(CURSOR) File "/usr/local/lib/python3.9/site-packages/django/db/models/sql/compiler.py", line 1822, in execute_sql cursor = super().execute_sql(result_type) File "/usr/local/lib/python3.9/site-packages/django/db/models/sql/compiler.py", line 1398, in execute_sql cursor.execute(sql, params) File "/usr/local/lib/python3.9/site-packages/django/db/backends/utils.py", line 67, in execute return self._execute_with_wrappers( File "/usr/local/lib/python3.9/site-packages/django/db/backends/utils.py", line 80, in _execute_with_wrappers return executor(sql, params, many, context) File "/usr/local/lib/python3.9/site-packages/django/db/backends/utils.py", line 89, in _execute return self.cursor.execute(sql, params) File "/usr/local/lib/python3.9/site-packages/django/db/utils.py", line 91, in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value File "/usr/local/lib/python3.9/site-packages/django/db/backends/utils.py", line 89, in _execute return self.cursor.execute(sql, params) File "/usr/local/lib/python3.9/site-packages/django/db/backends/sqlite3/base.py", line 357, in execute return Database.Cursor.execute(self, query, params) django.db.utils.IntegrityError: NOT NULL constraint failed: documents_paperlesstask.status [2023-05-02 20:50:03,379] [INFO] [paperless.management.consumer] Using inotify to watch directory for changes: /usr/src/paperless/consume
-
frequent game and browser window crashes in Win 11 VM
Thanks @ghost82, changing the machine type unfortunately didn't help.
-
frequent game and browser window crashes in Win 11 VM
Here is my VM XML: <?xml version='1.0' encoding='UTF-8'?> <domain type='kvm'> <name>Windows 11</name> <uuid>60d77ad0-5f40-73a0-c9d6-XXXXXXXX</uuid> <metadata> <vmtemplate xmlns="unraid" name="Windows 11" icon="windows11.png" os="windowstpm"/> </metadata> <memory unit='KiB'>16777216</memory> <currentMemory unit='KiB'>16777216</currentMemory> <memoryBacking> <nosharepages/> </memoryBacking> <vcpu placement='static'>8</vcpu> <cputune> <vcpupin vcpu='0' cpuset='2'/> <vcpupin vcpu='1' cpuset='8'/> <vcpupin vcpu='2' cpuset='3'/> <vcpupin vcpu='3' cpuset='9'/> <vcpupin vcpu='4' cpuset='4'/> <vcpupin vcpu='5' cpuset='10'/> <vcpupin vcpu='6' cpuset='5'/> <vcpupin vcpu='7' cpuset='11'/> </cputune> <os> <type arch='x86_64' machine='pc-i440fx-7.1'>hvm</type> <loader readonly='yes' type='pflash'>/usr/share/qemu/ovmf-x64/OVMF_CODE-pure-efi-tpm.fd</loader> <nvram>/etc/libvirt/qemu/nvram/60d77ad0-5f40-73a0-c9d6-XXXXXXXXX_VARS-pure-efi-tpm.fd</nvram> </os> <features> <acpi/> <apic/> <hyperv mode='custom'> <relaxed state='on'/> <vapic state='on'/> <spinlocks state='on' retries='8191'/> <vendor_id state='on' value='none'/> </hyperv> </features> <cpu mode='host-passthrough' check='none' migratable='on'> <topology sockets='1' dies='1' cores='4' threads='2'/> <cache mode='passthrough'/> <feature policy='require' name='topoext'/> </cpu> <clock offset='localtime'> <timer name='hypervclock' present='yes'/> <timer name='hpet' present='no'/> </clock> <on_poweroff>destroy</on_poweroff> <on_reboot>restart</on_reboot> <on_crash>restart</on_crash> <devices> <emulator>/usr/local/sbin/qemu</emulator> <disk type='file' device='cdrom'> <driver name='qemu' type='raw'/> <source file='/mnt/user/isos/virtio-win-0.1.225-2.iso'/> <target dev='hdb' bus='sata'/> <readonly/> <address type='drive' controller='0' bus='0' target='0' unit='1'/> </disk> <disk type='block' device='disk'> <driver name='qemu' type='raw' cache='writeback'/> <source dev='/dev/disk/by-id/ata-CT1000MX500SSD1_XXXXXXXXX'/> <target dev='hdc' bus='sata' rotation_rate='1'/> <boot order='1'/> <address type='drive' controller='0' bus='0' target='0' unit='2'/> </disk> <controller type='pci' index='0' model='pci-root'/> <controller type='sata' index='0'> <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/> </controller> <controller type='virtio-serial' index='0'> <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/> </controller> <controller type='usb' index='0' model='ich9-ehci1'> <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x7'/> </controller> <controller type='usb' index='0' model='ich9-uhci1'> <master startport='0'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0' multifunction='on'/> </controller> <controller type='usb' index='0' model='ich9-uhci2'> <master startport='2'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x1'/> </controller> <controller type='usb' index='0' model='ich9-uhci3'> <master startport='4'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x2'/> </controller> <interface type='bridge'> <mac address='52:54:00:6a:e6:45'/> <source bridge='br0'/> <model type='virtio-net'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/> </interface> <serial type='pty'> <target type='isa-serial' port='0'> <model name='isa-serial'/> </target> </serial> <console type='pty'> <target type='serial' port='0'/> </console> <channel type='unix'> <target type='virtio' name='org.qemu.guest_agent.0'/> <address type='virtio-serial' controller='0' bus='0' port='1'/> </channel> <input type='tablet' bus='usb'> <address type='usb' bus='0' port='4'/> </input> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> <tpm model='tpm-tis'> <backend type='emulator' version='2.0' persistent_state='yes'/> </tpm> <audio id='1' type='none'/> <hostdev mode='subsystem' type='pci' managed='yes'> <driver name='vfio'/> <source> <address domain='0x0000' bus='0x01' slot='0x00' function='0x0'/> </source> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0' multifunction='on'/> </hostdev> <hostdev mode='subsystem' type='pci' managed='yes'> <driver name='vfio'/> <source> <address domain='0x0000' bus='0x01' slot='0x00' function='0x1'/> </source> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x1'/> </hostdev> <hostdev mode='subsystem' type='usb' managed='no'> <source> <vendor id='0x046d'/> <product id='0x08e5'/> </source> <address type='usb' bus='0' port='1'/> </hostdev> <hostdev mode='subsystem' type='usb' managed='no'> <source> <vendor id='0x046d'/> <product id='0xc345'/> </source> <address type='usb' bus='0' port='2'/> </hostdev> <hostdev mode='subsystem' type='usb' managed='no'> <source> <vendor id='0x046d'/> <product id='0xc52b'/> </source> <address type='usb' bus='0' port='3'/> </hostdev> <memballoon model='none'/> </devices> </domain> It is generated by Unraid VM Manager. The only parameters I changed are rotation_rate (makes C drive show up as SSD) and multifunction=on etc (best practice for handling PCIe devices)
-
frequent game and browser window crashes in Win 11 VM
Maybe I used the wrong keywords but I was not able to find a similar thread in this forum. Recently, I set up a Windows 11 VM as my daily driver Desktop and I am quite happy with it. Unfortunately, I noticed that some applications suddenly crash. It happens to applications that run for longer than a few minutes. Docker Desktop with WSL Firefox Tabs or whole Browser Handbrake Games, e.g. Satisfactory, Civ 6, Railway Empire I know running WSL inside a VM is probably not the smartest thing in the world and I don't need to. I can also use a Handbrake Docker container without issue. But I really need to use my webbrowser and run some games, otherwise the purpose of the VM is kind of defeated. Windows Event Monitor does not help unfortunately. Since I have installed Windows on a bare metal ssd I was able to boot directly from that and test the install - no crashes there. So the issue is definetly related to KVM.
-
Unraid hangs after array startup
So this seems to have solved the issue. The array is running now for over an hour without issue. Thank you both @JorgeB and @dlandon. Can I buy you a coffee somewhere?