Picture of inma cagliostro
Authoring. Problems with assets, preview and publish
by inma cagliostro - Tuesday, 30 June 2015, 3:42 PM
 

Hey guys

 

Just excited with authoring tool installed and running at localhost:5000

 

- but when i try to update assets nothing

- when i try preview just get a alert with “Error generating preview, please contact Administrator”

- when try to publish: “ReferenceError: error is not defined

    at /Users/23monalisas/adapt_authoring/routes/download/index.js:53:27

    at FSReqWrap.oncomplete (fs.js:95:15)”

 

Before i changed node version to v 0.10.33 via nvm, i had before 0.12 version and install 10.33 new one

 

this is the log:

 

iMac-de-23monalisas:~ 23monalisas$ nvm install 0.10.33

######################################################################## 100,0%

Now using node v0.10.33 (npm v1.4.28)

 

Mongod is running ok seems

 

And if o look on authoring folder the pictures are on folders into assets folder with numbers folders called

 

 

What’s wrong ??

 

this is my node log :

 

info: [30 Jun 2015 17:05:04 +02:00] Server started listening on port 5000 

.write(string, encoding, offset, length) is deprecated. Use write(string[, offset[, length]][, encoding]) instead.

warn: [30 Jun 2015 17:13:32 +02:00] Unexpected value for "data" parameter when updating component by 55920d1b7b7a63c151acbe2d 

info: [30 Jun 2015 17:15:03 +02:00] Event:rebuildCourse triggered for Tenant: 55920cac7b7a63c151acbe13 Course: 5592b1f65c599fa2054a3bfc 

warn: [30 Jun 2015 17:18:59 +02:00] Unexpected value for "data" parameter when updating component by 55920d1b7b7a63c151acbe2d 

info: [30 Jun 2015 17:19:14 +02:00] Retrieving JSON 

error: [30 Jun 2015 17:19:14 +02:00] Error: EACCES, mkdir '/Users/23monalisas/adapt_authoring/temp/55920cac7b7a63c151acbe13/adapt_framework/courses' 

error: [30 Jun 2015 17:19:14 +02:00] Error: EACCES, mkdir '/Users/23monalisas/adapt_authoring/temp/55920cac7b7a63c151acbe13/adapt_framework/courses' 

info: [30 Jun 2015 17:20:25 +02:00] Retrieving JSON 

error: [30 Jun 2015 17:20:25 +02:00] Error: EACCES, mkdir '/Users/23monalisas/adapt_authoring/temp/55920cac7b7a63c151acbe13/adapt_framework/courses' 

error: [30 Jun 2015 17:20:25 +02:00] Unable to publish 

error: [30 Jun 2015 17:20:25 +02:00] Error calling fs.stat 

ReferenceError: error is not defined

    at /Users/23monalisas/adapt_authoring/routes/download/index.js:53:27

    at FSReqWrap.oncomplete (fs.js:95:15)

info: [30 Jun 2015 17:28:46 +02:00] Retrieving JSON 

error: [30 Jun 2015 17:28:46 +02:00] Error: EACCES, mkdir '/Users/23monalisas/adapt_authoring/temp/55920cac7b7a63c151acbe13/adapt_framework/courses' 

error: [30 Jun 2015 17:28:46 +02:00] Error: EACCES, mkdir '/Users/23monalisas/adapt_authoring/temp/55920cac7b7a63c151acbe13/adapt_framework/courses' 

info: [30 Jun 2015 17:30:23 +02:00] Retrieving JSON 

error: [30 Jun 2015 17:30:23 +02:00] Error: EACCES, mkdir '/Users/23monalisas/adapt_authoring/temp/55920cac7b7a63c151acbe13/adapt_framework/courses' 

error: [30 Jun 2015 17:30:23 +02:00] Unable to publish 

error: [30 Jun 2015 17:30:23 +02:00] Error calling fs.stat 

ReferenceError: error is not defined

    at /Users/23monalisas/adapt_authoring/routes/download/index.js:53:27

    at FSReqWrap.oncomplete (fs.js:95:15)

 

 

and this is my mogod log:

 

2015-06-30T17:03:22.846+0200 I NETWORK  [initandlisten] waiting for connections on port 27017

