Resource Menu

Id : 72
Type : BUG
Reporter : Georg Lippold
Assignee :
Florent Jouille
Priority : BLOCKER
Creation Date : 09 Feb 06 03:09
Last Update Date : 31 Dec 06 11:52
Resolution : Duplicate
cannot create files in work/files
After bootstrapping the server, when I try to create my first new project, the following error appears:

Unexpected error - Go Back
Error in newInstanceTemplate : ERROR: could not create server file "/home/libresrc/libresrc/work/files/4f065786c0a80002015c1ae3b324c5a3": Permission denied
Error in newInstanceTemplate : ERROR: could not create server file "/home/libresrc/libresrc/work/files/4f065786c0a80002015c1ae3b324c5a3": Permission denied
Caused by : ERROR: could not create server file "/home/libresrc/libresrc/work/files/4f065786c0a80002015c1ae3b324c5a3": Permission denied

ls -lR of /home/libresrc/libresrc/work/files:

~/libresrc/work/files $ ls -lR
.:
total 548
-rw-r--r--  1 libresrc libresrc  19188 Feb  9 14:35 4f062793c0a8000200b576469eadb98d
-rw-r--r--  1 libresrc libresrc 167867 Feb  9 14:35 4f064562c0a800020117ffc56e025ad0
-rw-r--r--  1 libresrc libresrc  16869 Feb  9 14:35 4f06525bc0a800020197eb846201d26c
-rw-r--r--  1 libresrc libresrc  11704 Feb  9 14:35 4f065786c0a80002015c1ae3b324c5a3
-rw-r--r--  1 libresrc libresrc   1356 Feb  9 14:35 4f0672a9c0a8000201ccf0ad59e319c2
-rw-r--r--  1 libresrc libresrc 324675 Feb  9 14:35 file61056import
-rw-r--r--  1 libresrc libresrc      0 Feb  9 14:35 fileImport61057.bin
-rw-r--r--  1 libresrc libresrc      0 Feb  9 14:35 fileImport61059.bin
-rw-r--r--  1 libresrc libresrc      0 Feb  9 14:35 fileImport61061.bin
-rw-r--r--  1 libresrc libresrc      0 Feb  9 14:35 fileImport61064.bin



Upload a new file :   
5 comment(s)
comment by Georg Lippold - 12 Feb 06 01:15 PM It would be nice to include this hint in the Installation-Documentation under

http://dev.libresource.org/home/community/downloads/installer

Thanks again,

Georg

comment by Guest - 09 Feb 06 03:18 PM You have to set permission to 777 in the Libresource/Work directory

*Caution* If postgres and Libresource do not run with the same user, you have to make a "chmod -R 777 <install dir>/Work".

comment by Sebastien Jourdain - 09 Feb 06 03:17 PM The user that is running postgresql and libresource should have both the right to read and write in the work/files directory… You need to add them in a same group and grant this group to be read/write in "work/files" directory...

In such crash at bootstrap, you will need to clear your database before a new try...

It's a well know problem, and we usually simplify the problem by running JOnAS and Postgres with the same user...

Regards

comment by Georg Lippold - 09 Feb 06 03:11 PM the harddisk is not full
comment by Georg Lippold - 09 Feb 06 03:11 PM
~/libresrc/work $ ls -laR
.:
total 16
drwxr-xr-x  4 libresrc libresrc 4096 Feb  9 13:50 .
drwxr-xr-x  7 libresrc libresrc 4096 Feb  9 13:50 ..
drwxrwxrwx  2 libresrc libresrc 4096 Feb  9 14:35 files
drwxr-xr-x  2 libresrc libresrc 4096 Feb  9 14:36 index

./files: total 556 drwxrwxrwx 2 libresrc libresrc 4096 Feb 9 14:35 . drwxr-xr-x 4 libresrc libresrc 4096 Feb 9 13:50 .. -rw-r--r-- 1 libresrc libresrc 19188 Feb 9 14:35 4f062793c0a8000200b576469eadb98d -rw-r--r-- 1 libresrc libresrc 167867 Feb 9 14:35 4f064562c0a800020117ffc56e025ad0 -rw-r--r-- 1 libresrc libresrc 16869 Feb 9 14:35 4f06525bc0a800020197eb846201d26c -rw-r--r-- 1 libresrc libresrc 11704 Feb 9 14:35 4f065786c0a80002015c1ae3b324c5a3 -rw-r--r-- 1 libresrc libresrc 1356 Feb 9 14:35 4f0672a9c0a8000201ccf0ad59e319c2 -rw-r--r-- 1 libresrc libresrc 324675 Feb 9 14:35 file61056import -rw-r--r-- 1 libresrc libresrc 0 Feb 9 14:35 fileImport61057.bin -rw-r--r-- 1 libresrc libresrc 0 Feb 9 14:35 fileImport61059.bin -rw-r--r-- 1 libresrc libresrc 0 Feb 9 14:35 fileImport61061.bin -rw-r--r-- 1 libresrc libresrc 0 Feb 9 14:35 fileImport61064.bin

./index: total 48 drwxr-xr-x 2 libresrc libresrc 4096 Feb 9 14:36 . drwxr-xr-x 4 libresrc libresrc 4096 Feb 9 13:50 .. -rw-r--r-- 1 libresrc libresrc 4761 Feb 9 14:36 _j.cfs -rw-r--r-- 1 libresrc libresrc 21810 Feb 9 14:36 _x.cfs -rw-r--r-- 1 libresrc libresrc 4 Feb 9 14:36 deletable -rw-r--r-- 1 libresrc libresrc 34 Feb 9 14:36 segments

Post a comment :


Wiki Syntax

