I have a fresh 23.5.0 single server installation and upload files to the Files sections just doesn't work.
Upload starts and keeps in eternal loop trying but never completes.
Turning on browser DevTools and taking a look at console I can see many erros like:
* Failed to load resource: the server responded with a status of 502 () https://myURL.foo/zx/login/v3/config
* Failed to load resource: the server responded with a status of 504 () https://myURL.foo/services/files/upload
* Failed to load resource: net::ERR_NAME_NOT_RESOLVED https://myURL.foo/service/soap/NoOpRequest
Pretty odd error if you ask me because everything else seems to be working well.
looking into /var/log/carbonio/files/files.log I can see:
20:40:59.557 [nioEventLoopGroup-3-1] ERROR c.z.c.f.r.controllers.BlobController - BlobController catches an exception
java.lang.NumberFormatException: null
20:40:59.559 [nioEventLoopGroup-3-1] ERROR c.z.c.files.netty.ExceptionsHandler - Failed to execute the request. 500 Internal Server Error
20:57:56.425 [nioEventLoopGroup-3-24] ERROR c.z.c.f.r.controllers.BlobController - BlobController catches an exception
java.lang.NumberFormatException: null
many times... so does anybody have any idea of what can that be fixed?
Regards
So I decided to reinstall it all from scratch.... all options like "New Folder" and "new document" are grayed =(
What I found interesting was this log on /var/log/carbonio/files/file.log
09:41:32.107 [main] ERROR com.zextras.carbonio.files.Boot - Service stopped unexpectedly: org.postgresql.util.PSQLException: Connection to 127.78.0.2:20000 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
telnet 127.78.0.2 20000
telnet: Unable to connect to remote host: Connection refused
So, I reach a dead end here.... does anybody have a clue about what I'm suppose to do?
Regards
Complimenting the issue with more information:
systemctl status carbonio-docs-editor
jun 21 16:41:22 master coolwsd[3966364]: /opt/zextras/docs/bin/coolforkit: Relink `/opt/zextras/common/lib/libPocoFoundation.so.94' with `/lib/x86_64-linux-gnu/libz.so.1' for IFUN>
jun 21 16:41:22 master coolwsd[3966364]: coolforkit version details: 22.05.12.4 - dist
jun 21 16:41:22 master coolwsd[3966364]: Capabilities are not set for the coolforkit program.
jun 21 16:41:22 master coolwsd[3966364]: Please make sure that the current partition was *not* mounted with the 'nosuid' option.
jun 21 16:41:22 master coolwsd[3966364]: If you are on SLES11, please set 'file_caps=1' as kernel boot option.
"Capabilities are not set for the coolforkit program."
it seem there are some sort of permission missing... it can't load properly
So I changed /usr/bin/carbonio-files and changed DFILES_LOG_LEVEL to debug.
Restarted carbonio-files.services and got this on /var/log/carbonio/files/files.log
20:14:41.998 [nioEventLoopGroup-3-14] INFO c.z.c.files.netty.HttpRoutingHandler - /upload
20:14:42.012 [nioEventLoopGroup-3-14] DEBUG i.n.channel.DefaultChannelPipeline - Discarded inbound message {} that reached at the tail of the pipeline. Please check your pipeline configuration.
java.util.NoSuchElementException: null
at com.zextras.carbonio.files.rest.controllers.BlobController.channelRead0(BlobController.java:164)
at com.zextras.carbonio.files.rest.controllers.BlobController.channelRead0(BlobController.java:61)
at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:99)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:444)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412)
at com.zextras.carbonio.files.netty.AuthenticationHandler.lambda$validateAuthTokenAndFetchAccount$1(AuthenticationHandler.java:132)
at java.base/java.util.Optional.ifPresentOrElse(Optional.java:194)
at com.zextras.carbonio.files.netty.AuthenticationHandler.lambda$validateAuthTokenAndFetchAccount$3(AuthenticationHandler.java:123)
at io.vavr.control.Try.onSuccess(Try.java:712)
at com.zextras.carbonio.files.netty.AuthenticationHandler.validateAuthTokenAndFetchAccount(AuthenticationHandler.java:120)
at com.zextras.carbonio.files.netty.AuthenticationHandler.channelRead0(AuthenticationHandler.java:78)
at com.zextras.carbonio.files.netty.AuthenticationHandler.channelRead0(AuthenticationHandler.java:25)
at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:99)
"Discarded inbound message {} that reached at the tail of the pipeline. Please check your pipeline configuration."
What does that mean and how to fix it?
No matter how many times I install it from scratch it always ends like this:
"Error connecting to Consul agent: Unexpected response code: 403 (Permission denied)"
systemctl status carbonio-files-db-sidecar.service
● carbonio-files-db-sidecar.service - Carbonio Files database sidecar
Loaded: loaded (/lib/systemd/system/carbonio-files-db-sidecar.service; enabled; vendor preset: enabled)
Active: active (running) since Thu 2023-06-22 23:32:22 -03; 13min ago
Docs: https://docs.zextras.com/
Main PID: 232962 (envoy)
Tasks: 5 (limit: 77023)
Memory: 8.5M
CPU: 8.561s
CGroup: /system.slice/carbonio-files-db-sidecar.service
└─232962 /usr/bin/envoy --config-path /tmp/envoy-176b28fac6bd3fe0-bootstrap.json --disable-hot-restart
jun 22 23:32:22 carbteste1 systemd[1]: Started Carbonio Files database sidecar.
jun 22 23:32:22 carbteste1 consul[232962]: Error connecting to Consul agent: Unexpected response code: 403 (Permission denied)
jun 22 23:32:22 carbteste1 consul[232962]: external/com_github_google_tcmalloc/tcmalloc/internal/percpu_tcmalloc.h:729] !hdr.IsLocked() @ 0x55b2087961eb 0x55b208771128 0x55b208770>
# systemctl status carbonio-files-sidecar.service
● carbonio-files-sidecar.service - Carbonio Files sidecar proxy
Loaded: loaded (/lib/systemd/system/carbonio-files-sidecar.service; enabled; vendor preset: enabled)
Active: active (running) since Thu 2023-06-22 23:33:38 -03; 12min ago
Docs: https://docs.zextras.com/zextras-suite-documentation/latest/
Main PID: 234404 (envoy)
Tasks: 5 (limit: 77023)
Memory: 8.8M
CPU: 2.890s
CGroup: /system.slice/carbonio-files-sidecar.service
└─234404 /usr/bin/envoy --config-path /tmp/envoy-176b290c7d18b72c-bootstrap.json --disable-hot-restart
jun 22 23:33:38 carbteste1 systemd[1]: Started Carbonio Files sidecar proxy.
jun 22 23:33:38 carbteste1 consul[234404]: Error connecting to Consul agent: Unexpected response code: 403 (Permission denied)
jun 22 23:33:39 carbteste1 consul[234404]: external/com_github_google_tcmalloc/tcmalloc/internal/percpu_tcmalloc.h:729] !hdr.IsLocked() @ 0x55e48f0ce1eb 0x55e48f0a9128 0x55e48f0a8
Any tips?
FOUND IT!!!!!!
Permission on /opt/zextras/carbonio-storages
chown carbonio-storages: /opt/zextras/carbonio-storages
Well, that's the same one you have, so that's not the problem. Goodbye Carbonio, I'm tired. More than 1 year struggling with it, and giving it a vote of confidence, but not anymore, it's exhausting. I had never seen a project like this, with so many problems in its development, implementation, and every time they release an update they break something else, and add another level of problems. I think the idea of integral consul in discover-service was the worst thing that could have happened, this service constantly brings these problems, with all the other services sidecars. I can't keep wasting time, time is valuable to wear yourself out like this. Thank you very much to everyone who continues to support and bet on this solution, but it is not productive in this way.
@anahuac Hi, I had the same problem and need to change also blobs folder
chown carbonio-storages: /opt/zextras/carbonio-storages/blobs/
i have problem when upload outside of my local Ip . where i can configure and log for files services?