Daily Log for #alfresco IRC Channel

Alfresco discussion and collaboration. Stick around a few hours after asking a question.

Official support for Enterprise subscribers: support.alfresco.com.

Joining the Channel:

Join in the conversation by getting an IRC client and connecting to #alfresco at Freenode. Our you can use the IRC web chat.

More information about the channel is in the wiki.

Getting Help

More help is available in this list of resources.

Daily Log for #alfresco

2019-08-22 08:03:14 GMT <alfresco-discord> <bhagyas> Anyone here a fan of checked exceptions?

2019-08-22 08:38:07 GMT <AFaust> Depends on the context... But I'd have to say in 95-99.9% of cases, nope.

2019-08-22 09:04:29 GMT <alfresco-discord> <bhagyas> Got it

2019-08-22 09:04:58 GMT <alfresco-discord> <bhagyas> Was interested to know why Alfresco doesn't provide a class with msg translations for checked exceptions

2019-08-22 11:44:13 GMT <AFaust> Argh... I have really tried to avoid this Powershell crap, but apparently M$ could not be bothered to support a task as simple as setting a reverse DNS entry for a public IP in their web portal...

2019-08-22 14:03:05 GMT <alfresco-discord> <Thijs> @angel.borroy I was trying out https://github.com/Alfresco/alfresco-docker-installer

2019-08-22 14:03:06 GMT <alfbot> Title:GitHub - Alfresco/alfresco-docker-installer: Generator to build Docker Compose templates to deploy Alfresco Community (at github.com)

2019-08-22 14:03:31 GMT <alfresco-discord> <Thijs> but postgres does not start properly:

2019-08-22 14:04:22 GMT <alfresco-discord> <Thijs> thijs@havana ~/Downloads/test-alfresco-docker-installer $ docker logs -f --tail 100 testalfrescodockerinstaller_postgres_1 2019-08-22 13:52:12.362 UTC [1] LOG: listening on IPv4 address "", port 5432 2019-08-22 13:52:12.363 UTC [1] LOG: listening on IPv6 address "::", port 5432 2019-08-22 13:52:12.373 UTC [1] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432" 2019-08-22

2019-08-22 14:04:22 GMT <alfresco-discord> 13:52:12.393 UTC [1] FATAL: could not open log file "/var/log/postgresql/postgresql-2019-08-22_135212.log": Permission denied 2019-08-22 13:52:12.396 UTC [1] LOG: database system is shut down

2019-08-22 14:04:56 GMT <alfresco-discord> <Thijs> I'll put it on github

2019-08-22 14:05:11 GMT <alfresco-discord> <Thijs> discord does not accept my copy pastes

2019-08-22 14:05:17 GMT <angelborroy> What is your OS?

2019-08-22 14:05:22 GMT <angelborroy> What options did you choose?

2019-08-22 14:05:42 GMT <angelborroy> Do you have a previous Docker Image for “postgres”?

2019-08-22 14:06:00 GMT <angelborroy> Can you start with “docker compose up —build --force-recreate”?

2019-08-22 14:08:09 GMT <alfresco-discord> <Thijs> ubuntu 18.04

2019-08-22 14:08:22 GMT <alfresco-discord> <Thijs> I know exactly why it does not work

2019-08-22 14:08:31 GMT <alfresco-discord> <Thijs> https://github.com/Alfresco/alfresco-docker-installer/issues/1

2019-08-22 14:08:33 GMT <angelborroy> Go ahead ;-)

2019-08-22 14:08:33 GMT <alfbot> Title:Postgres does not start because of filesystem permissions · Issue #1 · Alfresco/alfresco-docker-installer · GitHub (at github.com)

2019-08-22 14:08:59 GMT <angelborroy> I don’t understand the problem

2019-08-22 14:09:05 GMT <alfresco-discord> <Thijs> docker-compose creates a volume, but postgres has no access

2019-08-22 14:09:06 GMT <angelborroy> What “filesystem” is created by root?

2019-08-22 14:09:10 GMT <angelborroy> Ah, ok

2019-08-22 14:09:17 GMT <angelborroy> this is the classical problem everywhere

2019-08-22 14:09:24 GMT <alfresco-discord> <Thijs> - ./logs/postgres:/var/log/postgresql

2019-08-22 14:10:08 GMT <angelborroy> Do you think this is an issue for the project?

