WeBWorK Main Forum

WeBWorK 2.17 release date?

Re: WeBWorK 2.17 release date?

by Larry Riddle -
Number of replies: 0
But when I ran "npm install" as wwadmin, I got the message

wwadmin@swoop:/opt/webwork/webwork2/htdocs$ npm install
npm ERR! code EACCES
npm ERR! syscall open
npm ERR! path /opt/webwork/webwork2/htdocs/package-lock.json
npm ERR! errno -13
npm ERR! Error: EACCES: permission denied, open '/opt/webwork/webwork2/htdocs/package-lock.json'
npm ERR! [Error: EACCES: permission denied, open '/opt/webwork/webwork2/htdocs/package-lock.json'] {
npm ERR! errno: -13,
npm ERR! code: 'EACCES',
npm ERR! syscall: 'open',
npm ERR! path: '/opt/webwork/webwork2/htdocs/package-lock.json'
npm ERR! }
npm ERR!
npm ERR! The operation was rejected by your operating system.
npm ERR! It is likely you do not have the permissions to access this file as the current user
npm ERR!
npm ERR! If you believe this might be a permissions issue, please double-check the
npm ERR! permissions of the file and its containing directories, or try running
npm ERR! the command again as root/Administrator.

That is why I then tried again using sudo. These are the permissions for the htdocs directory.
drwxrwxr-x 11 wwadmin wwadmin 4096 Aug 8 14:08 htdocs
and the permissions inside htdocs
-rw-r--r--   1 root    root    125789 Aug  8 15:31 package-lock.json
drwxrwxr-x 131 wwadmin wwadmin   4096 Aug  8 15:31 node_modules
-rw-r--r--   1 root    root     12587 Aug  8 14:08 third-party-assets.json
drwxrwxr-x   2 wwadmin wwadmin   4096 Aug  8 14:08 helpFiles
drwxrwxr-x   2 wwadmin wwadmin   4096 Aug  8 14:08 images
-rw-r--r--   1 root    root      1342 Aug  8 14:08 package.json
drwxrwxr-x   7 wwadmin wwadmin   4096 Aug  8 14:08 themes
drwxrwxr-x   2 wwadmin wwadmin   4096 Aug  8 14:08 css
-rwxr-xr-x   1 root    root      8961 Aug  8 14:08 generate-assets.js
drwxrwxr-x   4 wwadmin wwadmin   4096 Aug  8 14:08 js
drwxrwxr-x   2 wwadmin wwdata    4096 Aug  8 14:08 applets
drwxrwsr-x   4 wwadmin wwdata    4096 Jul 23  2021 tmp
lrwxrwxrwx   1 root    root        71 Jul 23  2021 CAPA_Graphics -> ../../libraries/webwork-open-problem-library/Contrib/CAPA/CAPA_Graphics
-rw-rw-r--   1 wwadmin wwadmin    582 Jul 11  2020 site_info_server.txt
-rw-r--r--   1 root    root       433 Aug  9  2019 site_info.txt
drwxrwxr-x   2 wwadmin wwadmin   4096 Jun 24  2016 DATA
-rw-rw-r--   1 wwadmin wwadmin    222 Jun 23  2015 crossdomain.xml
-rw-rw-r--   1 wwadmin wwadmin    286 Jun 23  2015 favicon.ico
-rw-rw-r--   1 wwadmin wwadmin    420 Jun 23  2015 index.html
-rw-rw-r--   1 wwadmin wwadmin  31328 Jun 23  2015 library-tree.json
-rwxrwxr-x   1 wwadmin wwadmin   1732 Jun 23  2015 show-source.cgi

I also had to run the initial pull command as sudo because I also was getting permission error messages without it (during my first attempt to the upgrade last week). Here is the entire webwork2 directory

wwadmin@swoop:/opt/webwork/webwork2$ lf
total 104
drwxrwxr-x 2 wwadmin wwadmin 4096 Aug 8 14:08 t
-rw-r--r-- 1 root root 438 Aug 8 14:08 transifex.yml
drwxrwxr-x 8 wwadmin wwadmin 4096 Aug 8 14:08 lib
drwxrwxr-x 11 wwadmin wwadmin 4096 Aug 8 14:08 htdocs
drwxrwxr-x 5 wwadmin wwadmin 4096 Aug 8 14:08 docker-config
drwxrwxr-x 5 wwadmin wwadmin 4096 Aug 8 14:08 bin
drwxrwxr-x 4 wwadmin wwadmin 4096 Aug 8 14:08 clients
drwxrwxr-x 3 wwadmin wwadmin 4096 Aug 8 14:08 conf
drwxrwxr-x 3 wwadmin wwadmin 4096 Aug 8 14:08 courses.dist
-rw-r--r-- 1 root root 11974 Aug 8 14:08 Dockerfile
-rw-r--r-- 1 root root 3655 Aug 8 14:08 DockerfileStage1
-rw-r--r-- 1 root root 9085 Aug 8 14:08 DockerfileStage2
-rw-r--r-- 1 root root 1423 Aug 8 14:08 LICENSE
-rw-r--r-- 1 root root 445 Aug 8 14:08 README
-rw-r--r-- 1 root root 3677 Aug 8 14:08 README.md
-rw-r--r-- 1 root root 61 Aug 8 14:08 VERSION
drwxrwsr-x 2 wwadmin wwdata 4096 Aug 7 00:00 logs
drwxrwsr-x 2 wwadmin wwdata 4096 Jul 4 20:35 tmp
-rw-rw-r-- 1 wwadmin wwadmin 479 Jun 24 2016 README_js_organization
drwxrwsr-x 3 wwadmin wwdata 4096 Jun 23 2015 DATA
drwxrwxr-x 4 wwadmin wwadmin 4096 Jun 23 2015 doc
-rw-rw-r-- 1 wwadmin wwadmin 1829 Jun 23 2015 README.md.bak

This may all be a result of the 2.14 upgrade instructions at
https://webwork.maa.org/wiki/Release_notes_for_WeBWorK_2.14
which was the first time I did an upgrade. Those instructions had
">sudo git pull    # make sure things are updated"