Dear all
I have the same problem — if I follow your solution destroying the actual container and install the one from https://github.com/Alfresco/acs-community-deployment/issues/99 the Alfresco is totally different as is working on port 80 not 8080 like the actual one and I’m not able to log in with admin/admin
I kept circling arround for one week — I have two VM’s —
1. The first one installed with the instructions from https://www.alfresco.com/thank-you/thank-you-downloading-alfresco-community-edition and the docker-compose file from https://www.alfresco.com/system/files_force/docker-compose-6.2-ga.zip?download=1 — this VM is running on 8080 and I have the error from above
2. The second one installed from here : https://github.com/Alfresco/alfresco-docker-installer which runs on port 80 but I’m unable to login with admin/admin at all
Please advice — I need to test a valid Alfresco in order to obtain the budgeting for the payd one — but still I’m unable to provide a functional copy
all installed on Debian 9.4 !
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and
privacy statement. We’ll occasionally send you account related emails.
Already on GitHub?
Sign in
to your account
Open
narkuss opened this issue
Oct 19, 2019
· 41 comments
Open
Can’t list users in admin tools
#367
narkuss opened this issue
Oct 19, 2019
· 41 comments
Comments
Hi all,
when I go to Administrative tools -> Users, Alfresco tries to retrieve users using enterprise endpoint:
Versions:
Alfresco Share v6.2.0-RC4
Alfresco Community v6.2.0-ea
I can confirm the issue with Alfresco Share v6.2.0. I also verified, that the issue is not present in Share v6.1.0.
This issue was introduced in Share by the fix required for MNT-20723, PR#115 — Share.
As a workaround that fixes this issue, show-authorization-status
property needs to be set to false.
This can be achieved by editing tomcat\webapps\share\WEB-INF\classes\alfresco\share-config.xml
and set this property to false, it can be found at line 132.
From
<show-authorization-status>true</show-authorization-status>
To
<show-authorization-status>false</show-authorization-status>
Edit:
A restart is required for the changes to take place.
As a temporary workaround until the next release of share, you can modify the share Dockerfile in your SDK, or create a custom image from share 6.2.0 and add this lines:
# Patch for https://github.com/Alfresco/acs-community-packaging/issues/367
RUN sed -i 's@<show-authorization-status>true</show-authorization-status>@<show-authorization-status>false</show-authorization-status>@' \
$TOMCAT_DIR/webapps/share/WEB-INF/classes/alfresco/share-config.xml
As already expressed on the Alfresco IRC channel today, there should never have been a config option for this. Other console tools show how the license / edition of Alfresco should be checked to toggle Enterprise-specific functionality without requiring a config option.
This issue was introduced in Share by the fix required for MNT-20723, PR#115 — Share.
As a workaround that fixes this issue,
show-authorization-status
property needs to be set to false.This can be achieved by editing
tomcat\webapps\share\WEB-INF\classes\alfresco\share-config.xml
and set this property to false, it can be found at line 132.
From
<show-authorization-status>true</show-authorization-status>
To
<show-authorization-status>false</show-authorization-status>
Edit:
A restart is required for the changes to take place.
It don’t go for me. I coutinu without see the users.
Can you help me, please?
As a temporary workaround until the next release of share, you can modify the share Dockerfile in your SDK, or create a custom image from share 6.2.0 and add this lines:
# Patch for https://github.com/Alfresco/acs-community-packaging/issues/367 RUN sed -i 's@<show-authorization-status>true</show-authorization-status>@<show-authorization-status>false</show-authorization-status>@' \ $TOMCAT_DIR/webapps/share/WEB-INF/classes/alfresco/share-config.xml
This worked for me
What do we do with this RUN line? Does it go in the docker-compose.yml? Where?
What do we do with this RUN line? Does it go in the docker-compose.yml? Where?
It goes in DockerFile. But it doesn’t work as share-config-custom.xml at /usr/local/tomcat/shared/classes/alfresco/web-extension/share-config-custom.xml always replaces the config. You can update the value ‘false’ in share-config-custom.xml instead.
RUN sed -i 's@<show-authorization-status>true</show-authorization-status>@<show-authorization-status>false</show-authorization-status>@' \ $TOMCAT_DIR/shared/classes/alfresco/web-extension/share-config-custom.xml `
what I ended up doing was pull down 6.1.0 instead of 6.2.0 (or 6.2.2) in the docker-compose.yml. That resolved the issue. I had already kicked off the docker-compose up when I said I would try «command», but I hadn’t actually tried it. I guess I wasn’t super confident that would work, lol. glad it did!
I don’t know what other issues I might face, but I will keep the command option in mind in case we run into something else. Higher priority items at the moment than the command option. Thanks again for the help.
Buenas tardes.
Tengo el mismo problema para poder ver la lista de los usuarios de Alfresco 6.2, vi la solución para el problema pero tengo una duda como acceso al siguiente directorio ‘tomcat\webapps\share\WEB-INF\classes\alfresco\share-config.xml’.
Estoy trabajando Alfresco con Docker y Solr en debian 10 pero por mas que busco el directorio no lo encuentro. Esto son algunos de los errores que me manda el Solr.
4/2/2021 15:00:30 | WARN false | Config | XML parse warning in «solrres:/solrconfig.xml», line 1919, column 88: Include operation failed, reverting to fallback. Resource error reading file as XML (href=’solrconfig_insight.xml’). Reason: Can’t find resource ‘solrconfig_insight.xml’ in classpath or ‘/opt/alfresco-search-services/solrhome/alfresco’ | |
---|---|---|---|---|
4/2/2021 15:00:30 | WARN false | Config | XML parse warning in «solrres:/solrconfig.xml», line 1919, column 88: Include operation failed, reverting to fallback. Resource error reading file as XML (href=’solrconfig_insight.xml’). Reason: Can’t find resource ‘solrconfig_insight.xml’ in classpath or ‘/opt/alfresco-search-services/solrhome/archive’ |
4/2/2021 15:00:31 | WARN false | | SolrResourceLoader | Solr loaded a deprecated plugin/analysis class
[org.apache.solr.analysis.WordDelimiterFilterFactory]. Please consult documentation how to replace it accordingly.
Buenas tardes.
Tengo el mismo problema para poder ver la lista de los usuarios de Alfresco 6.2, vi la solución para el problema pero tengo una duda como acceso al siguiente directorio ‘tomcat\webapps\share\WEB-INF\classes\alfresco\share-config.xml’.Estoy trabajando Alfresco con Docker y Solr en debian 10 pero por mas que busco el directorio no lo encuentro. Esto son algunos de los errores que me manda el Solr.
4/2/2021 15:00:30 WARN false Config XML parse warning in «solrres:/solrconfig.xml», line 1919, column 88: Include operation failed, reverting to fallback. Resource error reading file as XML (href=’solrconfig_insight.xml’). Reason: Can’t find resource ‘solrconfig_insight.xml’ in classpath or ‘/opt/alfresco-search-services/solrhome/alfresco’
4/2/2021 15:00:30 WARN false Config XML parse warning in «solrres:/solrconfig.xml», line 1919, column 88: Include operation failed, reverting to fallback. Resource error reading file as XML (href=’solrconfig_insight.xml’). Reason: Can’t find resource ‘solrconfig_insight.xml’ in classpath or ‘/opt/alfresco-search-services/solrhome/archive’
4/2/2021 15:00:31 | WARN false | | SolrResourceLoader | Solr loaded a deprecated plugin/analysis class
[org.apache.solr.analysis.WordDelimiterFilterFactory]. Please consult documentation how to replace it accordingly.
Revisa la documentación de dockers…
yo hice un «docker ps» para ver el id del docker y luego un «docker exec it» con el id
ya ahi modificas el archivo y reinicias el docker
suerte
@chatoros, buenas tardes.
Aplique el comando docker ps y obtuve el id del contenedor pero al momento de aplicar el siguiente comando sudo docker exec it asderee233 me dice error en el comando it y si lo aplico de la siguiente manera sudo docker exec -it asderee233 me dice que requiere de dos argumentos.
Donde:
asderee233->id de ejemplo
Parece que te falta el bash, yo lo uso asi: docker exec -it 180b7d246694 /bin/bash
Changed files
webapps/share/components/console/users-min.js
webapps/share/components/console/users.js
Ajustment this people-enterprise to people.
I have the same error, with the last version of Alfresco installed using Docker Desktop. How I can resolve it?
alfresco 7.0 has the same problem.
Alfresco 7.0 still has the same problem also the solution to changed show-authorization-status
property to false is not work because it’s already set to False at the first place.
It`s unfortunate to hear that this problem is still ongoing for the past 2 years. Is there any other work-around that works in Alfresco 7?
The amount of redundant «I have the same error», different «solutions» (some of them dirty hacks), false claims of «does not work» etc. on this issue is honestly astounding. Too bad Alfresco is not doing anything against it, like fixing the underlying issue.
For the record, the following configuration file as a share-config-custom-dev.xml in e.g. tomcat/shared/classes/alfresco/web-extension/ has worked for me in all affected Alfresco versions:
<?xml version='1.0' encoding='UTF-8'?> <alfresco-config> <config evaluator="string-compare" condition="Users" replace="true"> <users> <username-min-length>2</username-min-length> <password-min-length>3</password-min-length> <!-- fix/workaround for https://github.com/Alfresco/acs-community-packaging/issues/367 --> <show-authorization-status>false</show-authorization-status> </users> <enable-external-users-panel>false</enable-external-users-panel> </config> </alfresco-config>
This can be added either via a custom image build or by simply mounting the file into the container. The share-config-custom-dev.xml file is always loaded after any share-config-custom.xml, regardless if they were provided by extension modules or via the server configuration path.
As I have written in March and proven with a direct link to the source code, the default configuration of show-authorization-status
property has not changed and is still true
, contrary to what @hottodoguru claims. The same setting is repeated in the sample share-config-custom.xml which one may find in the distribution ZIP, as well as the same file for the Docker distribution.
Changed files
webapps/share/components/console/users-min.js webapps/share/components/console/users.js
Ajustment this people-enterprise to people.
Tanks, solved on Alfresco Community 7.0
更改的文件
webapps/share/components/console/users-min.js webapps/share/components/console/users.js
调整这个以人为本的企业——以人为本。
Tanks, solved on Alfresco Community 7.2
在最新的 Alfresco Community 7.2 上用这个方法也成功解决了问题,不需要修改配置webapps/share/WEB-INF/classes/alfresco/ share-config.xml里的
There is no folder «web-extension» in «tomcat/shared/classes/alfresco» on Alfresco Community 7.1 (docker installation), and try to create the «web-extension» manually then add «share-config-custom-dev.xml» in it. But still not working. Can someone who has experienced on this bug can tell me how to fix it? Thanks!
I encounter the same issue with Alfresco Community 7.3.
Users don’t show up, even after verifying that show-authorization-status
value was set to false in tomcat/webapps/share/WEB-INF/classes/alfresco/share-config.xml (which I modified using a Dockerfile).
Thank you for your help.
Found out what was the problem. There was actually already a share-config-custom.xml in $TOMCAT_DIR/shared/classes/alfresco/web-extension/ in which show-authorization-status
was set to true.
Modifying this property to false in the same as share-config.xml through Dockerfile and then rebuilding the container did the trick.
Cannot believe that they did not fix this thing or add them in the document.
I think I found the file for the Ubuntu 20 installation. It is:
/var/opt/alfresco/tomcat/webapps/share/WEB-INF/classes/alfresco/share-config.xml
@jpmahon I think the file you want to edit is actually /etc/opt/alfresco/content-services/classpath/alfresco/web-extension/share-config-custom.xml
I opened the PR below so ansible deploys with the fix: Alfresco/alfresco-ansible-deployment#501
Found out what was the problem. There was actually already a share-config-custom.xml in $TOMCAT_DIR/shared/classes/alfresco/web-extension/ in which
show-authorization-status
was set to true. Modifying this property to false in the same as share-config.xml through Dockerfile and then rebuilding the container did the trick.
Thank you @vpaillusson , it has worked for me
Hello. I am using Alfresco community version 7.40 and I am also facing this know issue/bug.
`
Web Script Status 404 — Not Found
`
Web Script Status 404 — Not Found
The Web Script /alfresco/s/api/people-enterprise has responded with a status of 404 — Not Found.
404 Description: Requested resource is not available.
Message: 00180004 Script url /api/people-enterprise does not map to a Web Script.
Server: Community v7.4.0 (r490805b1-blocal) schema 18.000
Time: 18 de jan. de 2023 15:09:06
Hello folks, how are you? I hope you are having some great times.
I did an install/deploy using docker reproducing steps from https://docs.alfresco.com/content-services/community/install/containers/docker-compose/
root@iKIGAI:# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
06a576391f76 alfresco/alfresco-acs-nginx:3.4.2 «/entrypoint.sh» 13 hours ago Up 13 hours 80/tcp, 0.0.0.0:8080->8080/tcp docker-compose_proxy_1
41338cbbd375 postgres:14.4 «docker-entrypoint.s…» 13 hours ago Up 13 hours 0.0.0.0:5432->5432/tcp docker-compose_postgres_1
4ffb6d00bff4 alfresco/alfresco-activemq:5.17.1-jre11-rockylinux8 «/bin/sh -c ‘./init.…» 13 hours ago Up 13 hours 0.0.0.0:5672->5672/tcp, 0.0.0.0:8161->8161/tcp, 0.0.0.0:61613->61613/tcp, 0.0.0.0:61616->61616/tcp docker-compose_activemq_1
a78f227e982a alfresco/alfresco-share:7.4.0-M1 «/usr/local/tomcat/s…» 13 hours ago Up 13 hours 8000/tcp, 8080/tcp docker-compose_share_1
f35ae6e7e5ee alfresco/alfresco-content-repository-community:7.4.0-M1 «catalina.sh run -se…» 13 hours ago Up 8 hours 8000/tcp, 8080/tcp, 10001/tcp docker-compose_alfresco_1
e708f6bc2043 alfresco/alfresco-transform-core-aio:3.0.0 «/bin/sh -c ‘java $J…» 13 hours ago Up 13 hours 0.0.0.0:8090->8090/tcp docker-compose_transform-core-aio_1
ee82def6b565 alfresco/alfresco-search-services:2.0.5 «/bin/sh -c ‘$DIST_D…» 13 hours ago Up 13 hours 10001/tcp, 0.0.0.0:8083->8983/tcp docker-compose_solr6_1
4fffd3ed7486 alfresco/alfresco-content-app:3.1.0 «/docker-entrypoint.…» 13 hours ago Up 13 hours 8080/tcp docker-compose_content-app_1
root@iKIGAI:#
Alfresco is working and it’s a very great system but I cant list users yet. I will keep researching.
@hi-ko Thanks for your reply bro. I tried that but I still cant see users but it’s ok for my situation. We are using Alfresco as a document storage to CMDBUILD 3.4 setup.
I am also facing a problem to when uploading a document from CMDBUILD using /alfresco/api/-default-/public/cmis/versions/1.1/atom and I got: org.apache.chemistry.opencmis.commons.exceptions.CmisObjectNotFoundException: Type ‘P:cmdbuild:classifiable’ is unknown!
Again, I repeat: IT IS AN AMAZING TOOL. Congrats to all who developed and keep it!
Thanks.
Hello folks. How are you?
I am able to upload files using CMDBUILD interface and files are correctly stored at Alfresco. Thanks
Changed files
webapps/share/components/console/users-min.js webapps/share/components/console/users.js
Ajustment this people-enterprise to people.
Tanks, solved on Alfresco Community 7.0
Fabulous! this solved the exactly same problem even on today’s newest version: JAN/2023.
webapps/share/components/console/users-min.js
webapps/share/components/console/users.js
the solution worked for me, i would want to give a more detailed explanation:
the first thing that you hace to do is to list you running container: «docker ps»
look what is the name of your share app
to find the specified documents mentioned below this statement:
webapps/share/components/console/users-min.js
webapps/share/components/console/users.js
you can execute an interactive shell in your share container with the following command:
docker exec -it <share_container_name> /bin/bash
But what you need to do is to copy the files that are in those paths into your host machine
so that you can replace «people-enterprise» to «people»
to do so you can use the following commands:
docker cp <container_name>:/usr/local/tomcat/webapps/share/components/console/users.js .
and
docker cp <container_name>:/usr/local/tomcat/webapps/share/components/console/users-min.js .
this will copy the files from the container into your current host path.
open the files in your text editor find «people-enterprise» and change it to «people»
save changes and copy the files back to the container with these two commands:
docker cp users.js <container_name>:/usr/local/tomcat/webapps/share/components/console/
and
docker cp users-min.js <container_name>:/usr/local/tomcat/webapps/share/components/console/
finally you just have to restart the share container with this command:
docker restart <share_container_name>
I have created one user. When I log in to the admin console as «admin» to see my users, the table only shows an error and no users. I can see in the dev console that I’m getting a 404. See screenshots.
When I log in as the user I am able to view and edit my profile.
I am running Alfresco7.2 Community edition installed with Ansible. Cent OS 7, Python 3.8.
Комментарии
fufler
02/03/2013 — 20:51
Что говорят логи по этому поводу? Опыт показывает, что просто так ничего само по себе не ломается
- ссылка
А какие логи смотреть — если можно.(ошибка возникает при открытии …8080/share/page/my-tasks)
- ссылка
fufler
04/03/2013 — 10:49
Для начала — alfresco.log или catalina.out.
- ссылка
ERROR [extensions.webscripts.AbstractRuntime] [http-apr-8080-exec-5] Exception from executeScript — redirecting to status template error: 02030002 Wrapped Exception (with status template): Namespace prefix itdrwf is not mapped to a namespace URI
org.springframework.extensions.webscripts.WebScriptException: 02030002 Wrapped Exception (with status template): Namespace prefix itdrwf is not mapped to a namespace URI
Это в Catalina.out
И еще в Catalina*****.log
PM org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
SEVERE: The web application [/solr] created a ThreadLocal with key of type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@68c38b20]) and a value of type [org.alfresco.util.CachingDateFormat] (value [yyyy-MM-dd]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
- ссылка
fufler
04/03/2013 — 15:55
Видимо, вы удалили компонент Alvex под названием related-workflows.
- ссылка
А каким образом его добавить? И посомтреть кде он вообще есть?
- ссылка
fufler
04/03/2013 — 19:46
Скачайте с оф. сайта дистрибутив и найдите там файлы alvex-related-workflows-*.jar.
- ссылка
А еще неплохо бы знать, какая версия Alvex стоит, как ее ставили, и какие файлы, начинающиеся со слова «alvex» есть в каталоге tomcat/webapps/alfresco/WEB-INF/lib/.
- ссылка
Глюк исправился, но возник новых 2
- при добавлении документа в реестр документов, не понятно что надо вставлять в поле «корреспондент» — выпадающего списка нет, а если просто текст пишешь, то говорит поле не должно быть пустым
- При создании бизнес-процесса-> Регистрация документов — список реестров есть, но при выборе любого реестра — документы не появляются
- ссылка
Повторю вопрос:
— какая версия и редакция Alvex?
Если какая-нибудь ночная сборка, то это нормально, там многое может не работать.
- ссылка
Alexandr
20/05/2013 — 18:02
Проблема похожая — ошибка такая же.
После обновления на 4.2.с (с 4.0.d, если не ошибаюсь) — у некоторых пользователей появилась Internal server error после входа в /share. На при входе проблема с загрузкой недавно редактируемых документов
Мои документы
Ошибка при загрузке элементов
и список сайтов зависает — пишет Загрузка…
Возможно был установлен какой-то сторонний дашлет в старой версии? Я не вспомню. Как установить — какой именно? Структура папок старого Alfresco сохранена — могу искать, если знать что.
И стоит ли устанавливать тот дашлет, или же есть другой способ исправить ошибку? Оно бы ладно, ошибка эта, но на пользователь и загрузить новую версию документа не может — заблокированную им же для редактирования. Ругается на отсутствие прав.
- ссылка
Alexandr
20/05/2013 — 18:18
В качестве посика места проблемы:
1) дали юзеру права админа
2) зашли под ним — ошибки нет
3) удалили под ним его сайт — ошибки после входа нет, но мы еще админ
4) удалили пользователя из админов — в простые смертные
5) после входа — ошибки нет
6) создали под ним опять сайт — вышли зашли — ОШИБКА вернулась
Что делать? Почему пользователи не имеют прав на свои сайты?
- ссылка
Alexandr
20/05/2013 — 18:32
Удалось исправить по следующему примеру (инстуркция ниже) — задать права на Сайты — я начал с пункта 2, так как задача просто устранить проблему с правами. На это пространство у нас не было задано никого — добавил «ВСЕ» с правами Читатель.
http://forums.alfresco.com/comment/75336#comment-75336
Sorry for the late reply. Did not see this thread until I was browsing around.
If I remember correctly, this was how I did it in Alfresco Share
1. Create a group called — SiteCreators — and then populate it with those allowed to create sites.
2. Click Repository.
3. Highlight Sites with the mouse and then on the right — click Manage Permissions
4. In the Locally Set Permissions section — ensure EVERYONE is set to Consumer
5. Click Add User Group — select SiteCreators — and set the group to Contributor
6. Click Save
P.S. Проблему с загрузкой новой версии еще не сиправил — Сбой при загрузке (в Гугле пишут, что проблема с Flash в браузере, но в настройках аплоада я уже отключил флеш совсем — а окно загрузки все равно флешевое).
- ссылка
Я использую версию alfresco 5.0.d для заполнения свойств пользовательской модели в YUI datatable, и в ответ я получаю JSON, как показано ниже.
{
"agency" : [
{
"agencyname": "1212",
"agencycode": "1212",
"createDate": "23/03/2016"
}]
}
Файл custom-users-min.js: создание запроса и заполнение списка результатов.
config : {
responseType : YAHOO.util.DataSource.TYPE_JSON,
responseSchema : {
resultList:"agency"
}
}
}
Файл customagency.get.json.ftl:
<#import "customagency.lib.ftl" as customagencyLib/>
<@customagencyLib.agencyJSON agency=agency/>
Я получаю сообщение об ошибке при загрузке элементов внутри таблицы данных YUI на открытом воздухе. Пожалуйста, помогите мне решить эту проблему.
2016-03-27 12:31
1
ответ
Решение
После применения parseJson перед заполнением данных в YUI datatable.Resolved
2016-07-28 06:27