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

Web server non-functional, no logs #55

Closed
pedropombeiro opened this issue Oct 11, 2024 · 3 comments · Fixed by #56
Closed

Web server non-functional, no logs #55

pedropombeiro opened this issue Oct 11, 2024 · 3 comments · Fixed by #56
Assignees
Labels
bug Something isn't working

Comments

@pedropombeiro
Copy link
Collaborator

I decided to give the webserver a try, but it is not triggering scans for me. I even tried running the curl command inside the container, but still no results, and nothing logged:

image

Any ideas what I could look for?

Here's my docker-compose config:

  brother-scanner:
    image: ghcr.io/philippmundhenk/brotherscannerdocker:pedropombeiro-convert-to-python3
    extends:
      file: ../common-services.yml
      service: baseapp
    container_name: docs_brother_scanner
    volumes:
      - ${paperlessConsumeDir}:/scans/
      - ../../log/brotherscanner/:/var/log/
    ports:
      - 33355:33355
      - 54925:54925/udp # Scan Key Tool UDP: mandatory, for scanner tools
      - 54921:54921 # Scan Key Tool TCP: mandatory, for scanner tools
      - 161:161/udp # SNMP: mandatory, for scanner tools
    environment:
      - NAME=Paperless
      - MODEL=MFC-J4340DW
      - IPADDRESS=192.168.46.12
      - UID=500 # note: network mount needs to have correct permissions!
      - GID=101 # note: network mount needs to have correct permissions!
      - HOST_IPADDRESS=192.168.96.10
      - RESOLUTION=300
      - REMOVE_BLANK_THRESHOLD=0.55

      - WEBSERVER=true # optional, activates GUI & API
      - PORT=33355 # optional, sets port for webserver (default: 80)
      - DISABLE_GUI_SCANTOIMAGE=true
      - RENAME_GUI_SCANTOFILE="Scan front pages"
      - RENAME_GUI_SCANTOOCR="Scan front pages (B&W)"
      - RENAME_GUI_SCANTOEMAIL="Scan rear pages"
    restart: unless-stopped
@pedropombeiro
Copy link
Collaborator Author

pedropombeiro commented Oct 11, 2024

Looks like the problem is in /etc/sudoers, it lists the NAS user, instead of the user in NAME. When I changed it with visudo to use the user listed in NAME, then web UI worked straight away.

@PhilippMundhenk
Copy link
Owner

I think that may be fixed in #32. I missed that when fixing username back then.

@PhilippMundhenk PhilippMundhenk added the bug Something isn't working label Oct 11, 2024
@PhilippMundhenk
Copy link
Owner

closed in #58

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants