TACTIC Open Source
vm tactic 4.8.0.b04. Permission denied while trying check in (upload) files (SOLVED) - Printable Version

+- TACTIC Open Source (http://forum.southpawtech.com)
+-- Forum: TACTIC Open Source (http://forum.southpawtech.com/forumdisplay.php?fid=3)
+--- Forum: TACTIC Discussion (http://forum.southpawtech.com/forumdisplay.php?fid=4)
+--- Thread: vm tactic 4.8.0.b04. Permission denied while trying check in (upload) files (SOLVED) (/showthread.php?tid=186)



vm tactic 4.8.0.b04. Permission denied while trying check in (upload) files (SOLVED) - tim - 12-02-2020

I just tried to check in file or upload in attachements (choose file and drag and drop methods)
And I'm getting errors.
"Check-in failed: [Errno 13] Permission denied: '/opt/tactic/assets/test2_201202_differenttemplate'"

i've attached screens too


RE: vm tactic 4.8.0.b04. Permission denied while trying check in (upload) files - listy - 12-02-2020

Hi!
Check you folder access, it should be accessible to writing by tactic user.


RE: vm tactic 4.8.0.b04. Permission denied while trying check in (upload) files - tim - 12-03-2020

(12-02-2020, 04:21 PM)listy Wrote: Hi!
Check you folder access, it should be accessible to writing by tactic user.
Thanks listy
so I've changed owner of tactic directory to tactic - attached (by the way i compare vm 4.7 and 4.8 'em are very different)
Works!

BUT it does not generate icons from videos either images.
Also sometimes i'm getting error message while i'm trying to put file in attachment tab - attached screen (by the way what is that tab and should I touch it at all)
another thing if i'm uploading portrait mode pics into Preview - Icons also not generated (4.7 vm same)

any suggestions how to make generating of preview icons work?


RE: vm tactic 4.8.0.b04. Permission denied while trying check in (upload) files - listy - 12-03-2020

May be there is some naming issues, try to check your naming table.
Also - your assets folder should be recursively accessed by tactic user

>> chown -R tactic:tactic /assets


RE: vm tactic 4.8.0.b04. Permission denied while trying check in (upload) files - tim - 12-03-2020

(12-03-2020, 10:58 AM)listy Wrote: May be there is some naming issues, try to check your naming table.
Also - your assets folder should be recursively accessed by tactic user

>> chown -R tactic:tactic /assets
Hey listy.
I've chown recursively /assets/ but after I still experienced issues and I had root:root on tactic->TACTIC
I've applied chown to whole tactic folder.
There is another directory /upload/ which is in /spt/tactic/tactic_temp/ as you sysem error sometimes refer to it too

About 'check your naming table' , if I got it right if I've enforced naming or not.
I created 2 stypes for testing where one without enforced naming.
And I have same issue.
I also don't understand if others don't have these issues, coz I'm using VirtualBox and VM, so probably it should be similar behavior for other users.
I just don't understand how my can be different, may be because I don't have Guest Additions? or it is not necessary


RE: vm tactic 4.8.0.b04. Permission denied while trying check in (upload) files - remkonoteboom - 12-05-2020

The permissions on the VM should have been correct for uploading files. Please let us know if this is not the case. The assets folder should be owned by tactic and be readable by apache.

It is a bit difficult to see exactly what the error really is, particularly generating thumbnails. When something like this goes wrong and the errors are cryptic, it is often useful to run TACTIC in dev mode where all of the output and stacktraces will go to the console.

> cd /opt/tactic/tactic/src/bin
> python startup_dev.py

(make sure the TACTIC service is shut down).

What I often do, if this is a production server, I will open up another port for debugging. I believe the VM has port 9000 open for this purpose. You can check by typing:

> firewall-cmd --list-all

Among other items, it should list something llike:
services: cockpit dhcpv6-client http https samba ssh
ports: 9000/tcp

With this, you can run TACTIC like this:

python startup_dev.py -p 9000 -s <server_or_ip>

With this you can run TACTIC in debug mode without affecting the live production.


RE: vm tactic 4.8.0.b04. Permission denied while trying check in (upload) files - tim - 01-05-2021

(12-05-2020, 04:10 PM)remkonoteboom Wrote: The permissions on the VM should have been correct for uploading files.  Please let us know if this is not the case.  The assets folder should be owned by tactic and be readable by apache.

It is a bit difficult to see exactly what the error really is, particularly generating thumbnails.  When something like this goes wrong and the errors are cryptic, it is often useful to run TACTIC in dev mode where all of the output and stacktraces will go to the console.

> cd /opt/tactic/tactic/src/bin
> python startup_dev.py

(make sure the TACTIC service is shut down).

What I often do, if this is a production server, I will open up another port for debugging.  I believe the VM has port 9000 open for this purpose.  You can check by typing:

> firewall-cmd --list-all

Among other items, it should list something llike:
  services: cockpit dhcpv6-client http https samba ssh
  ports: 9000/tcp

With this, you can run TACTIC like this:

python startup_dev.py -p 9000 -s <server_or_ip>

With this you can run TACTIC in debug mode without affecting the live production.

Hi remkonoteboom
Thanks for reply. After CHMOD 777 of ASSETS folder (and UPLOAD folder) the system start to generate Icons. And I could use Attachment tab and Uploading in preview icon.

The permissions were definitely wrong (at least in my case).  Should be chown and chmod to make this VM work.

It is still not generating Icons from Video files. I think it is because there is no FFMPEG. I tried to install it, but there were some problems, so may be i will try next time.

I've started it in dev mode. And I could not even check in anything. So it seems it was not useful in this case. (screenshot)



RE: vm tactic 4.8.0.b04. Permission denied while trying check in (upload) files (SOLVED) - juanelo_dev - 06-02-2022

Hi, I can confirm this is still an issue in TACTIC-4.8.0.b04-Fedora31-VM.

I wanted to check whether running into this issue implies having other issues down the line.
Is the recommended solution still to run CHMOD 777 on the ASSETS folder?

Thanks


RE: vm tactic 4.8.0.b04. Permission denied while trying check in (upload) files (SOLVED) - hrevin - 06-03-2022

Hello Juan,
Please see my latest post in the announcements. We will be releasing an updated TACTIC 4.9 VM package (including Fedora 35) sometime in June.
We will check that this issue is fixed in the new package. In the the meantime, my team will try to resolve this 4.8 issue in the short-term.
regards
Howard