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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fresh install on QNAP NAS with firmware 4.4.x #38

Closed
ozett opened this issue Mar 4, 2020 · 17 comments
Closed

Fresh install on QNAP NAS with firmware 4.4.x #38

ozett opened this issue Mar 4, 2020 · 17 comments

Comments

@ozett
Copy link

ozett commented Mar 4, 2020

install run fine, but i cannot create files or folders.

any hint? thx.

(i come from your hint for a successor of codiad here 馃槃 馃憤 )

image

@ozett
Copy link
Author

ozett commented Mar 4, 2020

the first projectfolder was created during install and has permission issues.
i created now another one. this one works.

image

@ozett
Copy link
Author

ozett commented Mar 4, 2020

i want to edit the files in my webshare (like i am used to do it with codiad),
so i used the abs-path option. but it did not work. why? what to do?

image

image

@ozett
Copy link
Author

ozett commented Mar 4, 2020

manual edit of the projects.php did help. i can create a new file.
but i cannot rename the project in the gui 馃槥

image

@ozett
Copy link
Author

ozett commented Mar 4, 2020

manual fiddling with the projects.php helps to come to good results.
(maybe all different issues to adress in the code?)

image

@HLSiira
Copy link
Member

HLSiira commented Mar 4, 2020

I'm having a little trouble following the issue here so I'm going to guess a little bit and hope you can fill in the blanks.
You've made 3 projects so far, however test3 was made with an absolute path and it is not working correctly. My first guess is that one of the other two projects was made with an absolute path as well. Atheos, like Codiad, only allows 1 project to have an absolute path and I haven't had cause to change it yet.

Does that sound like it could be the issue?

Either way, I'll look into it tonight, I did a huge rewrite of the project creation system recently and might have made a mistake.

Let me know if anything changes, thank you.

@ozett
Copy link
Author

ozett commented Mar 4, 2020

thanks for looking after my errros.

  1. the project which was created with the install was blocked. no abs-path.
    i could not create files.

  2. but after install i created project2. and i created files. no abs-path.
    working good. but could not rename.

  3. i tried to create a project with absolute path. was not possible. got errors (see screenshots)

  4. i edited the project.php manually.
    i created a project with absolut path. working fine.
    i renamed projects. working fine.
    i edited the path of the first project from the install to "." working fine.

but to make this everything (create files, rename projects, set abs-paht) with the gui/webpage gave me errors.

---sidenote
i like the default color-scheme. can i look this up/edit somehow easily?

@HLSiira
Copy link
Member

HLSiira commented Mar 4, 2020

The default color scheme is a work in progress, I'm trying to focus on using the color scheme from https://clrs.cc/ but with a darker background, but it's slow going.

Mmm I'll have to play around with it then. Hopefully I'll be able to fix it tonight.

For the first project, were you trying to create an ABS path project and it failed?

@ozett
Copy link
Author

ozett commented Mar 4, 2020

first project was only name.
second project also.
project with abs-path failed.
a project with abs-path was working fine on my qnap only with manual edit . but that worked.

i am watching your github project. so i can try new version an report, if you like

@HLSiira
Copy link
Member

HLSiira commented Mar 4, 2020

Merp.

I probably broke something on the creation methods. I'll update you here when I feel like I've covered all my bases for a fix. Let me know if you run into any other issues.

@HLSiira
Copy link
Member

HLSiira commented Mar 4, 2020

So correction, I actually haven't messed with the project creation component yet, and I'm realizing that I think you can only create an absolute path during installation. I'm going to keep working on this but I'm not sure this is necessary a bug/issue so much as a feature I need to add; if that makes sense.

@ozett
Copy link
Author

ozett commented Mar 6, 2020

one thing in the install is a bug: as i created only a projectname during install (remember: no! abs.-path, only name) i could not create files in this project. i can check this again with a fresh install, if you like.

@HLSiira
Copy link
Member

HLSiira commented Mar 8, 2020

Nah you don't have to. I'll look into it, but it shouldn't have done anything differently that Codiad originally did. I haven't messed with the project files very much but maybe I missed something.

@HLSiira
Copy link
Member

HLSiira commented Mar 9, 2020

Hey, I hope you don't mind me taking my time on this issue. I haven't had much time recently to code and am trying to finish up some of the other parts of Atheos I'm working on before tackling this issue, but it is on my mind.

Please let me know if that doesn't work for you or if you need a fix sooner rather than later.

@ozett
Copy link
Author

ozett commented Mar 10, 2020

its somehow now basically working for me.
so i will keep subscribed to this thread and get informed if you put here any updates on code-changes.
thanks for looking into this 馃憤

@HLSiira
Copy link
Member

HLSiira commented Mar 18, 2020

Hey ozett,
I have been thinking about your issue and reading more on how qnap works. I'm starting to think that this might not be an issue with Atheos, but rather qnap has more strict file permissions than default Linux.

I'm curious what the permissions and user/groups are for the files and folders of your web root.

If you're curious, this is a really thorough write up of what permissions should look like for an apache/linux server: https://serverfault.com/a/357109

This might not be an issue that I can fix with Atheos, but I might be able to put more checks and eventually try to add better error messages.

@ozett
Copy link
Author

ozett commented Mar 28, 2020

hi, thanks for noting the basic principle of linux file permission for the webserver on qnap.
your idee for checking this before install an giving hints to fix them pre-install would be helpful.

i would have checked out the latest github today to give a new test, but as my version-check says that i am on the latest version, i think there is nothing new to this today.

give me a shout here to test something new on the qnap.
+1

@HLSiira
Copy link
Member

HLSiira commented Apr 13, 2020

I completed a rewrite of the project component for the latest push to master. I'm pretty sure I would have removed anything preventing a proper project creation, but qnap still might run differently than I expect it to. I'm going to mark this as fixed and close this issue, but if you're still having issues, let me know and I'll reopen.

Sorry it took so long to get back to you on this.

@HLSiira HLSiira closed this as completed Apr 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants