Giter VIP home page Giter VIP logo

Comments (7)

ChipwizBen avatar ChipwizBen commented on September 2, 2024 1

For what it's worth, triggering an update fixes these permission issues on uploaded datasets. Uploading new sets still exhibit the same problem. I'm guessing that the process that saves the uploaded files is saving the files with permissions that the next part of the process (upload to node) isn't able to read and running the update does a global permission fix. Have been too busy to dig into it lately but will do if I get some time soon.

from nodemicmac.

dronemapper-io avatar dronemapper-io commented on September 2, 2024

Thanks. Can you provide some more details on the number of images/etc? Did you try uploading the same image set directly to the NodeMICMAC API at port 3000? Did that work?

from nodemicmac.

pierotofy avatar pierotofy commented on September 2, 2024

This is probably a problem with WebODM. Make sure to update to the latest version (1.1.0) and try again, since we fixed some race conditions bug since.

from nodemicmac.

ChipwizBen avatar ChipwizBen commented on September 2, 2024

Updated to: App Version: 1.1.0

Sadly the problem still exists, even with a brand new project and dataset.

from nodemicmac.

ChipwizBen avatar ChipwizBen commented on September 2, 2024

Well, this is interesting. Had a scoot through /var/log/messages and found this:

Jun 28 19:54:54 proc-dev.nwk1.com webodm.sh: #033[35mworker           |#033[0m
Jun 28 19:54:54 proc-dev.nwk1.com journal:  File "/usr/local/lib/python3.6/site-packages/pyodm/api.py", line 378, in create_task
Jun 28 19:54:54 proc-dev.nwk1.com journal:    raise nonloc.error
Jun 28 19:54:54 proc-dev.nwk1.com journal:  File "/usr/local/lib/python3.6/site-packages/pyodm/api.py", line 299, in worker
Jun 28 19:54:54 proc-dev.nwk1.com journal:    'images': [(os.path.basename(file), read_file(file), (mimetypes.guess_type(file)[0] or "image/jpg"))]
Jun 28 19:54:54 proc-dev.nwk1.com journal:  File "/usr/local/lib/python3.6/site-packages/pyodm/api.py", line 281, in read_file
Jun 28 19:54:54 proc-dev.nwk1.com journal:    with open(file_path, 'rb') as f:
Jun 28 19:54:54 proc-dev.nwk1.com journal: PermissionError: [Errno 13] Permission denied: '/webodm/app/media/project/13/task/7af86ef2-346b-4657-b9bc-da6cbe724e0a/1CD26242_987A_11E9_8009_064DA8AAA1DE.jpg'
Jun 28 19:54:54 proc-dev.nwk1.com journal: 
Jun 28 19:54:54 proc-dev.nwk1.com journal: [2019-06-28 07:54:54,653: ERROR/ForkPoolWorker-8] worker.tasks.process_task[4ae2d0ec-4813-462f-9ff5-d775aa70f777]: Uncaught error! This is potentially bad. Please report it to http://github.com/OpenDroneMap/WebODM/issues: [Errno 13] Permission denied: '/webodm/app/media/project/13/task/7af86ef2-346b-4657-b9bc-da6cbe724e0a/1CD26242_987A_11E9_8009_064DA8AAA1DE.jpg' Traceback (most recent call last):
Jun 28 19:54:54 proc-dev.nwk1.com journal:  File "/webodm/worker/tasks.py", line 103, in process_task
Jun 28 19:54:54 proc-dev.nwk1.com journal:    task.process()
Jun 28 19:54:54 proc-dev.nwk1.com journal:  File "/webodm/app/models/task.py", line 457, in process
Jun 28 19:54:54 proc-dev.nwk1.com journal:    uuid = self.processing_node.process_new_task(images, self.name, self.options, callback)
Jun 28 19:54:54 proc-dev.nwk1.com journal:  File "/webodm/nodeodm/models.py", line 119, in process_new_task
Jun 28 19:54:54 proc-dev.nwk1.com journal:    task = api_client.create_task(images, opts, name, progress_callback)
Jun 28 19:54:54 proc-dev.nwk1.com journal:  File "/usr/local/lib/python3.6/site-packages/pyodm/api.py", line 378, in create_task
Jun 28 19:54:54 proc-dev.nwk1.com journal:    raise nonloc.error
Jun 28 19:54:54 proc-dev.nwk1.com journal:  File "/usr/local/lib/python3.6/site-packages/pyodm/api.py", line 299, in worker
Jun 28 19:54:54 proc-dev.nwk1.com journal:    'images': [(os.path.basename(file), read_file(file), (mimetypes.guess_type(file)[0] or "image/jpg"))]
Jun 28 19:54:54 proc-dev.nwk1.com journal:  File "/usr/local/lib/python3.6/site-packages/pyodm/api.py", line 281, in read_file
Jun 28 19:54:54 proc-dev.nwk1.com journal:    with open(file_path, 'rb') as f:
Jun 28 19:54:54 proc-dev.nwk1.com journal: PermissionError: [Errno 13] Permission denied: '/webodm/app/media/project/13/task/7af86ef2-346b-4657-b9bc-da6cbe724e0a/1CD26242_987A_11E9_8009_064DA8AAA1DE.jpg'
Jun 28 19:54:54 proc-dev.nwk1.com journal: 
[root@proc-dev ~]# ll /webodm
ls: cannot access /webodm: No such file or directory

This is a Docker install, it has never been a native install, so it's puzzling as to why it's looking for that directory. This doesn't explain why some begin processing though. Very strange.

from nodemicmac.

dronemapper-io avatar dronemapper-io commented on September 2, 2024

Looks like @pierotofy is aware and on it. It seems like a webodm or webodm vs nodemicmac integration issue. Thanks

from nodemicmac.

kikislater avatar kikislater commented on September 2, 2024

Reopen if still an issue

from nodemicmac.

Related Issues (20)

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.