Alfresco Administrator Notes


  • ( [])
  • ([])

Alfresco User Notes

Internal name is (ssh port 37212)


Alfresco is a free/libre enterprise content management system for Microsoft Windows and Unix-like operating systems. The Alfresco Community Edition is free software, LGPL licensed open source and open standards. See

Frequently asked questions (faq)

  • How to stop the RAID alarm?
root@biostats:~# MegaCli64 -AdpSetProp AlarmSilence -aALL
Adapter 0: Set alarm to Silenced success.

Exit Code: 0x00

  • Where is the main configuration file? /opt/alfresco-4.2.f/tomcat/shared/classes/ Most configuration settings are made in this file. There are a few exceptions but I don't have an exhaustive list.
  • Where can I find Alfresco documentation?
  • folders vs spaces vs sites?
  • How do I stop/start/restart/restart/get status of Alfresco?
    • sudo /opt/alfresco-4.2.f/ stop
    • sudo /opt/alfresco-4.2.f/ start
    • sudo /opt/alfresco-4.2.f/ restart
    • sudo /opt/alfresco-4.2.f/ status
  • Disable the Guest user?
    • added line alfresco.authentication.allowGuestLogin=false to file /opt/alfresco-4.2.f/tomcat/shared/classes/

To Do / Wish List / Problems


Interesting Links


  • 6/28/2016 : I changed the session time out from 30 to 60. This should take effect tonight when the service is stopped and restarted for backup. Change made in: /opt/alfresco-4.2.f/tomcat/conf/web.xml

Backup and Restore

The alfresco servers local hostname is

The storage space for the alfresco backup is // This is VUMC NAS space.

This is mounted on the alfresco server at /home/biostat/alfrescobackup/backup. See /etc/fstab.

There us a cron job running as root that executes the backup script /home/biostat/alfrescobackup/

Restore Notes

We tested the backup by making a restore to a system that was not already running Alfresco.
  • Make a .tar.gz file of the backup (//
  • copy the .tar.gz file to the new server
  • expand the .tar.gz file into the /opt directory
cd /opt
sudo tar -xzf 20140917-161329.tar.gz
  • create a postgres user with the correct password
 sudo useradd postgres
 sudo passwd postgres
  • in the /opt/alfresco-4.2.f directory tree set the ownership to postgres.root for the postgres directories
sudo chown -R postgres.root /opt/alfresco-4.2.f/postgresql/
sudo chown -R postgres.root /opt/alfresco-4.2.f/alf_data/postgresql/
  • start alfresco
sudo /opt/alfresco-4.2.f/ start

Performance issues

  • in /opt/alfresco-4.2.f/tomcat/scripts/ set export JAVA_OPTS="...-Xmx4096m... (in 2 places)
  • To see global configuration file: cat /opt/alfresco-4.2.f/tomcat/shared/classes/
  • We are seeing periods where 200% of CPU is being consumed.
  • I made a change to /opt/alfresco-4.2.f/libreoffice/program/sofficerc. Changed "Logo=1" to "Logo=0". These is some indication that despite the "-nologo" option on the command that starts libreoffice headless, it is still trying to put up the logo. This change supposedly fixes that.
  • I also saw a note that says that libreoffice misbehaves if started in the wrong order when the system boots. It is recommended to stop and restart libreoffice 10 minutes or more after the system is rebooted or alfresco is restarted sudo /opt/alfresco-4.2.f/libreoffice/scripts/ restart). I restarted it by hand and it seems to help. I haven't automated this yet. It would be nice to know what the correct order is, but I don't.

Authentication issues

We need to check if the person we are inviting to something already has an account. I so, make sure we are not inviting them with the “…Add External Users” link.

A winkle to look out for is that we have a “hybrid” authentication scheme. Authentication is attempted in the following order:
  1. The username and password are checked against the Alfresco server’s database. If a match is found then the user is authenticated. Otherwise…
  2. The username and password are checked against the Vanderbilt Active directory.

Note that one can have a username in the local database AND in the active directory. This is how we handle non-Vanderbilt users. It is not a technical problem but might be confusing.

Right now, when inviting a Vanderbilt person, I think the thing to do is to make sure they have logged on Alfresco BEFORE making the invitation. You would have to send them a “pre-invitation” email. That way they can be invited as an existing user and no confusion arises. Plus they get to use their vunetid and epassword and don’t have to remember another set of credentials.

On the other hand, we should probably leave well enough alone for the people who are already registered and using Alfresco.

What I need to do is make the active directory searchable from Alfresco so that Vanderbilt people show up when one does a “Search for People” on the invitation screen, regardless of whether or not they have ever logged on before. But I haven’t figured out how to do that yet. I only recently came to understand the authentication flow.

Email links

