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

Upload error #11

Open
Eetuheino03 opened this issue Jan 28, 2023 · 3 comments
Open

Upload error #11

Eetuheino03 opened this issue Jan 28, 2023 · 3 comments

Comments

@Eetuheino03
Copy link

ihave created database but still cant upload networks.csv and location.csv? I get this error:
"Sorry, there was an error uploading your file.
Warning: fopen(uploads/location.csv): Failed to open stream: No such file or directory in /var/www/html/tools/php/location_import.php on line 38"

@Znerox
Copy link
Owner

Znerox commented Jan 28, 2023

  1. Are you running as a Docker container?
  2. If you log in to phpMyAdmin, does the database exist? what tables do you see?
  3. Press "Create database" again, what error message do you get?

@Eetuheino03
Copy link
Author

  1. Yes i use docker
  2. i can see wifimap and all db is showing
  3. "1' means command was successful
    If the line is blank after 'created', it probably means the database already exists

Fatal error: Uncaught mysqli_sql_exception: Can't create database 'wifimap'; database exists in /var/www/html/tools/php/dbsetup.php:11 Stack trace: #0 /var/www/html/tools/php/dbsetup.php(11): mysqli->query('CREATE DATABASE...') #1 {main} thrown in /var/www/html/tools/php/dbsetup.php on line 11"

@Znerox
Copy link
Owner

Znerox commented Jan 28, 2023

Very strange that you get this error when running as a container. Can you try opening a shell inside your docker container an typing this command.

cd /var/www/html/tools/php & ls

Do you see the uploads folder?

Anyway, I suggest deleting the container and any mapping to local filesystem you have, updating the docker image and setting it up from scratch again. That will mean you have to import everything again. I don't know if you have imported anything previously, or this is the very first time setting up the system?

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