2019-08-22 14:10:15 GMT <angelborroy> It looks like client configuration...

2019-08-22 14:10:26 GMT <alfresco-discord> <Thijs> my first problem was actually that port the proxy exposes on port 80

2019-08-22 14:10:35 GMT <alfresco-discord> <Thijs> and for me, that's also blocked

2019-08-22 14:10:41 GMT <angelborroy> But we can add some sentences on README or to create a Wiki Page

2019-08-22 14:11:03 GMT <angelborroy> Anyway, I don’t think the project can help with that (from internal I mean)

2019-08-22 14:11:21 GMT <alfresco-discord> <Thijs> Personally, I would not map the logs

2019-08-22 14:11:26 GMT <alfresco-discord> <Thijs> docker logs works fine

2019-08-22 14:11:57 GMT <alfresco-discord> <Thijs> you have a whole installer with choices, so the port mapping could be an option too

2019-08-22 14:11:58 GMT <angelborroy> This project is for newbies

2019-08-22 14:12:17 GMT <angelborroy> But choosing the port mapping is a nice option

2019-08-22 14:12:23 GMT <alfresco-discord> <Thijs> well, I think those are problems standing in the way for a newbie

2019-08-22 14:12:29 GMT <angelborroy> Please, create an issue with that suggestion (or a PR) :D

2019-08-22 14:12:55 GMT <alfresco-discord> <Thijs> I just wanted to check out what you did there, not planning to use it

2019-08-22 14:13:13 GMT <alfresco-discord> <Thijs> I can make an issue with the suggestion of adding a port mapping option

2019-08-22 14:13:28 GMT <angelborroy> Great! Thanks

2019-08-22 14:15:50 GMT <AFaust> Thijs: I must not be using docker logs correctly then, because for me it is not working (sufficiently) fine...

2019-08-22 14:16:40 GMT <angelborroy> Any suggestion is welcomed

2019-08-22 14:16:43 GMT <alfresco-discord> <Thijs> Axel: Can you elaborate?

2019-08-22 14:16:44 GMT <angelborroy> And thanks for testing it

2019-08-22 14:16:58 GMT <angelborroy> In Windows Docker logs are awful

2019-08-22 14:17:04 GMT <alfresco-discord> <Thijs> @angel.borroy no problem

2019-08-22 14:17:22 GMT <AFaust> Would love to be able to regex searches + scroll over a window, but everytime I do "docker logs --since xx yyyy | less", it turns out scrolling back/forth does not properly work

2019-08-22 14:18:22 GMT <alfresco-discord> <Thijs> yes, I've had similar problems with docker logs

2019-08-22 14:18:38 GMT <alfresco-discord> <Thijs> but I mean for testing purposes it might be ok

2019-08-22 14:18:59 GMT <AFaust> Also, docker logs may work fine if you only have one log file being piped into the container log output, but what about having specialised log files for parts of your solution?

2019-08-22 14:19:04 GMT <alfresco-discord> <Thijs> we collect all docker logs and push them to ELK for other purposes

2019-08-22 14:20:28 GMT <AFaust> May be ok for non-trivial Enterprise deployments, but overkill for most deployments I have had with Docker so far

2019-08-22 14:22:32 GMT <alfresco-discord> <Thijs> Axel: I feel like a touched a nerve here

2019-08-22 14:23:14 GMT <alfresco-discord> <Thijs> and there is only one stdout per container, true

2019-08-22 14:23:42 GMT <alfresco-discord> <Thijs> multiple solutions possible, and logging to a mounted dir is an option

2019-08-22 14:24:13 GMT <alfresco-discord> <Thijs> but the permissions need to be fixed to make it work on this postgres setup

2019-08-22 14:26:39 GMT <AFaust> Sure. In my containers / images I have chown/chmod stuff as part of the init script to take care of that.

2019-08-22 14:29:51 GMT <alfresco-discord> <lars> > AFaust: Would love to be able to regex searches + scroll over a window, but everytime I do "docker logs --since xx yyyy | less", it turns out scrolling back/forth does not properly work Oh, that's probably because a part of the output is send to stderr (depending on where the container wrote it). You might be able to fix that by using "docker logs --blabla 2>&1 | less" to get everything to stdout,

2019-08-22 14:29:52 GMT <alfresco-discord> which is sent to less

End of Daily Log

The other logs are at http://esplins.org/hash_alfresco