Accessing Alfresco Directory Tree With Your File System or File Manager (Linux)


  • sudo apt-get install davfs2
  • sudo chmod u+s /sbin/mount.davfs
  • Put the following in /etc/fstab     /alfresco davfs rw,user,noauto 0 0
  • sudo mkdir /alfresco
  • sudo chown uid.uid /alfresco [insert your userid]
  • mkdir ~/.davfs2/
  • Edit ~/.davfs2/secrets to add the line alfrescouserid yourpassword
  • chmod 0600 ~/.davfs2/secrets
  • mount /alfresco
  • Go to /alfresco
  • If you are storing large data files on alfresco and want to be able to load them very fast after the first time they are loaded in a session, use a large davfs2 cache by editing ~/.davfs2/davfs2.conf and including a line such as cache_size 100. This will allow a 100MB cache.
  • The android Total Commander app and its webdav plugin work well for accessing Alfresco folders via webdav. Specified server name Homes/myalfrescoID

You may see the error "/sbin/mount.davfs: program is not setuid root" when you try to mount /alfresco. This is because the mount program requires root privileges. Execute the command sudo dpkg-reconfigure davfs2 to change that behavior.

Access Alfresco Directory Tree from Windows 7


Have your file manager (nemo is one that works very well for this) connect to server
You can past in whole directories to copy from your local file system into an alfresco site. Also try using this URL:

A sample fpt session on a Windows computer: click here

Small device apps

There is an exceptional android app for Alfresco - not just for the cloud version but for customized servers like ours. Specify server name (hostname) and for now uncheck HTTPS. Port is 8080. Leave service url as \alfresco. There is also an Alfresco repository browser app in android which I suppose is read-only. See also: Alfresco Wiki.

Drag and drop

A linux file manager can drag a .docx file into a new alfresco folder. very quickly. Such a file can be edited with google docs - works like a charm

Setup Conventions

  • There are two areas to chose between when creating content: sites and user-specific file repositories. Our current thinking of what distinguishes the two is:
    • A site represents a long-term project with well-defined project team members. You can also have a site for a general methodologic area such as "R Programming" although the wiki is perhaps better for that. Sites can have their own discussion board and top-level wiki page to describe the team and activities.
    • A user's file repository typically crosses project boundaries or contains general-purpose files for administrative and other activities (e.g., "To-Do" lists) and personal tips and hints (e.g., programming tips not documented well enough to share with other users)
  • Site naming: site names, when pooled over all users, must be unique and the names should be descriptive. It is not wise to use a generic site name that might overlap with the name another user may wish to create in the future.
  • We need to determine the appropriate level for a site. Suppose that a statistician is working in a large collaborative area related to a Division within a School of Medicine Department. Should there be a site for that Division or should each project or lead investigator constitute a site?
  • Current thinking is that a site be defined as a "big" project. For example, for collaborations a site would pertain to a defined group of investigators working on related research/grants/papers. A department or division containing many such investigator groups would have multiple site. There may be some benefit to having a department/division prefix to the site names, e.g., Cardiology:Atrial Fibrillation. Or we should develop a fixed set of prefixes so that we can easily find all sites related to a division, department, or center, e.g. sites related to Cardiovascular Medicine could be named "CV: Atrial Fibrillation", "CV: Left Ventricular Assist Devices" and sites related to VICC could have prefixes of VICC, Ca, or CC.

How to setup Alfresco with Nginx as the front-end web server

Example steps to update AMPs

These are the steps described in the video mentioned above about installing AMP files: These steps are for updating the Google Integration amps to a newer version.
# Stop the server
sudo ./ stop
# Set path to alfresco installation main directory.
cd /opt/alfresco-4.2.f/
# Look and see what is in the amp directories
ls -la amps
ls -la amps_share/
echo download the amp files
# Run the mmt tool to list what amps are installed in the
# alfresco.war file.
sudo /opt/alfresco-4.2.f/java/bin/java -jar ./bin/alfresco-mmt.jar list tomcat/webapps/alfresco.war
sudo /opt/alfresco-4.2.f/java/bin/java -jar ./bin/alfresco-mmt.jar list tomcat/webapps/share.war
# Copy the repo amp into the amps folder
cp ~/Download/alfresco-googledocs-repo-2.0.7-18com.amp ./amps/
# Copy the share amp into the amps_share folder.
sudo cp ~/Download/alfresco-googledocs-share-2.0.7-18com.amp ./amps_share/
# Delete older version of new amps.
sudo rm ./amps/alfresco-googledocs-repo-0.0.0-0com.amp
sudo rm ./amps_share/alfresco-googledocs-share-0.0.0-0com.amp
# Run the "apply amps" script.
sudo bin/
# war file have been amped so start the server.
sudo ./ start

Rodgers, Bradley A 10:02 AM
Dale, I am looking into your issue with your biostat server not being able to send emails. Do you know the IP address of the server?
Plummer, Dale 10:02 AM
just a sec
Rodgers, Bradley A 10:05 AM
has email ever worked on this server?
Plummer, Dale 10:06 AM
not using SRFS.  The application can send authenticated email via smtpauth.
Rodgers, Bradley A 10:06 AM
ok. Well I see the problem.
for some reason it dropped off the SRFS Relay
I have added it back
so you should be able to use it to send emails just like the other servers in your environment.
Plummer, Dale 10:08 AM
That's great.  I try it later today when I get a chance.  Thanks for your help. 
Topic revision: r14 - 21 Jul 2020, DalePlummer

This site is powered by FoswikiCopyright © 2013-2022 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Vanderbilt Biostatistics Wiki? Send feedback