Can not upload images

Hello

I installed my pod Diaspora under YunoHost with docker with this link: https://github.com/aymhce/diasporadocker_ynh

I am on YunoHost 3.0.1 with the Debian 9 distribution.

When I want to upload an image I have an internal server error and no image is downloaded. The folder Public/uploads/images is well configured with the diaspora account and write but it still does not work. I can write text but not upload images.

I tested with Firefox 60 under Ubuntu 18.04 and on IE 11 with Windows 7.

I encountered the same problem on debian 8.

I tested several tracks but without success:

I’m getting a 500 error page

Oh noes, you might have hit a bug in diaspora *! But this can also be caused by a setup problem, like an incorrectly setup custom landing page, an old Redis version or a database connectivity issue.

Make sure you find a way to reproduce the issue.
Run tail -f log / production.log. Watch the output closely as you reproduce the issue.
If you can not make sense of the message, reach out to us, see How we communicate. When doing so, you have to take steps to reproduce it.
If told to open an issue, go to https://github.com/diaspora/diaspora/issues. Again make sure to provide the steps to reproduce the problem as well as the log output.

I did a tail -f log/production.log and here is the result:

[2018-06-20T21:05:34] INFO PID-352 TID-46970689171260 ActionController::Base: Parameters: {""=>“1529528734575”}
[2018-06-20T21:05:34] INFO PID-352 TID-46970689171260 ActionController::Base: Completed 200 OK in 116ms (Views: 40.3ms | ActiveRecord: 44.3ms)
[2018-06-20T21:05:36] INFO PID-352 TID-46970689171260 Rails: Started GET "/stream?max_time=1529452845&
=1529528734576" for 172.18.0.1 at 2018-06-20 21:05:36 +0000
[2018-06-20T21:05:36] INFO PID-352 TID-46970689171260 ActionController::Base: Processing by StreamsController#multi as JSON
[2018-06-20T21:05:36] INFO PID-352 TID-46970689171260 ActionController::Base: Parameters: {“max_time”=>“1529452845”, “"=>“1529528734576”}
[2018-06-20T21:05:36] INFO PID-352 TID-46970689171260 ActionController::Base: Completed 200 OK in 53ms (Views: 0.6ms | ActiveRecord: 26.9ms)
[2018-06-20T21:05:37] INFO PID-352 TID-46970689171260 Rails: Started GET "/stream?max_time=1529452845&
=1529528734577” for 172.18.0.1 at 2018-06-20 21:05:37 +0000
[2018-06-20T21:05:37] INFO PID-352 TID-46970689171260 ActionController::Base: Processing by StreamsController#multi as JSON
[2018-06-20T21:05:37] INFO PID-352 TID-46970689171260 ActionController::Base: Parameters: {“max_time”=>“1529452845”, “_”=>“1529528734577”}
[2018-06-20T21:05:37] INFO PID-352 TID-46970689171260 ActionController::Base: Completed 200 OK in 62ms (Views: 0.6ms | ActiveRecord: 36.3ms)
[2018-06-20T21:06:00] INFO PID-352 TID-46970689171260 Rails: Started POST “/photos” for 172.18.0.1 at 2018-06-20 21:06:00 +0000
[2018-06-20T21:06:00] INFO PID-352 TID-46970689171260 ActionController::Base: Processing by PhotosController#create as JSON
[2018-06-20T21:06:00] INFO PID-352 TID-46970689171260 ActionController::Base: Parameters: {“authenticity_token”=>“dRXE+LKagPPFOIi6WSwMcRIS7d0hbZsKrFvtZ37ed4aTHX147DQ5ToJfKCoz5tfufc8w+q88SFN4aBoEj5216Q==”, “photo”=>{“pending”=>“true”}, “qquuid”=>“c8931439-896a-4ba0-94ce-f74d6c4e4796”, “qqfilename”=>“ed833f4e6207f723.jpg”, “qqtotalfilesize”=>“4171”, “qqfile”=>#<ActionDispatch::Http::UploadedFile:0x00557075bd88d8 @tempfile=#Tempfile:/tmp/RackMultipart20180620-352-1d7sbwa.jpg, @original_filename=“ed833f4e6207f723.jpg”, @content_type=“image/jpeg”, @headers=“Content-Disposition: form-data; name=“qqfile”; filename=“ed833f4e6207f723.jpg”\r\nContent-Type: image/jpeg\r\n”>}
[2018-06-20T21:06:00] INFO PID-352 TID-46970689171260 ActionController::Base: Completed 500 Internal Server Error in 261ms (ActiveRecord: 2.6ms)
[2018-06-20T21:06:00] FATAL PID-352 TID-46970689171260 Rails:
[2018-06-20T21:06:00] FATAL PID-352 TID-46970689171260 Rails: NoMethodError (undefined method match' for nil:NilClass): [2018-06-20T21:06:00] FATAL PID-352 TID-46970689171260 Rails: [2018-06-20T21:06:00] FATAL PID-352 TID-46970689171260 Rails: app/models/photo.rb:101:inupdate_remote_path’
app/models/photo.rb:91:in diaspora_initialize' app/models/user.rb:235:inbuild_post’
app/controllers/photos_controller.rb:138:in legacy_create' app/controllers/photos_controller.rb:47:inblock in create’
app/controllers/photos_controller.rb:168:in rescuing_photo_errors' app/controllers/photos_controller.rb:46:increate’
[2018-06-20T21:06:39] INFO PID-349 TID-46970689171260 Rails: Started POST “/status_messages” for 172.18.0.1 at 2018-06-20 21:06:39 +0000
[2018-06-20T21:06:39] INFO PID-349 TID-46970689171260 ActionController::Base: Processing by StatusMessagesController#create as JSON
[2018-06-20T21:06:39] INFO PID-349 TID-46970689171260 ActionController::Base: Parameters: {“status_message”=>"[FILTERED]", “aspect_ids”=>“all_aspects”, “location_coords”=>"", “poll_question”=>"", “poll_answers”=>["", “”]}
[2018-06-20T21:06:40] INFO PID-349 TID-46970689171260 ActionController::Base: Completed 403 Forbidden in 532ms (Views: 1.9ms | ActiveRecord: 448.5ms)

Thank you in advance for your assistance

This seems to be a known issue with this container: https://github.com/aymhce/diasporadocker_ynh/issues/3

So please make sure your permissions are correct.

Hello and thank you for your quick response

I have already tested this solution but it does not work. I still can not upload images.

If you have another problem than the linked issue, you can open a new issue about it here.

Also if that docker-container doesn’t work but you want to use docker, you could try another docker container. There is for example this one: https://gitlab.koehn.com/docker/diaspora/ and I know that some others use it, so it’s maybe worth a try?

Hello and thank you for your answer

This is the kohen docker I use but I do not think my problem comes from the docker. It’s probably a problem of law because I can publish messages, but the only thing I can not do is post photos. Yet the rights are correct (diaspora) and the chmod is 777

The docker repo you cited in your opening post is a different one from a different developer:

The Koehn repo is quite separate and might work better for you.

Hello

I am a big newbie on Docker. I do not understand your message. Can you explain to me.

Thank you

Docker images are not supported by Diaspora, so you need to approach the person who maintains the Docker image you use when you have problems.

You said you have installed the Doscker image from this link:
https://github.com/aymhce/diasporadocker_ynh
If so, you need to contact the person who maintains that code (https://github.com/aymhce) to resolve any problems you have with installation.

There is an alternative Docker image available, maintained by Brad Koehn, who is an active member of the Diaspora community. A number of pods run successfully using his code, which you can find at: https://gitlab.koehn.com/docker/diaspora/

The two images are entirely separate. If the one you have used from aymhce doesn’t work, you could start again, trying the one maintained by Brad Koehn, to see if that works. If you need help with that one, you will need to contact Brad.

1 Like