2015-06-30T17:05:04.511+0200 I NETWORK  [initandlisten] connection accepted from 127.0.0.1:49824 #1 (1 connection now open)

2015-06-30T17:05:04.513+0200 I NETWORK  [initandlisten] connection accepted from 127.0.0.1:49825 #2 (2 connections now open)

2015-06-30T17:05:04.514+0200 I NETWORK  [initandlisten] connection accepted from 127.0.0.1:49826 #3 (3 connections now open)

2015-06-30T17:05:04.530+0200 I NETWORK  [initandlisten] connection accepted from 127.0.0.1:49827 #4 (4 connections now open)

2015-06-30T17:05:04.535+0200 I NETWORK  [initandlisten] connection accepted from 127.0.0.1:49828 #5 (5 connections now open)

2015-06-30T17:05:04.673+0200 I NETWORK  [initandlisten] connection accepted from 127.0.0.1:49829 #6 (6 connections now open)

2015-06-30T17:05:04.676+0200 I NETWORK  [initandlisten] connection accepted from 127.0.0.1:49830 #7 (7 connections now open)

2015-06-30T17:05:04.678+0200 I NETWORK  [initandlisten] connection accepted from 127.0.0.1:49831 #8 (8 connections now open)

2015-06-30T17:05:04.679+0200 I NETWORK  [initandlisten] connection accepted from 127.0.0.1:49832 #9 (9 connections now open)

2015-06-30T17:05:04.682+0200 I NETWORK  [initandlisten] connection accepted from 127.0.0.1:49833 #10 (10 connections now open)

2015-06-30T17:06:27.529+0200 I NETWORK  [initandlisten] connection accepted from 127.0.0.1:49837 #11 (11 connections now open)

2015-06-30T17:06:27.530+0200 I NETWORK  [initandlisten] connection accepted from 127.0.0.1:49838 #12 (12 connections now open)

2015-06-30T17:06:27.530+0200 I NETWORK  [initandlisten] connection accepted from 127.0.0.1:49839 #13 (13 connections now open)

2015-06-30T17:06:27.531+0200 I NETWORK  [initandlisten] connection accepted from 127.0.0.1:49840 #14 (14 connections now open)

2015-06-30T17:06:27.531+0200 I NETWORK  [initandlisten] connection accepted from 127.0.0.1:49841 #15 (15 connections now open)

2015-06-30T17:06:28.729+0200 I NETWORK  [initandlisten] connection accepted from 127.0.0.1:49845 #16 (16 connections now open)

2015-06-30T17:06:28.731+0200 I NETWORK  [initandlisten] connection accepted from 127.0.0.1:49846 #17 (17 connections now open)

2015-06-30T17:06:28.733+0200 I NETWORK  [initandlisten] connection accepted from 127.0.0.1:49847 #18 (18 connections now open)

2015-06-30T17:06:28.734+0200 I NETWORK  [initandlisten] connection accepted from 127.0.0.1:49848 #19 (19 connections now open)

2015-06-30T17:06:28.736+0200 I NETWORK  [initandlisten] connection accepted from 127.0.0.1:49849 #20 (20 connections now open)

 

What i must do right now for to solve this issues ??

 

Many THX in advance

Im running in Mac OX Yosemite  

Inmaculada

 

Picture of Brian Quinn
Re: Authoring. Problems with assets, preview and publish
by Brian Quinn - Friday, 3 July 2015, 2:42 PM
 

Hi Inma,

It looks like a permissions error on your temporary folder.  Did you install node as sudo by chance?

Brian

Picture of Stimpson Cat
Re: Authoring. Problems with assets, preview and publish
by Stimpson Cat - Wednesday, 19 August 2015, 8:11 PM
 

Hi Brian,

 

I think I'm having the same problem as Inma. I have NVM managing node and I installed that with sudo.

I'm OK with the command line but not fluent yet. What is the solution to the permissions on the temporary folder for publishing?

 

Thanks :)

Picture of Stimpson Cat
Re: Authoring. Problems with assets, preview and publish
by Stimpson Cat - Wednesday, 19 August 2015, 10:18 PM
 

Progress report

I had some success with sudo chmod -R 777 data/ but previewing doesn't work.

It looks like I can successfully publish.