pandora-box icon indicating copy to clipboard operation
pandora-box copied to clipboard

No file snap/bin/pandora

Open ImJoeMz opened this issue 9 months ago • 64 comments

I am trying to install Pandora-box. Everything works fine but when I try this one line to troubleshoot :

poetry run pandora --url [http://127.0.0.1:6100] -f eicar.com.txt

It shows me this error :

Image

No such file or directory: b'/snap/bin/pandora' at /usr/lib/python3.10/os.py:

ImJoeMz avatar Feb 07 '25 07:02 ImJoeMz

Thank you @dbarzin for trying to fix this bug. I see that you've been making commits and push.

I wanted to know if the bug is fixed or not yet.

Thank you again.

ImJoeMz avatar Feb 19 '25 07:02 ImJoeMz

I am still working on it. There are issues with the installation of Pandora. I try to fix it by the end of this week.

dbarzin avatar Feb 19 '25 07:02 dbarzin

Thank you !

ImJoeMz avatar Feb 19 '25 09:02 ImJoeMz

The installation process has been fixed !

dbarzin avatar Feb 20 '25 09:02 dbarzin

Thank you !! I am going to try the installation and I will put a comment once i'm done.

ImJoeMz avatar Feb 20 '25 10:02 ImJoeMz

Hello,

Thank you for fixing the bug !

I re-installed the pandora-box again and when i try switching to the user pandora and opening the terminal, i get this error:

mesg; impossible d'ouvrir /dev/pts/0: Permission non accordée Start Traceback (most recent call last): File "/home/pandora/pandora-box/pandora-box.py", line 887, in curses.wrapper(main) File "/usr/lib/python3.12/curses/init.py", line 101, in wrapper endwin() _curses.error: endwin() returned ERR"

But when I try opening the terminal and clicking on F11 immediately (which open it in full screen), the terminal opens in full screen and i get pandora-box running !

I also tried the eicar.com.txt file as a test, and it opens a page with the text "pending tast!"

Image

After 2 hours, i checked the website and it says clean file for the eicar, which is weird.

Image

I even tried putting the file in a flash disk but it says "0 files scanned, 0 files infected". I discovered that when mount the flash disk, it's in /media/'username'/''flash disk'. But when i check out the pandora box, it says "partition mounted at /media/box". So I think this should be changed in the code.

When i do a "tail -500f /var/log/pandora_message.log" i find this error message repeated many times :

"2025-02-25 09:15:07,316 UnoserverLauncher ERROR:Something went terribly wrong in UnoserverLauncher. Traceback (most recent call last): File “/home/pandora/pandora/pandora/default/abstractmanager.py”, line 149, in run self._to_run_forever() File “/home/pandora/pandora/pandora/default/abstractmanager.py”, line 117, in _to_run_forever raise NotImplementedError('This method must be implemented by the child')

Thank you for taking the time to fix the bug and to answer my questions ! Have a great day !

ImJoeMz avatar Feb 24 '25 10:02 ImJoeMz

Bonjour,

J'espère que vous allez bien. Avez-vous eu le temps de jeter un coup d'œil à mon problème @dbarzin ?

Merci beaucoup et passez une excellente journée.

ImJoeMz avatar Mar 06 '25 15:03 ImJoeMz

Cela semble être le même problème que https://github.com/dbarzin/pandora-box/issues/22 Une issue a été postée dans le projet Pandora

dbarzin avatar Mar 06 '25 15:03 dbarzin

Le problème ressemble mais ce n'est pas la même chose. En effet, le pandora box me dit '0 files scanned'. Je pense que le path n'est pas bon. Quand j'ai essayé de changé le path dans toutes les lignes du fichier .py, le scan ne marche plus.

ImJoeMz avatar Mar 06 '25 15:03 ImJoeMz

Quel OS as-tu installé ?

dbarzin avatar Mar 06 '25 15:03 dbarzin

Le dernier : Ubuntu 24.04.1 LTS

ImJoeMz avatar Mar 06 '25 15:03 ImJoeMz

Ubuntu server ?

dbarzin avatar Mar 06 '25 15:03 dbarzin

Non, ubuntu desktop. le Ubuntu Server n'a pas d'interface graphique, que terminal.

ImJoeMz avatar Mar 06 '25 15:03 ImJoeMz

Le problème du point de montage provient de là. Pandora-box fonctionne avec Ubuntu 24.04 Server

dbarzin avatar Mar 06 '25 17:03 dbarzin

Image Image

Bonjour,

J'ai installé Ubuntu server et le pandora-box. Le logiciel se lance direct quand j'ouvre le PC mais quand je met une clé USB avec EICAR, il ne détecte rien et ne scanne rien. j'ai trouvé des errors dans les logs de pandora-box (voir photo jointe)

  • Portable Dell
  • OS: Ubuntu Server 24.04.2 avec OpenSSH
  • Installation réalisée sans modification du fichier install.sh

ImJoeMz avatar Apr 08 '25 14:04 ImJoeMz

Cela provient de LibreOffice. Il nous faudrait les logs complets de l'erreur pour pouvoir t'aider :

  • pandora-box.log
  • pandora_error.log
  • pandora_message.log

Pourrais-tu également envoyer le résultat de ces commandes :

  • df -h
  • free -h
  • lscpu

dbarzin avatar Apr 08 '25 15:04 dbarzin

Voici les fichiers demandés. Pour les commandes df -h / free -h / lscpu , les sorties sont dans cmd.txt. Merci d'avance.

cmd.txt pandora-box.log pandora_error.log pandora_message.log

ImJoeMz avatar Apr 09 '25 07:04 ImJoeMz

Il y a des analyses qui ne se sont pas terminées avec OpenOffice. Cela consomme toute la mémoire. (à vérifeir avec ps -aux)

Pour vider le cache :

poetry run stop
rm pandora/cache/dump.rdb 
poetry run start

Un changement est en cours dans Pandora pour améliorer cela.

dbarzin avatar Apr 09 '25 09:04 dbarzin

Merci pour les solutions. J'ai lancé les commandes. Mais, le problème persiste et je reçois le même resultat : 0 files scanned, 0 files infected et le USB contient plusieurs fichiers txt et html et gz et log.

ImJoeMz avatar Apr 09 '25 12:04 ImJoeMz

On vient d'avoir le même problème ici, ClamAV est mal installé. Essaye de supprimer clamav.yml du répertoire ~/pandora/pandora/workers et redémarre la pandora-box. Des tests vont être ajoutés pour que cela ne se produise plus.

dbarzin avatar Apr 09 '25 12:04 dbarzin

On a réglé les derniers problèmes. Tu peux refaire l'installation.

dbarzin avatar Apr 09 '25 13:04 dbarzin

j'ai reçu un message d'error lors de poetry run start : no file pyprojet.toml in /home/pandora or its parents

ImJoeMz avatar Apr 09 '25 15:04 ImJoeMz

Tu n'es pas dans le bon répertoire

Le mer. 9 avr. 2025, 17:16, ImJoeMz @.***> a écrit :

j'ai reçu un message d'error lors de poetry run start : no file pyprojet.toml in /home/pandora or its parents

— Reply to this email directly, view it on GitHub https://github.com/dbarzin/pandora-box/issues/20#issuecomment-2790082496, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKJU4KAJLDO6VG3CQWVORO32YU2U5AVCNFSM6AAAAABWVKI4F6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDOOJQGA4DENBZGY . You are receiving this because you were mentioned.Message ID: @.***> ImJoeMz left a comment (dbarzin/pandora-box#20) https://github.com/dbarzin/pandora-box/issues/20#issuecomment-2790082496

j'ai reçu un message d'error lors de poetry run start : no file pyprojet.toml in /home/pandora or its parents

— Reply to this email directly, view it on GitHub https://github.com/dbarzin/pandora-box/issues/20#issuecomment-2790082496, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKJU4KAJLDO6VG3CQWVORO32YU2U5AVCNFSM6AAAAABWVKI4F6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDOOJQGA4DENBZGY . You are receiving this because you were mentioned.Message ID: @.***>

dbarzin avatar Apr 09 '25 16:04 dbarzin

Bonjour,

La pandora-box ne trouve pas de fichiers lors des scans de mes périphériques USB : Scan done in 0.1s , 0 files scanned, 0 files infected

Cependant quand je mount l'un de mes clefs usb (sur la même machine), je retrouve bien leurs fichiers et arborescences.

Est-ce possible que le pandora-box n'a pas fait le mount proprement ?

Aussi, y-a-t-il une commande pandora-box pour lancer le scan depuis le terminal ?

Merci d'avance.

Cordialement,

ImJoeMz avatar Apr 10 '25 12:04 ImJoeMz

Avez-vous bien installé Pandora-Box avec Ubuntu Server LTS 24.04 ? Dans cette version, le montage des clés USB est manuel. Vous pouvez vérifier les dispositifs montés avec la commande mount Je recommande une réinstallation. Nous avons effectué quelques ajustements ces derniers jours.

dbarzin avatar Apr 10 '25 18:04 dbarzin

J'ai bien installé la dernière version du Ubuntu Server Ubuntu 24.04.2 LTS https://ubuntu.com/download/server

J'ai vérifié avec les commandes mount et lsblk, voici le résultat :

cmd.txt

Depuis vos derniers commits, j'ai tout fait de nouveau. J'ai re installé et configuré le ubuntu serveur et mis le pandora box.

ImJoeMz avatar Apr 11 '25 09:04 ImJoeMz

Bonjour,

Je voulais savoir s'il y a d'autre tests que je peux faire pour déterminer le problème.

Merci d'avance.

Cordialement,

ImJoeMz avatar Apr 15 '25 14:04 ImJoeMz

Je vais ajouter des logs dans Pandora-box pour analyser le problème. On pourras refaire le test dans quelques jours.

dbarzin avatar Apr 15 '25 14:04 dbarzin

Merci bien.

ImJoeMz avatar Apr 16 '25 14:04 ImJoeMz

Les logs ont été améliorés. Tu peux effectuer ces commandes :

rm /var/log/pandora-box.log
cd pandora-box
git pull

et relancer la pandora-box puis m'envoyer les logs.

dbarzin avatar Apr 16 '25 15:04 dbarzin