Public bug reported:

>From https://mahara.org/interaction/forum/topic.php?id=8653

 enabled PDF export plugin in my site, System didn't report any errors.

When I export my pages , in "Export your portfolio" page, system stopped
at "Please wait while your export is being generated..." and "Copying
extra files" for long long time, but system do not report any errros
also.

In server "dataroot" directory, "HTML" directory have some generated
files ,but "PDF" directory is empty.

If I disabled PDF export plugin in my site, then exporting pages can be
finished normally.

dpkg: warning: failed to open configuration file '/root/.dpkg.cfg' for reading: 
Permission denied
[Tue Jul 14 06:57:29.232825 2020] [php7:notice] [pid 109769] [client 
172.18.40.239:60056] [WAR] 7d (lib/errors.php:536) [RuntimeException]: Chrome 
process stopped before startup completed. Additional info: 
/usr/bin/chromium-browser: 12: xdg-settings: not found, referer: 
http://172.18.39.185/export/index.php
[Tue Jul 14 06:57:29.232899 2020] [php7:notice] [pid 109769] [client 
172.18.40.239:60056] [WAR] 7d (lib/errors.php:536) cmd_run.go:918: WARNING: 
cannot create user data directory: cannot create 
"/usr/sbin/snap/chromium/1213": mkdir /usr/sbin/snap: permission denied, 
referer: http://172.18.39.185/export/index.php
[Tue Jul 14 06:57:29.232920 2020] [php7:notice] [pid 109769] [client 
172.18.40.239:60056] [WAR] 7d (lib/errors.php:536) cannot create user data 
directory: /usr/sbin/snap/chromium/1213: Permission denied at 
/apps/mahara/htdocs/lib/chrome-php/headless-chromium-php-master/src/Browser/BrowserProcess.php:379,
 referer: http://172.18.39.185/export/index.php
[Tue Jul 14 06:57:29.232946 2020] [php7:notice] [pid 109769] [client 
172.18.40.239:60056] Call stack (most recent first):, referer: 
http://172.18.39.185/export/index.php
[Tue Jul 14 06:57:29.232982 2020] [php7:notice] [pid 109769] [client 
172.18.40.239:60056]   * exception(object(RuntimeException)) at Unknown:0, 
referer: http://172.18.39.185/export/index.php
[Tue Jul 14 06:57:29.232999 2020] [php7:notice] [pid 109769] [client 
172.18.40.239:60056] , referer: http://172.18.39.185/export/index.php


In my Ubuntu Server 20.04, I installed chromium-browser, It was
installed as a "snap" package, How to config it fot Mahara system?


This could be related to the new structure where snap wants to save files. 
First try: install with the '--classic' flag, but that's not a long-term 
solution.

** Affects: mahara
     Importance: Medium
         Status: Triaged


** Tags: export

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask 
on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1906123

Title:
  PDF export not generated under Ubuntu 20.04

Status in Mahara:
  Triaged

Bug description:
  From https://mahara.org/interaction/forum/topic.php?id=8653

   enabled PDF export plugin in my site, System didn't report any
  errors.

  When I export my pages , in "Export your portfolio" page, system
  stopped at "Please wait while your export is being generated..." and
  "Copying extra files" for long long time, but system do not report any
  errros also.

  In server "dataroot" directory, "HTML" directory have some generated
  files ,but "PDF" directory is empty.

  If I disabled PDF export plugin in my site, then exporting pages can
  be finished normally.

  dpkg: warning: failed to open configuration file '/root/.dpkg.cfg' for 
reading: Permission denied
  [Tue Jul 14 06:57:29.232825 2020] [php7:notice] [pid 109769] [client 
172.18.40.239:60056] [WAR] 7d (lib/errors.php:536) [RuntimeException]: Chrome 
process stopped before startup completed. Additional info: 
/usr/bin/chromium-browser: 12: xdg-settings: not found, referer: 
http://172.18.39.185/export/index.php
  [Tue Jul 14 06:57:29.232899 2020] [php7:notice] [pid 109769] [client 
172.18.40.239:60056] [WAR] 7d (lib/errors.php:536) cmd_run.go:918: WARNING: 
cannot create user data directory: cannot create 
"/usr/sbin/snap/chromium/1213": mkdir /usr/sbin/snap: permission denied, 
referer: http://172.18.39.185/export/index.php
  [Tue Jul 14 06:57:29.232920 2020] [php7:notice] [pid 109769] [client 
172.18.40.239:60056] [WAR] 7d (lib/errors.php:536) cannot create user data 
directory: /usr/sbin/snap/chromium/1213: Permission denied at 
/apps/mahara/htdocs/lib/chrome-php/headless-chromium-php-master/src/Browser/BrowserProcess.php:379,
 referer: http://172.18.39.185/export/index.php
  [Tue Jul 14 06:57:29.232946 2020] [php7:notice] [pid 109769] [client 
172.18.40.239:60056] Call stack (most recent first):, referer: 
http://172.18.39.185/export/index.php
  [Tue Jul 14 06:57:29.232982 2020] [php7:notice] [pid 109769] [client 
172.18.40.239:60056]   * exception(object(RuntimeException)) at Unknown:0, 
referer: http://172.18.39.185/export/index.php
  [Tue Jul 14 06:57:29.232999 2020] [php7:notice] [pid 109769] [client 
172.18.40.239:60056] , referer: http://172.18.39.185/export/index.php


  In my Ubuntu Server 20.04, I installed chromium-browser, It was
  installed as a "snap" package, How to config it fot Mahara system?

  
  This could be related to the new structure where snap wants to save files. 
First try: install with the '--classic' flag, but that's not a long-term 
solution.

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1906123/+subscriptions

_______________________________________________
Mailing list: https://launchpad.net/~mahara-contributors
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~mahara-contributors
More help   : https://help.launchpad.net/ListHelp

Reply via email to