Simple text filters

MnemonicRenderingComment
1 Title a style 1 heading (major heading)
1.1 Title a style 1.1 heading (minor heading)
- text a list item (with -), several lines create a single list
* text a list item (with *)
1. text an enumerated list
__bold__boldsimple bold text
~~italics~~italicssimple italic text
--strike--strikestrike through text
(empty line) produces a new paragraph
\\
 creates a line break, please use sparingly!
[/documentation] or [../documentation] or [/documentation|Doc]Like a standard linkinternal link to another document
http://www.libresource.org/http://www.libresource.org/creates a link to an external resource, special characters that come after the URL and are not part of it must be separated with a space.
\XXescape special character X (i.e. {)
---- creates a horizontal rule

Macros List

Macro syntaxe: {macroName:key1=param1|key2=param2|...}

MacroDescriptionParameters
apiGenerates links to Java or Ruby API documentation.1: class name, e.g. java.lang.Object or java.lang.Object@Java131
2: mode, e.g. Java12, Ruby, defaults to Java (optional)
asinGenerates links to DVD/CD dealers or comparison services. Configuration is read from conf/asinservices.txt1: asin number
blinkBlink a text.the text
bookmarksDisplay the user bookmarks.none
boxCreate a box in order to change the basic disposition.1. the box title (optional)
2. the floating behaviour (left or right) (optional)
3. the height of the box (px,%) (optional)
4. the width of the box (px,%) (optional)
childrenDisplay the current children list.1. uri= ...(optional) where you list the resources, the default uri is the current
2. groupby=… (optional) to group resources.The following value are available : type or owner or uri or creation or update or name
3. sort=… (optional) to sort resources. The values available are : type or owner or uri or creation or update or name
4. creation=...(optional) allows you to filter on the creation date. The values available are: Date (dd/MM/yyyy) or '+'/'-'/'!' followed by a Date(dd/MM/yyyy): allows to keep superior/inferior/exclude date
5. update=...(optional) allows you to filter on the modification date. The values available are: Date (dd/MM/yyyy) or '+'/'-'/'!' followed by a Date(dd/MM/yyyy): allows to keep superior/inferior/exclude date
6. type=...(optional) :allows you to filter resources with its type. The values available are : Project, Template, Timeline, Page, Repository, File, Forum, Thread, Message, Group, Synchronizer, BugTracker, Issue, Site, Survey, Form, DropBox
7. owner=...(optional):allows you to show only resources belonging to one user or many users.
8. limit=...(optional): allows you to limit the displayed resources
9. depth=...(optional): allows you to fix the depth of listed ressources
10. view=...(optional): to fix the view of displayed resources. The view available are : flat (default view) or count(to display the number of listed ressources) or tree(display resource following tree viewer)
codeDisplays a chunk of code with syntax highlighting, for example Java, XML and SQL. The none type will do nothing and is useful for unknown code types.1: syntax highlighter to use, defaults to java (optional)
helloSay hello example macro.1: name to print
htmlBy pass wiki engine to allow HTML code in contentthe html block
api-docsDisplays a list of known online API documentations and mappings.none
file-pathDisplays a file system path. The file path should use slashes. Defaults to windows.1: file path
imageDisplay an image.1. the image URI
2. align (right ,left or center) (optional)
3. width (optional)
4. height (optional)
inter-wikiDisplays a list of known InterWiki mappings.none
isbnGenerates links to book dealers or comparison services. Configuration is read from conf/bookservices.txt.1: isbn number
linkGenerate a weblink.unexplained, lazy programmer, probably
list-of-macrosDisplays a list of available macros.unexplained, lazy programmer, probably
loginBoxDisplay a login box.none
mailtoDisplays an email address.1: mail address
menuInclude the menu of the specified URI1. The uri for the menu to be include
newsDisplay a message thread as news.1. the thread URI
2. Max (optional)
preAllow rigid text style. (Keep text formating)none
printFieldDisplay a node forms fields values.1. (uri=) The uri on which you want to get the form value (Optional, by default=.)
2. (print=) Print or not the field label and the field value (Optional, by default=label, value, edit)
3. (field=) Print or not the specified field (Optional, by default will print all)
quoteDisplay quotations.1: source (optional)
2: displayed description, default is Source (optional)
quoteMessageQuote a message in another message by referencing only the message URI.1. The message URI to quote.
resourceInclude the view of a LibreSource resource.1. the uri of the resource (mandatory)
2. the view (optional)
3. the action (optional)
4. noaction (optional)
rfcGenerates links to RFCs.unexplained, lazy programmer, probably
rssInclude an RSS feed.1. the url of the rss feed (mandatory)
searchBoxDisplay a search box.1. the URI pattern
subProjectsDisplay the current subProjects list.none
summaryCreate the summary of a wiki page.1. the page URI (optional)
surveyDisplay results of a survey.the survey URI
tableDisplays a table.none
tableFormDisplay a table listing form results.1. (uri=) The uri on which you want to get the form value (Optional, by default use the local path)
2. (print=) Print additinal features such as a link to the data (goLink) or a link to get a CSV file (csvExport) (Optional, by default print all)
3. (field=) The list of field to show (Optional by default all)
timelineDisplay the first items of a timeline.1. the timeline URI
2. Max items (optional)
userGenerate a link to the current user page, according 'action'.1. the action (optional)
2. the link label (optional)
workspacesDisplay the user workspaces.none
xrefGenerates links to Java Xref source code.1: class name, e.g. java.lang.Object or java.lang.Object@Nanning
2: line number (optional)

Smiley

:-):-(;-):-P:-D:-[:-/:-*>:o8-):-$:-!:'(:-X =-O