Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems with git master not working #208

Closed
gene-git opened this issue Feb 3, 2022 · 17 comments
Closed

Problems with git master not working #208

gene-git opened this issue Feb 3, 2022 · 17 comments
Labels
documentation Improvements or additions to documentation

Comments

@gene-git
Copy link

gene-git commented Feb 3, 2022

Couple items:

  1. During build of package on linux I get a warning:
    warning gulp > glob-watcher > chokidar > fsevents@1.2.13: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.

Is this a linux or MacOS only thing?

  1. When trying to use snappymail, the login screen shows spinner and never presents the login / password form.
    The log shows:

"PHP message: PHP Warning: is_executable(): open_basedir restriction in effect. File(/sw/bin/gpg) is not within the allowed path(s): ...
Which is true - /sw doesn't exist. Not even /usr/bin is allowed in open_basedir.

Suggestions how to make this work again?

thanks much!

@gene-git
Copy link
Author

gene-git commented Feb 3, 2022

If it's a pain to sort out, Id be fine with a way to turn off openpgp completely as well.
Or if it helps, copy/usr/bin/gpg into a directory that is in open_basedir.
Thanks!

the-djmaze pushed a commit that referenced this issue Feb 3, 2022
@the-djmaze
Copy link
Owner

  1. Yes gulp has an issue soon
  2. There are several issues with OpenPGP and they are solved eventually.
    For now i disable GPG when open_basedir is in effect and will improve error logging for it.

@gene-git
Copy link
Author

gene-git commented Feb 3, 2022

Thank you.

Now error log is quiet and I get login form but after logging in I get only the background with nothing else on screen. No index no buttons just the gray bubble background.
Thoughts?

The access log last 4 entries are :
...

.. "GET /xxx/snappymail/v/2.11.0/static/css/fonts/snappymail.woff2 HTTP/2.0" ...
.. "POST /xxx/?/Json/&q[]=/0/ HTTP/2.0" 200 3001 "-" ...
.. "GET /xxx/?/Css/0/User/-/Default/-/[hashthinghere]/Hash/-/Json/ HTTP/2.0" ...
.. "POST /xxx/?/Json/&q[]=/0/ HTTP/2.0" 200 ...

the-djmaze pushed a commit that referenced this issue Feb 3, 2022
@the-djmaze
Copy link
Owner

the-djmaze commented Feb 3, 2022

Now the login fails (One of the post commands).

I have no open_basedir to test all failing GPG calls.

Maybe something is shown in the browser debugger?

@gene-git
Copy link
Author

gene-git commented Feb 3, 2022

browser shows
can't access property "flowId", this.activeSection is undefined 9 FormAutofillContent.jsm:906
onPopupOpened resource://autofill/FormAutofillContent.jsm:906
popupStateChanged resource://autofill/FormAutofillChild.jsm:85
notifyListeners resource://gre/actors/AutoCompleteChild.jsm:92
receiveMessage resource://gre/actors/AutoCompleteChild.jsm:68

May or may not help you.

@the-djmaze
Copy link
Owner

That's not SnappyMail code, you should see something like this in Firefox:

afbeelding

@gene-git
Copy link
Author

gene-git commented Feb 3, 2022

nothing looks helpful in console - i filtered on snappymail -
Erros none
Warnings none
Logs none
Info None
Debug None
CSS None
XHR Non

only one showing anything is the 'Requests' tab which has just things like:
GET /xxx/snappymail/v/2.11.0/themes/Default/images/background.jpg
which works (200)

Above that I see
xxx/snappymail/v/2.11.0/static/js/min/app.min.js
and request headers showing:

content-security-policy | default-src 'self'; script-src 'self' 'unsafe-eval' 'unsafe-inline'; style-src 'self' 'unsafe-inline'; img-src 'self'; media-src 'self'; font-src 'self' ; frame-src 'self'; connect-src 'self'; frame-ancestors 'self'; base-uri 'self'; form-action 'self'; object-src 'none'

@gene-git
Copy link
Author

gene-git commented Feb 3, 2022

I may be missing something but best I can tell the imap server is not getting anything at all after i click login - nothing seems to be sent out to imap server.

@gene-git
Copy link
Author

gene-git commented Feb 3, 2022

With commit 384230f
I no longer get login form again - just the b/g image and the 3 dot animation again.
php 8.1.2
nginx-mainline web server

thanks

@the-djmaze
Copy link
Owner

Do you use use_app_debug_js = On in application.ini?

@gene-git
Copy link
Author

gene-git commented Feb 4, 2022

I don't use docker and i don't see that file in my install package. I use the release.php script to build.

the-djmaze pushed a commit that referenced this issue Feb 4, 2022
@the-djmaze
Copy link
Owner

@gene-git
Copy link
Author

gene-git commented Feb 4, 2022

Thanks and sorry I missed that.
This is going to sound odd but here's what happens.

Turning on use_app_debug_js = On and now I can login and everything works as normal.
When I turn this back off and try logging in then I get same b/g only problem!

To confirm - I changed it back to On again and sure enough everything works again.

Hope that makes some sense to you.

@the-djmaze
Copy link
Owner

the-djmaze commented Feb 4, 2022

Yes that makes sense.
Clear the cache at …/data/_data_/_default_/cache
Clear browser cache.
and then try again.

You are NOT adviced to use folder 0.0.0 (or master release.php) for real use due to caching.

@gene-git
Copy link
Author

gene-git commented Feb 4, 2022

I use release.php and it generates 2.11.0 for git master (not 0,0.0).
I cleared cache and turned off app_debug_js and as you predicted it works fine.
I can make the package clear the old cache at install time for git master - is there a better way you think?
thanks!

@the-djmaze
Copy link
Owner

the-djmaze commented Feb 4, 2022

Don't use master, use a release tag checkout unless you want buggy development code.

@gene-git
Copy link
Author

gene-git commented Feb 4, 2022

Thanks I do - i was also in habit of testing git master but happy to skip that part :)
Thanks for all work you do - its very much appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants