Skip to content

File upload problem #6679

@Ukas9

Description

@Ukas9

Hey there,

I've got problem with file upload.

Quick info:

Rocket.Chat Version: 0.55.0-rc.3
Running Instances: 1
DB Replicaset OpLog: Disabled
Node Version: v4.5.0
Debian 9.0
Apache v.2.4.25

Apache SSL Reverse Proxy conf file:

<VirtualHost *:443>

ServerName domain.com

SSLEngine On
SSLCertificateFile /etc/ssl/certs/domain.com.crt
SSLCertificateKeyFile /etc/ssl/private/domain.com.key

<Location /var/www/Rocket.Chat/>
        Order allow,deny
        Allow from all
</Location>

RewriteEngine On
RewriteCond %{HTTP:Upgrade} =websocket [NC]
RewriteRule /chat/(.*)           ws://localhost:3000/chat/$1 [P,L]
RewriteCond %{HTTP:Upgrade} !=websocket [NC]
RewriteRule /chat/(.*)           http://localhost:3000/chat/$1 [P,L]

ProxyPass /chat/ http://localhost:3000/chat/
ProxyPassReverse /chat/ http://localhost:3000/chat/
</VirtualHost>

I tried to use GridFS and FileSystem but nothing works well. All time file stucks on 0%.
I also tried to edit jalik_ufs.js file, in order to change storesPath to chat/ufs according to https://github.com/jalik/jalik-ufs/tree/v0.6.4#configuration. After that the progress bar comes to 100%, but after I receive internal server error and nothing happens.

Rocket.Chat logs with storesPath = chat/ufs:

{ [Error: ENOENT: no such file or directory, open '/tmp/ufs/naTNBxCzPkxCM8T55']
  errno: -2,
  code: 'ENOENT',
  syscall: 'open',
  path: '/tmp/ufs/naTNBxCzPkxCM8T55' }
[Error: FileNotFound: no file with id naTNBxCzPkxCM8T55 found]
Exception while invoking method 'ufsComplete' Error: ENOENT: no such file or directory, open '/tmp/ufs/naTNBxCzPkxCM8T55'
  at Object.Future.wait (/var/www/Rocket.Chat/programs/server/node_modules/fibers/future.js:449:15)
  at [object Object].Meteor.methods.ufsComplete (/var/www/Rocket.Chat/programs/server/packages/jalik_ufs.js:818:24)
  at [object Object].methodsMap.(anonymous function) (/var/www/Rocket.Chat/programs/server/packages/rocketchat_lib.js:1069:26)
  at [object Object].methodMap.(anonymous function) (packages/rocketchat_monitoring.js:2731:30)
  at maybeAuditArgumentChecks (/var/www/Rocket.Chat/programs/server/packages/ddp-server.js:1823:12)
  at /var/www/Rocket.Chat/programs/server/packages/ddp-server.js:905:20
  at [object Object]._.extend.withValue (packages/meteor.js:1122:17)
  at /var/www/Rocket.Chat/programs/server/packages/ddp-server.js:904:41
  at [object Object]._.extend.withValue (packages/meteor.js:1122:17)
  at /var/www/Rocket.Chat/programs/server/packages/ddp-server.js:903:46
  at [object Object]._.extend.protocol_handlers.method (/var/www/Rocket.Chat/programs/server/packages/ddp-server.js:876:21)
  at /var/www/Rocket.Chat/programs/server/packages/ddp-server.js:755:85

    - - - - -
  at Error (native)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions